mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Move uniform pixel_shape declaration outside of get_gl_Position
This commit is contained in:
parent
a004c88e02
commit
d19b244ee1
4 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,6 @@ uniform float is_fixed_in_frame;
|
||||||
uniform vec3 camera_offset;
|
uniform vec3 camera_offset;
|
||||||
uniform mat3 camera_rotation;
|
uniform mat3 camera_rotation;
|
||||||
uniform vec2 frame_shape;
|
uniform vec2 frame_shape;
|
||||||
uniform vec2 pixel_shape; // Move this
|
|
||||||
uniform float focal_distance;
|
uniform float focal_distance;
|
||||||
|
|
||||||
const vec2 DEFAULT_FRAME_SHAPE = vec2(8.0 * 16.0 / 9.0, 8.0);
|
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;
|
layout (triangle_strip, max_vertices = 5) out;
|
||||||
|
|
||||||
uniform float anti_alias_width;
|
uniform float anti_alias_width;
|
||||||
|
uniform vec2 pixel_shape;
|
||||||
|
|
||||||
// Needed for finalize_color
|
// Needed for finalize_color
|
||||||
uniform vec3 light_source_position;
|
uniform vec3 light_source_position;
|
||||||
|
|
|
@ -5,6 +5,7 @@ layout (triangle_strip, max_vertices = 6) out;
|
||||||
|
|
||||||
uniform float anti_alias_width;
|
uniform float anti_alias_width;
|
||||||
uniform float flat_stroke;
|
uniform float flat_stroke;
|
||||||
|
uniform vec2 pixel_shape;
|
||||||
|
|
||||||
//Needed for lighting
|
//Needed for lighting
|
||||||
uniform vec3 light_source_position;
|
uniform vec3 light_source_position;
|
||||||
|
|
|
@ -4,6 +4,7 @@ layout (points) in;
|
||||||
layout (triangle_strip, max_vertices = 4) out;
|
layout (triangle_strip, max_vertices = 4) out;
|
||||||
|
|
||||||
uniform float anti_alias_width;
|
uniform float anti_alias_width;
|
||||||
|
uniform vec2 pixel_shape;
|
||||||
|
|
||||||
in vec3 v_point[1];
|
in vec3 v_point[1];
|
||||||
in float v_radius[1];
|
in float v_radius[1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue