🔧 Use alternative noise

This commit is contained in:
Simon Schneegans
2022-01-15 12:42:57 +01:00
parent c478a0f6c6
commit b6fc32ee0d
5 changed files with 200 additions and 76 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ if (utils.isInShellProcess()) {
vec2 block = pixelCoords/LETTER_SIZE - uv;
// Choose random letter.
uv += floor(hash2D(floor(hash2D(block)*vec2(12.9898,78.233) + LETTER_FLICKER_SPEED*uTime + 42.254))*LETTER_TILES);
uv += floor(hash22(floor(hash22(block)*vec2(12.9898,78.233) + LETTER_FLICKER_SPEED*uTime + 42.254))*LETTER_TILES);
return texture2D(uFontTexture, uv/LETTER_TILES).r;
}