diff --git a/examples/glview/shader.frag b/examples/glview/shader.frag index 9fa989a..05d28ce 100644 --- a/examples/glview/shader.frag +++ b/examples/glview/shader.frag @@ -11,6 +11,6 @@ void main(void) if (uIsCurve > 0) { gl_FragColor = texture2D(diffuseTex, texcoord); } else { - gl_FragColor = vec4(0.5, 0.6, 0.7, 1.0); + gl_FragColor = vec4(0.5 * normalize(normal) + 0.5, 1.0); } }