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

12 lines
256 B
GLSL
Raw Normal View History

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