mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Fixed a math issue in the symbol UV function.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user