#[non_exhaustive]pub struct FbxLight {
pub light_type: Option<i32>,
pub color: Option<[f32; 3]>,
pub intensity: Option<f32>,
pub cast_light: Option<bool>,
pub cast_shadows: Option<bool>,
pub decay_type: Option<i32>,
pub decay_start: Option<f32>,
}Available on crate features
fbx-reader or fbx-writer only.Expand description
An FBX Light node attribute.
As with FbxCamera, every field is optional and the set is limited to
what the corpus contains. Notably no file carries InnerAngle or
OuterAngle, so spot cone angles are not represented.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.light_type: Option<i32>LightType: 0 point, 1 directional, 2 spot, 3 area, 4 volume.
color: Option<[f32; 3]>Linear RGB colour.
intensity: Option<f32>Intensity, where 100 is FBX’s unit brightness.
cast_light: Option<bool>Whether the light contributes at all.
cast_shadows: Option<bool>Whether the light casts shadows.
decay_type: Option<i32>DecayType: 0 none, 1 linear, 2 quadratic, 3 cubic.
decay_start: Option<f32>Distance at which decay begins.
Trait Implementations§
impl StructuralPartialEq for FbxLight
Auto Trait Implementations§
impl Freeze for FbxLight
impl RefUnwindSafe for FbxLight
impl Send for FbxLight
impl Sync for FbxLight
impl Unpin for FbxLight
impl UnsafeUnpin for FbxLight
impl UnwindSafe for FbxLight
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