Fork me on GitHub

Implemented Shadows

Shadows are finally working in GLGE. It’s taken a little longer then expected as rendering a depth map to a texture doesn’t seem to be working in any browsers and checking out the firefox code it would seem it’s just not supported there yet.  Until it is, It’s been hacked a bit encoding and decoding the depth from the rgb values. It works but it’s a more intensive an operation then it should be so spares use is recomended! This one works on firefox but I’m getting slow frame rates and I’m still not sure why, the JS isn’t that that complex and the frame rate is fine on chromium so it’s not the GFX card end either.

In addition this week I’ve added parsing of color values attributes in the XML so you can now specfy light/material colours using the normal HTML syntax ie “#ff0000” “red” “rgb(255,0,0)”.

Click here to view the latest demo

Demo Video:

Tags: , ,