mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Move uniform pixel_shape declaration outside of get_gl_Position
This commit is contained in:
@ -2,7 +2,6 @@ uniform float is_fixed_in_frame;
|
||||
uniform vec3 camera_offset;
|
||||
uniform mat3 camera_rotation;
|
||||
uniform vec2 frame_shape;
|
||||
uniform vec2 pixel_shape; // Move this
|
||||
uniform float focal_distance;
|
||||
|
||||
const vec2 DEFAULT_FRAME_SHAPE = vec2(8.0 * 16.0 / 9.0, 8.0);
|
||||
|
@ -4,6 +4,7 @@ layout (triangles) in;
|
||||
layout (triangle_strip, max_vertices = 5) out;
|
||||
|
||||
uniform float anti_alias_width;
|
||||
uniform vec2 pixel_shape;
|
||||
|
||||
// Needed for finalize_color
|
||||
uniform vec3 light_source_position;
|
||||
|
@ -5,6 +5,7 @@ layout (triangle_strip, max_vertices = 6) out;
|
||||
|
||||
uniform float anti_alias_width;
|
||||
uniform float flat_stroke;
|
||||
uniform vec2 pixel_shape;
|
||||
|
||||
//Needed for lighting
|
||||
uniform vec3 light_source_position;
|
||||
|
@ -4,6 +4,7 @@ layout (points) in;
|
||||
layout (triangle_strip, max_vertices = 4) out;
|
||||
|
||||
uniform float anti_alias_width;
|
||||
uniform vec2 pixel_shape;
|
||||
|
||||
in vec3 v_point[1];
|
||||
in float v_radius[1];
|
||||
|
Reference in New Issue
Block a user