First pass at a winding-based fill approach

This commit is contained in:
Grant Sanderson
2023-01-24 13:29:34 -08:00
parent d01658bc5b
commit 4774d2bc3b
6 changed files with 128 additions and 137 deletions

View File

@ -34,6 +34,7 @@ class ShaderWrapper(object):
depth_test: bool = False,
use_clip_plane: bool = False,
render_primitive: int = moderngl.TRIANGLE_STRIP,
render_to_texture: bool = False,
):
self.vert_data = vert_data
self.vert_indices = vert_indices
@ -44,6 +45,7 @@ class ShaderWrapper(object):
self.depth_test = depth_test
self.use_clip_plane = use_clip_plane
self.render_primitive = str(render_primitive)
self.render_to_texture = render_to_texture
self.init_program_code()
self.refresh_id()