-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As I understand, you want to make your text look flipped or, in other words, upside down. Did I understand correctly? [
[-2.0 / view_width, 0.0, 0.0, 0.0],
[0.0, 2.0 / view_height, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[1.0, -1.0, 0.0, 1.0]
] Here's the default orthogonal matrix so you can compare the differences (notice the modified number signs): [
[2.0 / view_width, 0.0, 0.0, 0.0],
[0.0, -2.0 / view_height, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[-1.0, 1.0, 0.0, 1.0]
] Afterwards, you get this result (you can modify the tex position in the code): |
Beta Was this translation helpful? Give feedback.
As I understand, you want to make your text look flipped or, in other words, upside down. Did I understand correctly?
You can use that alternate version of the shader you linked, which turns every quad upside-down, but the character alignment will look a bit off - or you can use the modified version of the orthogonal matrix. I have tried experimenting a little with the orthogonal matrices by changing matrix element signs (minuses to pluses and the other way around) and have found that you can make your text look upside-down if you make your matrix look like this: