Saturday, October 9, 2010

Improved outdoor lighting

Finally, outdoor lighting has been improved although I'm still not sure it's done the right way.
Two directional lights are used (sun and moon) and SkyX's sun direction is given to the first while its opposite vector is given to the second light.

Sun's specular and diffuse colours are taken from SkyX's sun and ambient gradients and multiplied by some colour values to make it better looking.

Also, ambient light gets changed so it's darker and blueish at night and yellowish at sunset.

Sunrise
Sunset
Night is coming
Moon light

No comments: