pub struct RigPointLight3D { /* private fields */ }Expand description
Physical omnidirectional point light with finite emitter radius, Lagarde range windowing, and cube-shadow frustums.
Implementations§
Source§impl RigPointLight3D
Constructors, attenuation, and 6-face omnidirectional cube-shadow frustums for RigPointLight3D.
impl RigPointLight3D
Constructors, attenuation, and 6-face omnidirectional cube-shadow frustums for RigPointLight3D.
Sourcepub fn with_source_radius(self, radius: f32) -> Self
pub fn with_source_radius(self, radius: f32) -> Self
Sourcepub fn with_shadows(self, enabled: bool) -> Self
pub fn with_shadows(self, enabled: bool) -> Self
Sourcepub fn attenuation(&self, distance_sq: f32) -> f32
pub fn attenuation(&self, distance_sq: f32) -> f32
Sourcepub fn cube_shadow_frustums(&self) -> [CubeShadowFace3D; 6]
pub fn cube_shadow_frustums(&self) -> [CubeShadowFace3D; 6]
Builds all six 90-degree omnidirectional cubemap shadow frustum descriptors (+X, -X, +Y, -Y, +Z, -Z).
§Returns
[CubeShadowFace3D; 6]- Six square perspective view-projection matrices and frustums.
Sourcepub fn to_core_point_light(&self) -> PointLight3D
pub fn to_core_point_light(&self) -> PointLight3D
Converts this light into euv-core’s core PointLight3D descriptor.
§Returns
PointLight3D- Compatible core point light.
Sourcepub fn evaluate_direct(
&self,
world_pos: Vec3,
normal: Vec3,
view_dir: Vec3,
material: &PbrMaterial,
) -> Vec3
pub fn evaluate_direct( &self, world_pos: Vec3, normal: Vec3, view_dir: Vec3, material: &PbrMaterial, ) -> Vec3
Source§impl RigPointLight3D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RigPointLight3D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_position(&self) -> Vec3
pub fn get_mut_position(&mut self) -> &mut Vec3
pub fn set_position(&mut self, val: Vec3) -> &mut Self
pub fn get_color(&self) -> Vec3
pub fn get_mut_color(&mut self) -> &mut Vec3
pub fn set_color(&mut self, val: Vec3) -> &mut Self
pub fn get_intensity(&self) -> f32
pub fn get_mut_intensity(&mut self) -> &mut f32
pub fn set_intensity(&mut self, val: f32) -> &mut Self
pub fn get_source_radius(&self) -> f32
pub fn get_mut_source_radius(&mut self) -> &mut f32
pub fn set_source_radius(&mut self, val: f32) -> &mut Self
pub fn get_range(&self) -> f32
pub fn get_mut_range(&mut self) -> &mut f32
pub fn set_range(&mut self, val: f32) -> &mut Self
pub fn get_cast_shadows(&self) -> bool
pub fn get_mut_cast_shadows(&mut self) -> &mut bool
pub fn set_cast_shadows(&mut self, val: bool) -> &mut Self
pub fn get_shadow_near(&self) -> f32
pub fn get_mut_shadow_near(&mut self) -> &mut f32
pub fn set_shadow_near(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for RigPointLight3D
impl Clone for RigPointLight3D
impl Copy for RigPointLight3D
Source§impl Debug for RigPointLight3D
impl Debug for RigPointLight3D
Source§impl PartialEq for RigPointLight3D
impl PartialEq for RigPointLight3D
impl StructuralPartialEq for RigPointLight3D
Auto Trait Implementations§
impl Forget for RigPointLight3D
impl Freeze for RigPointLight3D
impl Move for RigPointLight3D
impl RefUnwindSafe for RigPointLight3D
impl Send for RigPointLight3D
impl Sync for RigPointLight3D
impl Unpin for RigPointLight3D
impl UnsafeUnpin for RigPointLight3D
impl UnwindSafe for RigPointLight3D
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