How do you approximate normals after moving them in the XYZ directions?
(btw how are you rotating vertices?! )
Here is a small version of what Im doing now:
Code:
-----VERTEX SHADER-----
InPos += mul(offset14,matWorldInv ); // move vertex
// Transform the vertex from object space to clip space:
OutPos = mul(InPos, matWorldViewProj); // OutPos = mul(InPos, matWorldViewProj);
// Transform the normal from object space to world space:
OutNormal = normalize(mul(InNormal, matWorld));