- Edited
Hello !
I am quite new to Godot and I'm trying to make a landscape scene. I managed to solve all my problems until now by searching on the web, but this time I'm stuck with this :
As you can see, my trees seem to render in the wrong order : the farthest trees appear on top of the closest ones. I've played around with some options, and here is what I can get : - This only happens with a directional light, other light types are a fine (although a bit ugly but they don't seem to mess up the rendering order) - This only happens when the directional light points towards the camera (if looking the same way as the light, the trees render correctly) - This is most likely caused by the "shadow_enabled" option of the light. When I deactivage this option, the probelm disappears, but when I activate "unshaded" in the leave material, the problem persists. Turning off the "cast shadow" option on the tree mesh also "solves" the problem.
Here are screenshots of the directional light and leaves material properties :
Big thanks to anyone who can help