🔧 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
@@ -259,7 +259,7 @@ if (utils.isInShellProcess()) {
// Now check wether there is actually something in the current dust layer at
// the coords position.
vec2 dustCoords = (coords + uSeed) * vec2(uSizeX, uSizeY) / uDustScale / 100.0;
vec2 dustCoords = (coords + uSeed) * uSize / uDustScale / 100.0;
vec2 dustMap = texture2D(uDustTexture, dustCoords).rg;
float dustGroup = floor(dustMap.g * DUST_LAYERS * 0.999);