pub struct PhotometricLightInfo {
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 spherical_harmonics_level: usize,
pub spherical_harmonics_coefficients_length: usize,
pub has_light_cube_map: bool,
}Expand description
Wraps the corresponding Model I/O photometric 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§spherical_harmonics_level: usize§spherical_harmonics_coefficients_length: usize§has_light_cube_map: boolImplementations§
Source§impl PhotometricLightInfo
impl PhotometricLightInfo
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 photometric light info counterpart.
Trait Implementations§
Source§impl Clone for PhotometricLightInfo
impl Clone for PhotometricLightInfo
Source§fn clone(&self) -> PhotometricLightInfo
fn clone(&self) -> PhotometricLightInfo
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 PhotometricLightInfo
impl Debug for PhotometricLightInfo
Source§impl<'de> Deserialize<'de> for PhotometricLightInfo
impl<'de> Deserialize<'de> for PhotometricLightInfo
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 PhotometricLightInfo
impl RefUnwindSafe for PhotometricLightInfo
impl Send for PhotometricLightInfo
impl Sync for PhotometricLightInfo
impl Unpin for PhotometricLightInfo
impl UnsafeUnpin for PhotometricLightInfo
impl UnwindSafe for PhotometricLightInfo
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