Skip to content
Snippets Groups Projects
Commit b14e52a5 authored by Tofu Linden's avatar Tofu Linden
Browse files

add an accidentally-dropped normalize from the bf541483d907 / normpacking-rejig

(transplanted from 9e23eb15550830b5efe1012c8169339931ec5f32)
parent 514186ee
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ void main() ...@@ -55,6 +55,7 @@ void main()
vec3 norm = texture2DRect(normalMap, frag.xy).xyz; vec3 norm = texture2DRect(normalMap, frag.xy).xyz;
norm = vec3((norm.xy-0.5)*2.0,norm.z); // unpack norm norm = vec3((norm.xy-0.5)*2.0,norm.z); // unpack norm
norm = normalize(norm);
vec4 spec = texture2DRect(specularRect, frag.xy); vec4 spec = texture2DRect(specularRect, frag.xy);
vec3 diff = texture2DRect(diffuseRect, frag.xy).rgb; vec3 diff = texture2DRect(diffuseRect, frag.xy).rgb;
float noise = texture2D(noiseMap, frag.xy/128.0).b; float noise = texture2D(noiseMap, frag.xy/128.0).b;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment