pub struct AlphaCutoutSpec {
pub index: u32,
pub cutoff_offset: u32,
pub uv_transform_offset: Option<u32>,
}
Expand description
How the material should be read for alpha cutouting.
Fields§
§index: u32
Index into the texture array to read the alpha from. Currently must be 0. This will be lifted.
cutoff_offset: u32
Byte index into the data array that represents a single f32 to use as the alpha cutout value.
uv_transform_offset: Option<u32>
Byte index into the data array that represents a single mat3 to use as uv transform.
Auto Trait Implementations§
impl Freeze for AlphaCutoutSpec
impl RefUnwindSafe for AlphaCutoutSpec
impl Send for AlphaCutoutSpec
impl Sync for AlphaCutoutSpec
impl Unpin for AlphaCutoutSpec
impl UnwindSafe for AlphaCutoutSpec
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