I have no clue about anything shader related, I’m just trying to fix a broken asset from the asset store. If you guys could fix this one line for me or explain what’s wrong that’d be awesome. Thanks.
Normals are direction vectors, you don’t want to apply translation to them. Using a 3x3 matrix is also faster
Try this:
float3 normalDirection = normalize( mul(input.normal, (float3x3) modelMatrixInverse));