mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
some formatting and removing unused variables
This commit is contained in:
parent
7e97df490d
commit
7f4b287ac5
2 changed files with 3 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ class OpenGLRenderer(Renderer):
|
|||
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,
|
||||
|
|
@ -268,6 +268,7 @@ class OpenGLRenderer(Renderer):
|
|||
]
|
||||
)
|
||||
|
||||
|
||||
# Preparing vmobject shader
|
||||
logger.debug("Initializing Shader Programs")
|
||||
self.vmobject_fill_program = load_shader_program_by_folder(
|
||||
|
|
@ -433,8 +434,6 @@ class OpenGLRenderer(Renderer):
|
|||
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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue