realityplayground-of/zoneb/bin/data/shaders/render.frag

16 lines
289 B
GLSL
Raw Normal View History

2020-10-18 16:52:22 +00:00
#ifdef GL_ES
precision mediump float;
#endif
// Custom attributes.
2020-10-18 16:52:22 +00:00
uniform sampler2D uColorTex; // Sampler for the color registered data
2020-10-19 14:14:53 +00:00
uniform sampler2D u_v4l2cam;
in vec2 gTexCoord;
void main()
{
2020-10-19 14:14:53 +00:00
gl_FragColor = texture2D(u_v4l2cam, gTexCoord/3);
// gl_FragColor = vec4(1);
}