🔧 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
@@ -258,7 +258,7 @@ if (utils.isInShellProcess()) {
float glowProgress = smoothstep(0, 1, clamp(progress / 0.5, 0, 1));
float tileProgress = smoothstep(0, 1, clamp((progress - 0.5) / 0.5, 0, 1));
vec2 texScale = 0.1 * vec2(uSizeX, uSizeY) / uScale;
vec2 texScale = 0.1 * uSize / uScale;
vec4 hex = getHexagons(cogl_tex_coord_in[0].st * texScale);
if (tileProgress > hex.z) {