MCPcopy Create free account
hub / github.com/ZhengdiYu/SignAvatars / render_shadowmap

Method render_shadowmap

visualizer/aitviewer/scene/node.py:629–637  ·  view source on GitHub ↗
(self, light_matrix)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

render_positionsMethod · 0.95

Tested by

no test coverage detected