Commit bf379f2a authored by chili's avatar chili
Browse files

flip y because textures, this is so good :darkness:

parent e82fcbbf
......@@ -30,7 +30,7 @@ float4 main(float3 worldPos : Position, float3 n : Normal, float2 tc : Texcoord)
{
const float3 normalSample = nmap.Sample(splr, tc).xyz;
n.x = normalSample.x * 2.0f - 1.0f;
n.y = normalSample.y * 2.0f - 1.0f;
n.y = -normalSample.y * 2.0f + 1.0f;
n.z = -normalSample.z;
}
// fragment to light vector data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment