X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fcommon.glsl;h=4a81636037be1224d0d2856cdfd90b67d8eef3fc;hb=47853d7a557bf81131512832a9e531cb04d273ca;hp=05648e4c0c106f469b63ed0346dc4c8b32c0c9be;hpb=f7d6481be3511153ded018e119bcac852faa0766;p=libs%2Fgl.git diff --git a/shaderlib/common.glsl b/shaderlib/common.glsl index 05648e4c..4a816360 100644 --- a/shaderlib/common.glsl +++ b/shaderlib/common.glsl @@ -68,7 +68,7 @@ void main() vec3 get_fragment_normal() { if(use_normal_map) - return texture(normal_map, texcoord.xy).xyz*2.0-1.0; + return normalize(texture(normal_map, texcoord.xy).xyz*2.0-1.0); else return vec3(0.0, 0.0, 1.0); }