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

Function add_directional_light

native/watchos/src/scene.rs:315–323  ·  view source on GitHub ↗
(dx: f32, dy: f32, dz: f32, r: f32, g: f32, b: f32, intensity: f32)

Source from the content-addressed store, hash-verified

313}
314
315pub fn add_directional_light(dx: f32, dy: f32, dz: f32, r: f32, g: f32, b: f32, intensity: f32) {
316 with(|inner| {
317 inner.lights.push(Light {
318 kind: 1, _pad: 0,
319 pos_or_dir: [dx, dy, dz], range: 0.0,
320 color: [r, g, b], intensity,
321 });
322 });
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| {

Callers 1

Calls 2

withFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected