Shader cleanup
This commit is contained in:
14
core/assets/shaders/planetgrid.vert
Normal file
14
core/assets/shaders/planetgrid.vert
Normal file
@@ -0,0 +1,14 @@
|
||||
attribute vec4 a_position;
|
||||
attribute vec4 a_color;
|
||||
|
||||
uniform mat4 u_proj;
|
||||
uniform mat4 u_trans;
|
||||
|
||||
varying vec4 v_col;
|
||||
varying vec4 v_position;
|
||||
|
||||
void main() {
|
||||
gl_Position = u_proj * u_trans * a_position;
|
||||
v_col = a_color;
|
||||
v_position = a_position;
|
||||
}
|
||||
Reference in New Issue
Block a user