The normal map effect is based on this:
https://github.com/mattdesl/lwjgl-basic ... derLesson6
Screenshot:
The effect was first ported to C2 by donelwero that posted in some lost thread i found the other day. After see various NormalMaps effects this was the best(IMHO), so for my game i decide to use and edit without any experience about shaders to adapt to my needs.
As i said donelwero made the hard work making the .fx and .xml file port. My work was pass from the original 5 variables to 16, i passed all that i saw in the .fx to be adjusted easily from C2, here is how actually looks:
Also i corrected how the X/Y light was applied in the .capx file(And works with scroll to) and today finally discovered how edit the .fx file to use normal maps with alpha channel, after two days was simply adding at the output of all the effect a "* front.a" , still i don't know why, as i said i not have idea of shader i simply passed 2 days changing variables to get the effect desired XD .
-
Edit 1 - 13 July:
Normal Map Extended v1.01 (Multiple lights added)
*Added multiple lights(in total 3) with all their variables an with the option to enable/disable from an individual texture.
Download v1.01 (Includes the effect and demo .capx)
https://drive.google.com/file/d/0B8vm3F ... sp=sharing
Screenshot: