diff options
Diffstat (limited to 'assets/shaders/test_fshader_full.glsl')
-rwxr-xr-x | assets/shaders/test_fshader_full.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/shaders/test_fshader_full.glsl b/assets/shaders/test_fshader_full.glsl index ef721b39..0ea3cf1b 100755 --- a/assets/shaders/test_fshader_full.glsl +++ b/assets/shaders/test_fshader_full.glsl | |||
@@ -38,7 +38,7 @@ varying vec3 vEyePos; | |||
38 | 38 | ||
39 | void main() | 39 | void main() |
40 | { | 40 | { |
41 | vec4 colMapTexel = vec4(texture2D(colMap, vec2(vNormal.w, vECPos.w)).rgb, 1.0); | 41 | vec4 colMapTexel = vec4(texture2D(colMap, vec2(vNormal.w, 1.0 - vECPos.w)).rgb, 1.0); |
42 | 42 | ||
43 | // normal mapping | 43 | // normal mapping |
44 | vec3 normal = normalize(vNormal.xyz); | 44 | vec3 normal = normalize(vNormal.xyz); |