Commit 0c7633c1 authored by chili's avatar chili
Browse files

normal in the right direction reveal eldritch horrors

parent 809cff33
...@@ -28,7 +28,7 @@ float4 main(float3 worldPos : Position, float3 n : Normal, float2 tc : Texcoord) ...@@ -28,7 +28,7 @@ float4 main(float3 worldPos : Position, float3 n : Normal, float2 tc : Texcoord)
// sample normal from map if normal mapping enabled // sample normal from map if normal mapping enabled
if( normalMapEnabled ) if( normalMapEnabled )
{ {
n = nmap.Sample(splr, tc).xyz; n = -nmap.Sample(splr, tc).xyz;
} }
// fragment to light vector data // fragment to light vector data
const float3 vToL = lightPos - worldPos; const float3 vToL = lightPos - worldPos;
......
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