PDA

View Full Version : Shadow Example



rombust
01-11-2010, 10:20 AM
Introducing the new Shadow Example

Demonstrating basic shadows using GLSL

At time of writing (11 Jan 2010), this example only works on the ClanLib v2.2 SVN.

This example uses the new class "CL_Quaternion" and additional functions to the CL_Mat4f class to aid in converting from eular angles to quaternions.

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

* Note, the light source and shadow direction are different, this will be fixed in the future * <--- EDIT - Now fixed

rombust
02-05-2010, 09:49 AM
Fixed (and updated the above screen shot)

The shadows are now in the same direction as the light source :)

Also, the CL_Quaternion class was not required for the example (To keep it simple)