sockscape/resources/client/shaders/font/font.vert

12 lines
256 B
GLSL
Raw Normal View History

2018-09-13 22:11:09 +00:00
attribute vec2 aScreenCoords;
attribute vec2 aTexCoords;
2018-08-29 21:33:28 +00:00
2018-09-13 22:11:09 +00:00
varying vec2 texCoords;
2018-08-29 21:33:28 +00:00
uniform mat4 transMatrix;
uniform mat4 orthoMatrix;
void main() {
2018-09-04 03:33:20 +00:00
gl_Position = orthoMatrix * transMatrix * vec4(aScreenCoords, 1.0, 1.0);
2018-08-29 21:33:28 +00:00
texCoords = aTexCoords;
}