mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Clean up
This commit is contained in:
parent
28eba26bee
commit
39bcead679
1 changed files with 1 additions and 3 deletions
|
@ -15,8 +15,6 @@ out float depth;
|
|||
void emit_triangle(vec3 points[3]){
|
||||
for(int i = 0; i < 3; i++){
|
||||
emit_gl_Position(points[i]);
|
||||
// float z = gl_Position.z / gl_Position.w;
|
||||
// depth = 0.5 * z + 0.5;
|
||||
EmitVertex();
|
||||
}
|
||||
EndPrimitive();
|
||||
|
@ -32,7 +30,7 @@ void main(){
|
|||
// the first anchor is set equal to that anchor
|
||||
if (verts[0] == verts[1]) return;
|
||||
|
||||
// Emit main triangle
|
||||
// Emit two triangles
|
||||
emit_triangle(vec3[3](v_base_point[0], verts[0], verts[2]));
|
||||
emit_triangle(vec3[3](verts[0], verts[1], verts[2]));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue