pub struct ReflectionMaterial { /* private fields */ }Expand description
REF_ — Reflection material (v0–v3, 84–160 bytes)
Planar or cube-map reflection material with animated reflection/displacement strength, blur, and multiple texture layers.
Implementations§
Source§impl ReflectionMaterial
impl ReflectionMaterial
pub fn set_name(&mut self, value: &str)
pub fn set_unknown(&mut self, value: u32)
Sourcepub fn reflection_strength(&self) -> Ref<'_, AnimRefF32>
pub fn reflection_strength(&self) -> Ref<'_, AnimRefF32>
Animated reflection strength (v2+) Borrows the field in place — no copy, no allocation.
pub fn reflection_strength_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn displacement_strength(&self) -> Ref<'_, AnimRefF32>
pub fn displacement_strength(&self) -> Ref<'_, AnimRefF32>
Animated displacement strength (v2+) Borrows the field in place — no copy, no allocation.
pub fn displacement_strength_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn reflection_offset(&self) -> Ref<'_, AnimRefF32>
pub fn reflection_offset(&self) -> Ref<'_, AnimRefF32>
Animated reflection offset (v2+) Borrows the field in place — no copy, no allocation.
pub fn reflection_offset_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn blur_angle(&self) -> Ref<'_, AnimRefF32>
pub fn blur_angle(&self) -> Ref<'_, AnimRefF32>
Animated blur angle (v2+) Borrows the field in place — no copy, no allocation.
pub fn blur_angle_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn blur_distance_max(&self) -> Ref<'_, AnimRefF32>
pub fn blur_distance_max(&self) -> Ref<'_, AnimRefF32>
Animated max blur distance (v2+) Borrows the field in place — no copy, no allocation.
pub fn blur_distance_max_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn flags(&self) -> ReflectionMaterialFlag
pub fn flags(&self) -> ReflectionMaterialFlag
Reflection flags (v2+)
pub fn set_flags(&mut self, value: ReflectionMaterialFlag)
pub fn set_unknown_2(&mut self, value: u32)
Trait Implementations§
Source§impl Debug for ReflectionMaterial
impl Debug for ReflectionMaterial
Source§impl Default for ReflectionMaterial
impl Default for ReflectionMaterial
Source§impl Drop for ReflectionMaterial
impl Drop for ReflectionMaterial
impl Send for ReflectionMaterial
Auto Trait Implementations§
impl !Sync for ReflectionMaterial
impl Freeze for ReflectionMaterial
impl RefUnwindSafe for ReflectionMaterial
impl Unpin for ReflectionMaterial
impl UnsafeUnpin for ReflectionMaterial
impl UnwindSafe for ReflectionMaterial
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