(self, mvp, light, bright, scatter)
| 117 | if not color is None: self.color = color |
| 118 | |
| 119 | def draw(self, mvp, light, bright, scatter): |
| 120 | if not self.visible: return |
| 121 | self.ctx.line_width = 2 |
| 122 | self.prog['mv'].write(mvp[0].astype(np.float32).tobytes()) |
| 123 | self.prog['proj'].write(mvp[1].astype(np.float32).tobytes()) |
| 124 | self.prog['f_color'].write(np.array(self.color).astype(np.float32).tobytes()) |
| 125 | self.prog['h'].value = self.h |
| 126 | self.vao.render(moderngl.LINES) |
| 127 | |
| 128 | class Manager: |
| 129 | def __init__(self): |