PDA

View Full Version : SpotLight Example



rombust
02-12-2010, 12:35 PM
Introducing a new example for ClanLib 2.2 SVN "Spot Light"

(Note, this example should still work with ClanLib 2.1.1)

http://esoteric.clanlib.org/~rombust/ReleaseImages/spotlight_v1.png

A few bugs remain.
1) "Specular" does not seem to change the light in any way
2) Changing the pitch of the spotlight gives unexpected results at certain positions (steep gradients on the landscape). I guess there is a mathematics problem somewhere in the shader

rombust
03-02-2010, 08:59 AM
Finally fixed.

http://esoteric.clanlib.org/~rombust/ReleaseImages/spotlight_v2.png