(self, light_matrix)
| 627 | uniform.value = 1 if uniform.array_length == 1 else [*range(1, len(lights) + 1)] |
| 628 | |
| 629 | def render_shadowmap(self, light_matrix): |
| 630 | if not self.cast_shadow or self.depth_only_program is None or self.color[3] == 0.0: |
| 631 | return |
| 632 | |
| 633 | prog = self.depth_only_program |
| 634 | prog["model_matrix"].write(self.model_matrix.T.tobytes()) |
| 635 | prog["view_projection_matrix"].write(light_matrix.T.tobytes()) |
| 636 | |
| 637 | self.render_positions(prog) |
| 638 | |
| 639 | def render_fragmap(self, ctx, camera, uid=None): |
| 640 | if not self.fragmap or self.fragmap_program is None: |
nothing calls this directly
no test coverage detected