(x: f32, y: f32, z: f32, range: f32, r: f32, g: f32, b: f32, intensity: f32)
| 323 | } |
| 324 | |
| 325 | pub 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 | |
| 335 | pub fn clear_lights() { |
| 336 | with(|inner| inner.lights.clear()); |
no test coverage detected