Show geomeric normal for mesh object.

This commit is contained in:
Syoyo Fujita 2016-11-24 17:55:20 +09:00
parent 025c880879
commit b083093db4

View File

@ -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);
}
}