Mindustry/core/assets/shaders/default.vert

17 lines
302 B
GLSL
Raw Normal View History

uniform mat4 u_projTrans;
attribute vec4 a_position;
attribute vec2 a_texCoord0;
attribute vec4 a_color;
varying vec4 v_color;
2020-06-15 05:41:42 +07:00
varying vec2 v_texCoords;
uniform vec2 u_viewportInverse;
2020-05-11 11:41:35 +07:00
void main(){
gl_Position = u_projTrans * a_position;
2020-06-15 05:41:42 +07:00
v_texCoords = a_texCoord0;
v_color = a_color;
}