def render_lights_debug(self, camera_matrix, projection):
self.ctx.enable(moderngl.BLEND)<EOL>self.ctx.blend_func = moderngl.SRC_ALPHA, moderngl.ONE_MINUS_SRC_ALPHA<EOL>for light in self.point_lights:<EOL><INDENT>m_mv = matrix44.multiply(light.matrix, camera_matrix)<EOL>light_size = light.radius<EOL>self.debug_shader["<STR_LIT>"].write(projection.tobytes())<EOL>self.debug_shader["<STR_LIT>"].write(m_mv.astype('<STR_LIT>').tobytes())<EOL>self.debug_shader["<STR_LIT:size>"].value = light_size<EOL>self.unit_cube.render(self.debug_shader, mode=moderngl.LINE_STRIP)<EOL><DEDENT>self.ctx.disable(moderngl.BLEND)<EOL>
Render outlines of light volumes