pub struct AreaLightInfo {
pub light_type: u32,
pub color_space: String,
pub color: Option<[f32; 4]>,
pub lumens: f32,
pub inner_cone_angle: f32,
pub outer_cone_angle: f32,
pub attenuation_start_distance: f32,
pub attenuation_end_distance: f32,
pub area_radius: f32,
pub super_elliptic_power: [f32; 2],
pub aspect: f32,
}Expand description
Wraps the corresponding Model I/O area light info counterpart.
Fields§
§light_type: u32§color_space: String§color: Option<[f32; 4]>§lumens: f32§inner_cone_angle: f32§outer_cone_angle: f32§attenuation_start_distance: f32§attenuation_end_distance: f32§area_radius: f32§super_elliptic_power: [f32; 2]§aspect: f32Implementations§
Source§impl AreaLightInfo
impl AreaLightInfo
Sourcepub fn light_type_enum(&self) -> Option<LightType>
pub fn light_type_enum(&self) -> Option<LightType>
Calls the corresponding Model I/O method on the wrapped Model I/O area light info counterpart.
Trait Implementations§
Source§impl Clone for AreaLightInfo
impl Clone for AreaLightInfo
Source§fn clone(&self) -> AreaLightInfo
fn clone(&self) -> AreaLightInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AreaLightInfo
impl Debug for AreaLightInfo
Source§impl<'de> Deserialize<'de> for AreaLightInfo
impl<'de> Deserialize<'de> for AreaLightInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AreaLightInfo
impl RefUnwindSafe for AreaLightInfo
impl Send for AreaLightInfo
impl Sync for AreaLightInfo
impl Unpin for AreaLightInfo
impl UnsafeUnpin for AreaLightInfo
impl UnwindSafe for AreaLightInfo
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