mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
12 lines
355 B
GLSL
12 lines
355 B
GLSL
// Assumes theese uniforms exist in the surrounding context
|
|
// uniform float scale;
|
|
// uniform float aspect_ratio;
|
|
// uniform float frame_center;
|
|
|
|
void set_gl_Position(vec3 point){
|
|
// TODO, orient in 3d based on certain rotation matrices
|
|
point -= frame_center;
|
|
point /= scale;
|
|
point.x /= aspect_ratio;
|
|
gl_Position = vec4(point, 1.0);
|
|
} |