0
\$\begingroup\$

I'm trying to make dynamic sunrises and sunsets in my game but I have some problems. My scene is surrounded by mountains and when the sun tint is still hot the sun is not visible but, the trees that are far from the player (Around 100 meters) are lighted like if the mountains are not casting shadows, and when I get closer to theses trees they become black as they should be. If I extend the shadows distance it changes nothing. Also, when the sunrise, even if it should not be visible it should do some ambient lighting, but everything is totally black except some trees. enter image description here

enter image description here

\$\endgroup\$
0
\$\begingroup\$

I would look at perhaps the shader materials, Light distance in shader.

https://forum.unity.com/threads/light-distance-in-shader.509306/

PeerPlay has great tutorials on shaders https://www.youtube.com/watch?v=t8qBCltSqV4

Custom fall-off https://docs.unity3d.com/Manual/ProgressiveLightmapper-CustomFallOff.html

Alternately the asset store might have something fun. https://assetstore.unity.com/packages/vfx/shaders/free-skybox-extended-shader-107400

https://assetstore.unity.com/packages/vfx/shaders/top-projection-shaders-pack-106862 https://www.youtube.com/watch?v=-XVxlqzcwR8

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.