pub struct VolumeMaterial { /* private fields */ }Expand description
VOL_ — Volume material (v0, 84 bytes)
Volumetric rendering material with density falloff, color map, and two noise maps for procedural volumetric effects.
Implementations§
Source§impl VolumeMaterial
impl VolumeMaterial
pub fn set_name(&mut self, value: &str)
Sourcepub fn blend_mode(&self) -> u32
pub fn blend_mode(&self) -> u32
Blend mode
pub fn set_blend_mode(&mut self, value: u32)
Sourcepub fn falloff_type(&self) -> VolumeFalloffType
pub fn falloff_type(&self) -> VolumeFalloffType
Density falloff type
pub fn set_falloff_type(&mut self, value: VolumeFalloffType)
Sourcepub fn density(&self) -> Ref<'_, AnimRefF32>
pub fn density(&self) -> Ref<'_, AnimRefF32>
Animated density Borrows the field in place — no copy, no allocation.
pub fn density_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn alpha_threshold(&self) -> u32
pub fn alpha_threshold(&self) -> u32
Alpha test threshold
pub fn set_alpha_threshold(&mut self, value: u32)
Trait Implementations§
Source§impl Debug for VolumeMaterial
impl Debug for VolumeMaterial
Source§impl Default for VolumeMaterial
impl Default for VolumeMaterial
Source§impl Drop for VolumeMaterial
impl Drop for VolumeMaterial
impl Send for VolumeMaterial
Auto Trait Implementations§
impl !Sync for VolumeMaterial
impl Freeze for VolumeMaterial
impl RefUnwindSafe for VolumeMaterial
impl Unpin for VolumeMaterial
impl UnsafeUnpin for VolumeMaterial
impl UnwindSafe for VolumeMaterial
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