Ajout d'entités "glitch" a la scene

This commit is contained in:
2026-04-20 23:11:05 +02:00
parent f1229866d1
commit 3d5bef4153
5 changed files with 231 additions and 69 deletions
@@ -0,0 +1,17 @@
attribute vec4 aVertexPosition;
uniform vec2 uGlitchPosition;
uniform float uGlitchWidth;
uniform vec2 uImageRatio;
void main() {
vec2 vertex = aVertexPosition.xy;
vertex *= uImageRatio;
vertex *= 0.001;
vertex *= uGlitchWidth;
vertex += uGlitchPosition;
gl_Position = vec4(vertex, -1.0, 1.0);
}