mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Fixing the asterisk glyph in the font and glyph sets.
Adding the megacity glyph to the font and added a megacity glyph set. Fixed a bug in the rain pass's fragment shader that caused glyphs in the last column to go missing
This commit is contained in:
@@ -25,8 +25,9 @@ float median3(vec3 i) {
|
||||
|
||||
vec2 getSymbolUV(float glyphCycle) {
|
||||
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));
|
||||
float symbolX = mod(symbol, glyphTextureGridSize.x);
|
||||
float symbolY = mod(floor(symbol / glyphTextureGridSize.x), glyphTextureGridSize.y);
|
||||
symbolY = glyphTextureGridSize.y - symbolY - 1.0;
|
||||
return vec2(symbolX, symbolY);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user