mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
25 lines
501 B
GLSL
25 lines
501 B
GLSL
#version 330
|
|
|
|
uniform float aspect_ratio;
|
|
uniform float anti_alias_width;
|
|
uniform mat4 to_screen_space;
|
|
uniform float focal_distance;
|
|
|
|
uniform sampler2D Texture;
|
|
|
|
in vec3 point;
|
|
in vec2 im_coords;
|
|
in float opacity;
|
|
|
|
out vec2 v_im_coords;
|
|
out float v_opacity;
|
|
|
|
// Analog of import for manim only
|
|
#INSERT get_gl_Position.glsl
|
|
#INSERT position_point_into_frame.glsl
|
|
|
|
void main(){
|
|
v_im_coords = im_coords;
|
|
v_opacity = opacity;
|
|
gl_Position = get_gl_Position(position_point_into_frame(point));
|
|
} |