MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / update

Method update

examples/shaders/light_system.py:31–34  ·  view source on GitHub ↗
(self, cameraPos)

Source from the content-addressed store, hash-verified

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)
33 for light in self.lights:
34 light.UpdateLightValues()
35
36 def draw(self):
37 for light in self.lights:

Callers 2

shaders_fog.pyFile · 0.45

Calls 1

UpdateLightValuesMethod · 0.80

Tested by

no test coverage detected