Add decorative leaves.
This commit is contained in:
parent
9cb5aef679
commit
3f0b5d08b2
2 changed files with 29 additions and 29 deletions
|
@ -404,8 +404,8 @@ local function generate(p_minp, p_maxp, seed)
|
|||
else
|
||||
-- set_lighting causes lighting artifacts,
|
||||
-- but corrects the light inside trees.
|
||||
vm:set_lighting({day = 0, night = 0})
|
||||
vm:calc_lighting()
|
||||
vm:set_lighting({day = 0, night = 0}, minp, maxp)
|
||||
vm:calc_lighting(minp, maxp)
|
||||
-- Does not work:
|
||||
--vm:calc_lighting({x=minp.x,y=emin.y,z=minp.z}, maxp)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue