mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
13 lines
263 B
GLSL
13 lines
263 B
GLSL
#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() {
|
|
vec4 pos = rot * pos;
|
|
gl_Position = proj * vec4(pos.xyz / (1 - pos.w), 1.0);
|
|
}
|