From 34dfbdd390c5fbcc936e66602fbe8e7f4339826c Mon Sep 17 00:00:00 2001 From: micuat Date: Mon, 19 Oct 2020 16:56:00 +0200 Subject: [PATCH] fake registration --- zoneb/bin/data/shaders/render.frag | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zoneb/bin/data/shaders/render.frag b/zoneb/bin/data/shaders/render.frag index 78eed41..4cd307c 100644 --- a/zoneb/bin/data/shaders/render.frag +++ b/zoneb/bin/data/shaders/render.frag @@ -11,6 +11,14 @@ in vec2 gTexCoord; void main() { - gl_FragColor = texture2D(u_v4l2cam, gTexCoord/3); + vec2 st = gTexCoord; + st /= 3; + st -= vec2(0.5); + st *= 1.45; + st += vec2(0.5); + st.s += 0.15; + st.t += 0.16; + gl_FragColor = texture2D(u_v4l2cam, st); + // gl_FragColor = texture2D(uColorTex, gTexCoord); // gl_FragColor = vec4(1); } \ No newline at end of file