pub struct RangeMaterial {
pub kind: MaterialKind,
pub diffuse: Option<String>,
pub snow: Option<String>,
pub damage: Option<String>,
pub skinned: bool,
pub rigid_bone: Option<usize>,
pub rigid: Transform,
}Expand description
Everything about one draw range except its geometry bytes.
Fields§
§kind: MaterialKindThe shader the range is drawn with.
diffuse: Option<String>The reference of the diffuse texture.
snow: Option<String>The reference of the snow texture, for materials that hold snow.
damage: Option<String>The damaged materials’ damage texture (OpaqueSnowDamageMaterial and the like).
skinned: boolSkinned ranges (bone < 0) go through the skin palette; rigid ones use rigid.
rigid_bone: Option<usize>Rigid node index (bone >= 0).
rigid: TransformThe rigid node’s bind world transform (identity for skinned ranges).
Trait Implementations§
Source§impl Clone for RangeMaterial
impl Clone for RangeMaterial
Source§fn clone(&self) -> RangeMaterial
fn clone(&self) -> RangeMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RangeMaterial
impl RefUnwindSafe for RangeMaterial
impl Send for RangeMaterial
impl Sync for RangeMaterial
impl Unpin for RangeMaterial
impl UnsafeUnpin for RangeMaterial
impl UnwindSafe for RangeMaterial
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