pub struct Displace { /* private fields */ }Expand description
Displaces lookup of one texture by values from another texture.
Trait Implementations§
Source§impl Texture for Displace
impl Texture for Displace
Source§fn at_frequency(&self, point: Vec3a, frequency: Option<f32>) -> Vec3a
fn at_frequency(&self, point: Vec3a, frequency: Option<f32>) -> Vec3a
Evaluate texture at
point using frequency for basis frequencies.
The canonical value range is -1…1 for each dimension.
Some textures may exceed it.Source§fn get_basis_code(&self) -> String
fn get_basis_code(&self) -> String
Get code for instantiating this texture without specifying basis frequencies.
Auto Trait Implementations§
impl Freeze for Displace
impl !RefUnwindSafe for Displace
impl Send for Displace
impl Sync for Displace
impl Unpin for Displace
impl !UnwindSafe for Displace
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