pub struct Light(pub OwnedObject);Tuple Fields§
§0: OwnedObjectImplementations§
Source§impl Light
impl Light
pub fn inner(&self) -> &OwnedObject
pub fn into_inner(self) -> OwnedObject
Sourcepub fn properties(&self) -> &HashMap<String, Property>
pub fn properties(&self) -> &HashMap<String, Property>
Temporary bridge to Assimp-style light properties until typed accessors are added.
pub fn property(&self, name: &str) -> Option<&Property>
pub fn color(&self) -> [f32; 3]
pub fn light_type(&self) -> LightType
pub fn cast_light_on_object(&self) -> bool
pub fn draw_volumetric_light(&self) -> bool
pub fn draw_ground_projection(&self) -> bool
pub fn draw_front_facing_volumetric_light(&self) -> bool
pub fn intensity(&self) -> f32
pub fn inner_angle(&self) -> f32
pub fn outer_angle(&self) -> f32
pub fn fog(&self) -> i32
pub fn decay_type(&self) -> LightDecay
pub fn decay_start(&self) -> f32
pub fn file_name(&self) -> &str
pub fn enable_near_attenuation(&self) -> bool
pub fn near_attenuation_start(&self) -> f32
pub fn near_attenuation_end(&self) -> f32
pub fn enable_far_attenuation(&self) -> bool
pub fn far_attenuation_start(&self) -> f32
pub fn far_attenuation_end(&self) -> f32
pub fn cast_shadows(&self) -> bool
pub fn shadow_color(&self) -> [f32; 3]
pub fn area_light_shape(&self) -> i32
pub fn left_barn_door(&self) -> f32
pub fn right_barn_door(&self) -> f32
pub fn top_barn_door(&self) -> f32
pub fn bottom_barn_door(&self) -> f32
pub fn enable_barn_door(&self) -> bool
Trait Implementations§
Source§impl TryFrom<OwnedObject> for Light
impl TryFrom<OwnedObject> for Light
Source§type Error = FbxTypeMismatch
type Error = FbxTypeMismatch
The type returned in the event of a conversion error.
impl StructuralPartialEq for Light
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnsafeUnpin for Light
impl UnwindSafe for Light
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