Mindustry/core/assets/shaders/planetgrid.vert

15 lines
257 B
GLSL
Raw Normal View History

2020-02-27 02:44:06 +07:00
attribute vec4 a_position;
attribute vec4 a_color;
uniform mat4 u_proj;
uniform mat4 u_trans;
2020-02-27 02:44:06 +07:00
varying vec4 v_col;
varying vec4 v_position;
void main() {
gl_Position = u_proj * u_trans * a_position;
2020-02-27 02:44:06 +07:00
v_col = a_color;
v_position = a_position;
}