Set 4th position component from 0.0 to 1.0

This commit is contained in:
Nissim Hadar 2017-12-14 16:17:50 -08:00
parent 05e47ae668
commit 026b19d770

View file

@ -224,7 +224,7 @@ vec3 evalGlobalLightingAlphaBlendedWithHaze(
vec4 colorV4 = computeHazeColor(
vec4(color, 0.0), // fragment original color
vec4(position, 0.0), // fragment position in eye coordinates
vec4(fragEyeVector, 0.0), // fragment position in world coordinates
vec4(fragEyeVector, 1.0), // fragment position in world coordinates
invViewMat[3]); // eye position in world coordinates
color = colorV4.rgb;