mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2026-01-24 06:39:20 -05:00
new solver - point generation
This commit is contained in:
15
vis/res/shaders/main.vert.glsl
Normal file
15
vis/res/shaders/main.vert.glsl
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 440
|
||||
|
||||
//layout(location=1) uniform float time;
|
||||
layout(location=2) uniform mat4 proj;
|
||||
//layout(location=3) uniform mat4 rot;
|
||||
|
||||
layout(location=0) in vec4 pos;
|
||||
|
||||
void main() {
|
||||
// mat3 rot3 = mat3(rot);
|
||||
// vec3 pos3 = rot3 * pos;
|
||||
|
||||
vec3 pos3 = pos.xyz;
|
||||
gl_Position = proj * vec4(pos3, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user