Mindustry/core/assets/shaders/mesh.vert

13 lines
192 B
GLSL
Raw Normal View History

2020-05-07 06:07:37 +07:00
attribute vec4 a_position;
attribute vec3 a_normal;
attribute vec4 a_color;
uniform mat4 u_proj;
varying vec4 v_col;
void main(){
v_col = a_color;
gl_Position = u_proj * a_position;
}