pub struct TexEnv {
pub texture: Option<ObjRef>,
pub scale: [f32; 2],
pub offset: [f32; 2],
}Expand description
A texture property: the texture (None: no texture set) and its tiling (_ST) with Unity’s bottom-left origin.
Fields§
§texture: Option<ObjRef>The texture object.
scale: [f32; 2]The tiling (m_Scale).
offset: [f32; 2]The offset (m_Offset).
Trait Implementations§
impl StructuralPartialEq for TexEnv
Auto Trait Implementations§
impl Freeze for TexEnv
impl RefUnwindSafe for TexEnv
impl Send for TexEnv
impl Sync for TexEnv
impl Unpin for TexEnv
impl UnsafeUnpin for TexEnv
impl UnwindSafe for TexEnv
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