pub enum RtLightKind {
Directional {
direction: Vec3,
angular_radius_rad: f32,
},
Point {
position: Vec3,
radius: f32,
},
Spot {
position: Vec3,
direction: Vec3,
inner_cos: f32,
outer_cos: f32,
radius: f32,
},
RectArea {
position: Vec3,
right: Vec3,
up: Vec3,
normal: Vec3,
width: f32,
height: f32,
two_sided: bool,
},
DiskArea {
position: Vec3,
right: Vec3,
up: Vec3,
normal: Vec3,
radius: f32,
two_sided: bool,
},
}Expand description
Physical light emitter geometry supported by direct sampling, soft shadows, and MIS.
Variants§
Directional
Infinite directional light (sun/moon) with optional cone angular radius for soft penumbrae.
Fields
Point
Omnidirectional spherical point light with inverse-square falloff and optional emitter radius.
Fields
Spot
Focused cone spotlight with smooth inner-to-outer angular falloff and optional emitter radius.
Fields
RectArea
Physically based rectangular area emitter supporting exact uniform surface sampling and MIS.
Fields
DiskArea
Physically based circular disk area emitter supporting exact uniform disk sampling and MIS.
Trait Implementations§
Source§impl Clone for RtLightKind
impl Clone for RtLightKind
impl Copy for RtLightKind
Source§impl Debug for RtLightKind
impl Debug for RtLightKind
Source§impl PartialEq for RtLightKind
impl PartialEq for RtLightKind
impl StructuralPartialEq for RtLightKind
Auto Trait Implementations§
impl Forget for RtLightKind
impl Freeze for RtLightKind
impl Move for RtLightKind
impl RefUnwindSafe for RtLightKind
impl Send for RtLightKind
impl Sync for RtLightKind
impl Unpin for RtLightKind
impl UnsafeUnpin for RtLightKind
impl UnwindSafe for RtLightKind
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