🔧 Use uDuration instead of uTime

This commit is contained in:
Simon Schneegans
2022-06-10 07:30:44 +02:00
parent 0bd0fb27b9
commit 46a1729e54
9 changed files with 30 additions and 26 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ float getText(vec2 fragCoord) {
// Choose random letter.
uv += floor(hash22(floor(hash22(block) * vec2(12.9898, 78.233) +
LETTER_FLICKER_SPEED * uTime + 42.254)) *
LETTER_FLICKER_SPEED * uProgress * uDuration + 42.254)) *
LETTER_TILES);
return texture2D(uFontTexture, uv / LETTER_TILES).r;