tinygltf/examples/glview/shader.frag
2015-12-20 20:27:54 +09:00

7 lines
103 B
GLSL

varying vec3 normal;
void main(void)
{
gl_FragColor = vec4(0.5 * normalize(normal) + 0.5, 1.0);
}