pointrenderer class

This commit is contained in:
David Allemang
2022-10-10 15:33:38 -04:00
parent eee87cc9c4
commit 181bf0cf19
3 changed files with 77 additions and 56 deletions

View File

@@ -1,15 +1,13 @@
#version 440
//layout(location=1) uniform float time;
layout(location=1) uniform float time;
layout(location=2) uniform mat4 proj;
//layout(location=3) uniform mat4 rot;
layout(location=3) uniform mat4 view;
layout(location=0) in vec4 pos;
void main() {
// mat3 rot3 = mat3(rot);
// vec3 pos3 = rot3 * pos;
vec3 pos3 = pos.xyz;
vec3 pos3 = (view * pos).xyz;
gl_Position = proj * vec4(pos3, 1.0);
}