Skip to content

Commit

Permalink
some formatting and removing unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDiver committed Sep 14, 2023
1 parent 7e97df4 commit 7f4b287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions manim/renderer/opengl_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(
self,
pixel_width: int = config.pixel_width,
pixel_height: int = config.pixel_height,
samples=0,
samples=4,
background_color: c.ManimColor = color.BLACK,
background_opacity: float = 1.0,
background_image: str | None = None,
Expand Down Expand Up @@ -268,6 +268,7 @@ def __init__(
]
)


# Preparing vmobject shader
logger.debug("Initializing Shader Programs")
self.vmobject_fill_program = load_shader_program_by_folder(
Expand Down Expand Up @@ -433,8 +434,6 @@ def enable_depth(mob):
np.array(range(len(sub.points))),
)

counter += 1

def get_pixels(self) -> ImageType:
raw = self.output_fbo.read(components=4, dtype="f1", clamp=True) # RGBA, floats
buf = np.frombuffer(raw, dtype=np.uint8).reshape((1080, 1920, -1))
Expand Down
2 changes: 1 addition & 1 deletion manim/renderer/shaders/quadratic_bezier_fill/frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void main() {
{
gl_FragDepth = gl_FragCoord.z - index / 1000.0;
}
stencil_value.r = index;
stencil_value.rgb = vec3(index);
stencil_value.a = 1.0;
frag_color = color;
if (fill_all == 1.0) return;
Expand Down

0 comments on commit 7f4b287

Please sign in to comment.