pub enum Paper {
Procedural {
seed: u32,
strength: f32,
scale: f32,
},
Texture {
texture: Arc<ImageAsset>,
grain_scale: f64,
absorbency: f64,
},
}Expand description
The sheet an Ink is absorbed into, set with Ink::paper.
Both variants only attenuate pigment coverage and are sampled in paper space, which is local
coordinates mapped by Ink::paper_transform.
Variants§
Procedural
Seeded procedural fibers; needs no resources.
Fields
Texture
Repeating immutable paper height map.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Paper
impl Freeze for Paper
impl Move for Paper
impl RefUnwindSafe for Paper
impl Send for Paper
impl Sync for Paper
impl Unpin for Paper
impl UnsafeUnpin for Paper
impl UnwindSafe for Paper
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