🔧 Use vec2 for size uniform

This commit is contained in:
Simon Schneegans
2022-05-11 05:33:25 +02:00
parent afaeebd0ab
commit 1347fc4d11
11 changed files with 21 additions and 24 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ if (utils.isInShellProcess()) {
const code = `
// Get a noise value which moves vertically in time.
vec2 uv = cogl_tex_coord_in[0].st * vec2(uSizeX, uSizeY) / vec2(400, 600) / uScale;
vec2 uv = cogl_tex_coord_in[0].st * uSize / vec2(400, 600) / uScale;
uv.y += uTime * uMovementSpeed;
float noise = u3DNoise ? simplex3DFractal(vec3(uv*4.0, uTime*uMovementSpeed*1.5))