Mostly complete from the Python original
This commit is contained in:
commit
97cf902b87
18 changed files with 527 additions and 0 deletions
13
src/gl/mesh.vert
Normal file
13
src/gl/mesh.vert
Normal file
|
@ -0,0 +1,13 @@
|
|||
#version 120
|
||||
attribute vec3 vertex_position;
|
||||
|
||||
uniform mat4 transform_matrix;
|
||||
uniform mat4 view_matrix;
|
||||
|
||||
varying vec3 ec_pos;
|
||||
|
||||
void main() {
|
||||
gl_Position = view_matrix*transform_matrix*
|
||||
vec4(vertex_position, 1.0);
|
||||
ec_pos = gl_Position.xyz;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue