pub struct LayerState {Show 14 fields
pub name: String,
pub texture_name: Option<String>,
pub blend_flags: u32,
pub shade_flags: u32,
pub misc_flags: u32,
pub z_flags: u32,
pub uv_channel: u8,
pub uvw_src_full: u32,
pub opacity: f32,
pub uv_transform: Option<[[f32; 4]; 4]>,
pub preshade_color: [f32; 4],
pub runtime_color: [f32; 4],
pub ambient_color: [f32; 4],
pub specular_color: [f32; 4],
}Expand description
Parsed layer state for compositing decisions.
Fields§
§name: String§texture_name: Option<String>§blend_flags: u32§shade_flags: u32§misc_flags: u32§z_flags: u32§uv_channel: u8§uvw_src_full: u32Full UVWSrc including mode bits (kUVWNormal=0x10000, kUVWPosition=0x20000, kUVWReflect=0x30000)
opacity: f32§uv_transform: Option<[[f32; 4]; 4]>UV transform matrix from plLayer (hsMatrix44, row-major fMap[row][col]). Applied as: uv_out = (transform * vec4(uv, 0, 1)).xy Identity when None (no transform or identity flag set).
preshade_color: [f32; 4]Material colors from plLayer::Read (plLayer.cpp:124-127) Order: preshadeColor, runtimeColor, ambientColor, specularColor
runtime_color: [f32; 4]§ambient_color: [f32; 4]§specular_color: [f32; 4]Trait Implementations§
Source§impl Clone for LayerState
impl Clone for LayerState
Source§fn clone(&self) -> LayerState
fn clone(&self) -> LayerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayerState
impl RefUnwindSafe for LayerState
impl Send for LayerState
impl Sync for LayerState
impl Unpin for LayerState
impl UnsafeUnpin for LayerState
impl UnwindSafe for LayerState
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