code is all clean now (but still broken)
This commit is contained in:
13
src/shader.vert
Normal file
13
src/shader.vert
Normal file
@ -0,0 +1,13 @@
|
||||
attribute vec3 pos;
|
||||
attribute vec3 col;
|
||||
|
||||
varying vec3 frag_col;
|
||||
|
||||
uniform mat4 proj;
|
||||
uniform mat4 view;
|
||||
uniform mat4 model;
|
||||
|
||||
void main() {
|
||||
gl_Position = proj * view * model * vec4(pos, 1.0);
|
||||
frag_col = col;
|
||||
}
|
Reference in New Issue
Block a user