tinygltf/examples/glview/shader.frag
2016-02-07 17:38:17 +09:00

12 lines
258 B
GLSL

uniform sampler2D diffuseTex;
varying vec3 normal;
varying vec2 texcoord;
void main(void)
{
//gl_FragColor = vec4(0.5 * normalize(normal) + 0.5, 1.0);
//gl_FragColor = vec4(texcoord, 0.0, 1.0);
gl_FragColor = texture2D(diffuseTex, texcoord);
}