MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / add_point_light

Function add_point_light

native/watchos/src/scene.rs:325–333  ·  view source on GitHub ↗
(x: f32, y: f32, z: f32, range: f32, r: f32, g: f32, b: f32, intensity: f32)

Source from the content-addressed store, hash-verified

323}
324
325pub fn add_point_light(x: f32, y: f32, z: f32, range: f32, r: f32, g: f32, b: f32, intensity: f32) {
326 with(|inner| {
327 inner.lights.push(Light {
328 kind: 2, _pad: 0,
329 pos_or_dir: [x, y, z], range,
330 color: [r, g, b], intensity,
331 });
332 });
333}
334
335pub fn clear_lights() {
336 with(|inner| inner.lights.clear());

Callers 1

bloom_add_point_lightFunction · 0.85

Calls 2

withFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected