Hi zoombapup,
Maybe the fs quad doesn't have the viewDir so you might need to make your own. So in the fs quad's material:
Code:
<Uniform name="viewDir" a="0.0" b="-1.0" c="0.0" d="0.0" />
Then whenever you want to set the light direction, maybe for some kind of day/night cycle you can specify some vector manually or query the light itself (just checked, there's no viewDir param? It might need the rotation values and converted to a vector, so some maths involved for that). Also this is untested pseudocode:
Code:
Vec4f myViewDir;
myViewDir.x = 0;
myViewDir.y = -1;
myViewDir.z = 0;
myViewDir.w = 0;
h3dSetMaterialUniform(fsQuadMaterialRes, "viewDir", viewDir.x, viewDir.y, viewDir.z, viewDir.w);
Good luck! This might not be the right way about it. *shrugs*