pub struct TextureLayer { /* private fields */ }Expand description
LAYR — Texture layer (v0–v26, 352–464 bytes)
A single texture binding with animated color tint, UV transforms, flipbook parameters, fresnel settings, and AVI video playback controls. Materials embed multiple optional TextureLayer instances for diffuse, specular, emissive, normal, and other texture slots.
Implementations§
Source§impl TextureLayer
impl TextureLayer
pub fn set_id(&mut self, value: u32)
Sourcepub fn texture_path(&self) -> String
pub fn texture_path(&self) -> String
Texture file path (Ref<CHAR>)
pub fn set_texture_path(&mut self, value: &str)
Sourcepub fn color(&self) -> Ref<'_, AnimRefM3ColorBGRA>
pub fn color(&self) -> Ref<'_, AnimRefM3ColorBGRA>
Animated color tint Borrows the field in place — no copy, no allocation.
pub fn color_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>
Sourcepub fn flags(&self) -> TextureLayerFlag
pub fn flags(&self) -> TextureLayerFlag
Layer flags (wrap, flipbook, video, etc.)
pub fn set_flags(&mut self, value: TextureLayerFlag)
Sourcepub fn uv_mapping(&self) -> UVMappingMode
pub fn uv_mapping(&self) -> UVMappingMode
UV mapping source
pub fn set_uv_mapping(&mut self, value: UVMappingMode)
Sourcepub fn color_type(&self) -> ColorChannelSelect
pub fn color_type(&self) -> ColorChannelSelect
Channel selection
pub fn set_color_type(&mut self, value: ColorChannelSelect)
Sourcepub fn rgb_multiply(&self) -> Ref<'_, AnimRefF32>
pub fn rgb_multiply(&self) -> Ref<'_, AnimRefF32>
RGB multiply factor Borrows the field in place — no copy, no allocation.
pub fn rgb_multiply_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn rgb_add(&self) -> Ref<'_, AnimRefF32>
pub fn rgb_add(&self) -> Ref<'_, AnimRefF32>
RGB additive factor Borrows the field in place — no copy, no allocation.
pub fn rgb_add_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn poc_texture(&self) -> u32
pub fn poc_texture(&self) -> u32
POC texture reference
pub fn set_poc_texture(&mut self, value: u32)
Sourcepub fn noise_amplitude(&self) -> f32
pub fn noise_amplitude(&self) -> f32
Noise amplitude (v24+)
pub fn set_noise_amplitude(&mut self, value: f32)
Sourcepub fn noise_frequency(&self) -> f32
pub fn noise_frequency(&self) -> f32
Noise frequency (v24+)
pub fn set_noise_frequency(&mut self, value: f32)
Sourcepub fn texture_source(&self) -> u32
pub fn texture_source(&self) -> u32
Texture source override
pub fn set_texture_source(&mut self, value: u32)
Sourcepub fn avi_frame_rate(&self) -> u32
pub fn avi_frame_rate(&self) -> u32
AVI playback frame rate
pub fn set_avi_frame_rate(&mut self, value: u32)
pub fn set_avi_start(&mut self, value: u32)
pub fn set_avi_stop(&mut self, value: u32)
pub fn set_avi_loop(&mut self, value: u32)
pub fn set_avi_sync(&mut self, value: u32)
Sourcepub fn avi_play(&self) -> Ref<'_, AnimRefU32>
pub fn avi_play(&self) -> Ref<'_, AnimRefU32>
AVI play control Borrows the field in place — no copy, no allocation.
pub fn avi_play_mut(&mut self) -> RefMut<'_, AnimRefU32>
Sourcepub fn avi_restart(&self) -> Ref<'_, AnimRefU32>
pub fn avi_restart(&self) -> Ref<'_, AnimRefU32>
AVI restart control Borrows the field in place — no copy, no allocation.
pub fn avi_restart_mut(&mut self) -> RefMut<'_, AnimRefU32>
Sourcepub fn flipbook_rows(&self) -> u32
pub fn flipbook_rows(&self) -> u32
Flipbook grid rows
pub fn set_flipbook_rows(&mut self, value: u32)
Sourcepub fn flipbook_columns(&self) -> u32
pub fn flipbook_columns(&self) -> u32
Flipbook grid columns
pub fn set_flipbook_columns(&mut self, value: u32)
Sourcepub fn current_frame(&self) -> Ref<'_, AnimRefU16>
pub fn current_frame(&self) -> Ref<'_, AnimRefU16>
Animated flipbook frame index Borrows the field in place — no copy, no allocation.
pub fn current_frame_mut(&mut self) -> RefMut<'_, AnimRefU16>
Sourcepub fn uv_offset(&self) -> Ref<'_, AnimRefVector2f>
pub fn uv_offset(&self) -> Ref<'_, AnimRefVector2f>
Animated UV offset Borrows the field in place — no copy, no allocation.
pub fn uv_offset_mut(&mut self) -> RefMut<'_, AnimRefVector2f>
Sourcepub fn uv_angle(&self) -> Ref<'_, AnimRefVector3f>
pub fn uv_angle(&self) -> Ref<'_, AnimRefVector3f>
Animated UV rotation angles Borrows the field in place — no copy, no allocation.
pub fn uv_angle_mut(&mut self) -> RefMut<'_, AnimRefVector3f>
Sourcepub fn uv_tiling(&self) -> Ref<'_, AnimRefVector2f>
pub fn uv_tiling(&self) -> Ref<'_, AnimRefVector2f>
Animated UV tiling Borrows the field in place — no copy, no allocation.
pub fn uv_tiling_mut(&mut self) -> RefMut<'_, AnimRefVector2f>
Sourcepub fn w_offset(&self) -> Ref<'_, AnimRefF32>
pub fn w_offset(&self) -> Ref<'_, AnimRefF32>
Animated W offset (3D textures) Borrows the field in place — no copy, no allocation.
pub fn w_offset_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn w_tiling(&self) -> Ref<'_, AnimRefF32>
pub fn w_tiling(&self) -> Ref<'_, AnimRefF32>
Animated W tiling (3D textures) Borrows the field in place — no copy, no allocation.
pub fn w_tiling_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn map_alpha(&self) -> Ref<'_, AnimRefF32>
pub fn map_alpha(&self) -> Ref<'_, AnimRefF32>
Animated map alpha Borrows the field in place — no copy, no allocation.
pub fn map_alpha_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn triplanar_offset(&self) -> Ref<'_, AnimRefVector3f>
pub fn triplanar_offset(&self) -> Ref<'_, AnimRefVector3f>
Tri-planar UV offset (v23+) Borrows the field in place — no copy, no allocation.
pub fn triplanar_offset_mut(&mut self) -> RefMut<'_, AnimRefVector3f>
Sourcepub fn triplanar_scale(&self) -> Ref<'_, AnimRefVector3f>
pub fn triplanar_scale(&self) -> Ref<'_, AnimRefVector3f>
Tri-planar UV scale (v23+) Borrows the field in place — no copy, no allocation.
pub fn triplanar_scale_mut(&mut self) -> RefMut<'_, AnimRefVector3f>
UV source related field
Sourcepub fn fresnel_mode(&self) -> FresnelMode
pub fn fresnel_mode(&self) -> FresnelMode
Fresnel effect mode
pub fn set_fresnel_mode(&mut self, value: FresnelMode)
Sourcepub fn fresnel_exponent(&self) -> f32
pub fn fresnel_exponent(&self) -> f32
Fresnel exponent (edge sharpness)
pub fn set_fresnel_exponent(&mut self, value: f32)
Sourcepub fn fresnel_min(&self) -> f32
pub fn fresnel_min(&self) -> f32
Fresnel minimum intensity
pub fn set_fresnel_min(&mut self, value: f32)
Sourcepub fn fresnel_max(&self) -> f32
pub fn fresnel_max(&self) -> f32
Fresnel maximum intensity
pub fn set_fresnel_max(&mut self, value: f32)
Sourcepub fn fresnel_translation(&self) -> Vector3f
pub fn fresnel_translation(&self) -> Vector3f
Fresnel UV translation (v25+)
pub fn set_fresnel_translation(&mut self, value: Vector3f)
Sourcepub fn fresnel_mask(&self) -> Vector3f
pub fn fresnel_mask(&self) -> Vector3f
Fresnel mask vector (v25+)
pub fn set_fresnel_mask(&mut self, value: Vector3f)
Sourcepub fn fresnel_rotation(&self) -> Vector2f
pub fn fresnel_rotation(&self) -> Vector2f
Fresnel UV rotation (v25+)
pub fn set_fresnel_rotation(&mut self, value: Vector2f)
Sourcepub fn uv_density(&self) -> u32
pub fn uv_density(&self) -> u32
UV density hint (v0–v25, absent in v26)