Hi, all!
Is there some template shader I could add to my fragment shaders to implement normal mapping?
I guess it should do something like
Code: Select all
gl_FragColor = ambient * diffuse *lightDiffuse * dot(lightDir, normal);
It would be too annoying to add that to all the shaders including the light direction bind, need some help from Ogre...