pub struct Layer {
pub material: Entity,
pub texcoord: Option<u8>,
pub transform: Option<UvTransform>,
pub color: Option<[Expression<ColorLane>; 3]>,
}Expand description
One ordinary material sampled with this layer’s UV set and transform. Its colour, normal, mask, tint and alpha participate in the blend.
Fields§
§material: Entity§texcoord: Option<u8>None samples TexCoord(0); retained separately from an explicit zero.
transform: Option<UvTransform>Applied to the selected UVs before sampling every layer texture.
color: Option<[Expression<ColorLane>; 3]>The colour the layer blends: red, green and blue, each an Expression of the lanes of the colour its material
gives (ColorLane), under the expressions’ numeric rules; None blends that colour as it is. Its alpha is the
material’s. A colour that is the material’s own, or whose every lane is its own lane times a constant where the
material’s base colour factor is one (the material’s factor, which says it), is stated without it.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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