Rob Posted April 25, 2012 Posted April 25, 2012 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?
ulf.schroeter Posted April 25, 2012 Posted April 25, 2012 Disable light world pass for your cave materials.
Rob Posted April 25, 2012 Author Posted April 25, 2012 Disable light world pass for your cave materials. Yes! That fixed it! Thanks alot!!
Rob Posted April 25, 2012 Author Posted April 25, 2012 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?
frustum Posted April 25, 2012 Posted April 25, 2012 Adjust the "Material/Parameters/Ambient Environment" slider.
Rob Posted April 25, 2012 Author Posted April 25, 2012 Ye that seems to work but only when using a environment texture under Render Settings/Common
manguste Posted April 28, 2012 Posted April 28, 2012 Set ambient color to black, as ambient color affects all color, no matter what the geometry is.
Recommended Posts