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)
Sourcepub fn unknown_2(&self) -> u32
pub fn unknown_2(&self) -> u32
Index of the DataDrivenMaterial this was converted into, 0xFFFFFFFF if none (v3+). Written by the Heroes load-time conversion pass, not a material parameter; meaningless in a model that carries no MADD chunk. v3 exists only to hold it. Defaulted because an invented REF_ has no link to name, and a v3 record that says anything else points the Heroes loader at a MADD index.