Hi guys,
at the moment I have just one light source: a directional light that represents the sun.
But the shadow sides of my objects are very dark now (looks more like black).
I think I am missing some ambient light options. Couldn’t figure that out. Any hints?
Thanks
Just add a directional light with low color values (e.g. 0.2,0.2,0.2,1) from the other side to simulate reflected light.
you can tweak shadow intensity by using the setShadowIntensity on the pssmRenderer.
toward 0 is lighter shadow, toward 1 is darker shadows. default is 0.7.
normen said:
Just add a directional light with low color values (e.g. 0.2,0.2,0.2,1) from the other side to simulate reflected light.
I have done that in the past, but now I realise that won't always work. Imagine a cube with the sun straight above and the antisun straight below. The sides of the cube arn't illuminated.
So you'd need 3 antisuns and 1 sun in a 3-sided pyramid configuration to get decent ambient lighting.
I noticed the new AmbientLight class and tried it. It seems to work. Is it finished?
And how do i control the intensity? Multiplying it's color (with .setColor()) seems to do the trick. Is that ok?
durandal said:
I noticed the new AmbientLight class and tried it. It seems to work. Is it finished?
And how do i control the intensity? Multiplying it's color (with .setColor()) seems to do the trick. Is that ok?
Yep exactly.
It's finished yep