3b1b-manim/manimlib/shaders/image_vert.glsl

25 lines
501 B
Text
Raw Normal View History

2020-02-13 10:39:26 -08:00
#version 330
uniform float aspect_ratio;
2020-06-01 16:21:18 -07:00
uniform float anti_alias_width;
uniform mat4 to_screen_space;
uniform float focal_distance;
2020-02-13 10:39:26 -08:00
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
2020-06-01 16:21:18 -07:00
#INSERT get_gl_Position.glsl
#INSERT position_point_into_frame.glsl
2020-02-13 10:39:26 -08:00
void main(){
v_im_coords = im_coords;
v_opacity = opacity;
2020-06-01 16:21:18 -07:00
gl_Position = get_gl_Position(position_point_into_frame(point));
2020-02-13 10:39:26 -08:00
}