Ajout du noise

This commit is contained in:
2026-04-21 01:08:11 +02:00
parent 3d5bef4153
commit 4a1c77121b
6 changed files with 121 additions and 13 deletions
+6 -1
View File
@@ -1,9 +1,13 @@
attribute vec4 aVertexPosition;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform vec2 uGlitchPosition;
uniform float uGlitchWidth;
uniform lowp vec4 uRandom;
uniform vec2 uImageRatio;
varying highp vec2 vTextureCoord;
void main() {
vec2 vertex = aVertexPosition.xy;
@@ -11,6 +15,7 @@ void main() {
vertex *= 0.001;
vertex *= uGlitchWidth;
vertex += uGlitchPosition;
vertex += uRandom.xy*0.01;
gl_Position = vec4(vertex, -1.0, 1.0);
}