fixed terrain rendering - visualized normals
[demo] / gl_shaders / default.f.glsl
index 490efab..98cf032 100644 (file)
@@ -26,6 +26,7 @@ void main()
        float cspec = pow(max(dot(r, vdir), 0.0), shininess);
 
        vec4 texel = texture2D(tex, tex_coord);
-       color.xyz = diffuse.xyz * cdiff * texel.xyz + specular.xyz * cspec;
+       //color.xyz = diffuse.xyz * cdiff * texel.xyz + specular.xyz * cspec;
+       color.xyz = diffuse.xyz * cdiff + specular.xyz * cspec;
        color.w = 1.0;
 }