Jump to content

[SOLVED] Sunlight question/problem


photo

Recommended Posts

Posted

We have a large terrain and underneath some of the mountains we have a cave

Now I want the cave to be completely dark and it will be illuminated by a light connected to the player.

 

The only problem now is that the sunlight is shining through the terrain and illuminating the cave

I tried setting the cave and terrain materials to 2 sided to block the light but for some reason it is still receiving light

Anyone know how to fix this?

Posted

Disable light world pass for your cave materials.

post-82-0-35876600-1335340169_thumb.jpg

Posted

Disable light world pass for your cave materials.

post-82-0-35876600-1335340169_thumb.jpg

 

Yes! That fixed it! Thanks alot!!

Posted

That made my cave darker but the ambient color of the render settigns was still working so the cave still wasnt pitch black...so now I set the Ambient under states of the material to Skip and now the cave is completely black but this does prevent me from using the emissive channel for textures and I still kind of need this in my cave...any workaround for this?

Posted

Adjust the "Material/Parameters/Ambient Environment" slider.

Posted

Ye that seems to work but only when using a environment texture under Render Settings/Common

Posted

Set ambient color to black, as ambient color affects all color, no matter what the geometry is.

×
×
  • Create New...