mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
22 lines
No EOL
422 B
GLSL
22 lines
No EOL
422 B
GLSL
#version 330
|
|
|
|
#INSERT camera_uniform_declarations.glsl
|
|
|
|
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));
|
|
} |