Thank you for this great tip! But i really don't understand why it doesn't work for the other function... Confusing laugh

I've updated the code above and you can remove the USE_STATIC_VALUES define if you want to use dynamic ones... (if you didn't already have rewritten the shader wink )

Regards
TSGames

Last edited by TSG_Torsten; 12/16/10 21:51.