Fixed a math issue in the symbol UV function.

This commit is contained in:
Rezmason
2021-10-30 20:30:55 -07:00
parent 4ea6cadd2f
commit 375560d6a1
3 changed files with 3 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ float median3(vec3 i) {
vec2 getSymbolUV(float glyphCycle) {
float symbol = floor(glyphSequenceLength * glyphCycle);
float symbolX = mod(symbol, glyphTextureColumns);
float symbolY = ((glyphTextureColumns - 1.0) - (symbol - symbolX) / glyphTextureColumns);
float symbolY = glyphTextureColumns - floor(symbol / glyphTextureColumns);
return vec2(symbolX, symbolY);
}