Adding "updated" glyph set from The Matrix Resurrections, and a corresponding effect version.

This commit is contained in:
Rezmason
2021-12-11 22:21:24 -08:00
parent 508c941fcd
commit 25e9f10f69
5 changed files with 28 additions and 15 deletions

View File

@@ -24,9 +24,9 @@ float median3(vec3 i) {
}
vec2 getSymbolUV(float glyphCycle) {
float symbol = floor(glyphSequenceLength * glyphCycle);
float symbolX = mod(symbol, glyphTextureGridSize.x);
float symbolY = floor(symbol / glyphTextureGridSize.y);
float symbol = floor((glyphSequenceLength) * glyphCycle) + 1.0;
float symbolX = mod(symbol, glyphTextureGridSize.x) - 1.0;
float symbolY = glyphTextureGridSize.y - 1.0 - (mod(floor(symbol / glyphTextureGridSize.x), glyphTextureGridSize.y));
return vec2(symbolX, symbolY);
}