pub struct GpuLight {
pub position: [f32; 3],
pub radius: f32,
pub color: [f32; 3],
pub intensity: f32,
pub casts_shadow: bool,
}Expand description
A point light in a grid’s local space, as handed to
GpuRenderer::set_scene_lights. The facade transforms world-space
[roxlap_render::PointLight]s into each grid’s frame.
Fields§
§position: [f32; 3]Grid-local position (voxel units).
radius: f32Hard cutoff distance, world/voxel units.
color: [f32; 3]Linear RGB, 0..1.
intensity: f32§casts_shadow: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for GpuLight
impl RefUnwindSafe for GpuLight
impl Send for GpuLight
impl Sync for GpuLight
impl Unpin for GpuLight
impl UnsafeUnpin for GpuLight
impl UnwindSafe for GpuLight
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more