(self, light)
| 23 | self.add(light) |
| 24 | |
| 25 | def add(self, light): |
| 26 | light.configure(len(self.lights), self.shader) |
| 27 | self.lights.append(light) |
| 28 | if len(self.lights) > self.MAX_LIGHTS: |
| 29 | raise Exception("Too many lights") |
| 30 | |
| 31 | def update(self, cameraPos): |
| 32 | rl.SetShaderValue(self.shader, self.shader.locs[rl.SHADER_LOC_VECTOR_VIEW], rl.ffi.new("struct Vector3 *",cameraPos), rl.SHADER_UNIFORM_VEC3) |
no test coverage detected