(&mut self, r: f64, g: f64, b: f64, intensity: f64)
| 12438 | // ============================================================ |
| 12439 | |
| 12440 | pub fn set_ambient_light(&mut self, r: f64, g: f64, b: f64, intensity: f64) { |
| 12441 | self.lighting_uniforms.ambient = [(r / 255.0) as f32, (g / 255.0) as f32, (b / 255.0) as f32, intensity as f32]; |
| 12442 | self.queue.write_buffer(&self.lighting_buffer, 0, bytemuck::bytes_of(&self.lighting_uniforms)); |
| 12443 | } |
| 12444 | |
| 12445 | pub fn set_directional_light(&mut self, dx: f64, dy: f64, dz: f64, r: f64, g: f64, b: f64, intensity: f64) { |
| 12446 | // Note: the shadow cache reads `lighting_uniforms.light_dir` |
no outgoing calls
no test coverage detected