pub struct WaveLayer {
pub normal: TextureRef,
pub velocity: [f32; 2],
pub strength: f32,
}Expand description
One moving normal map of a WaterBody.
Fields§
§normal: TextureRefThe normal map (tangent space, as crate::pbr::PbrMaterial::normal_texture), its tiling in the reference’s
transform.
velocity: [f32; 2]How far its coordinates move per second, in texture units after the transform: the map is sampled at
transformed(uv) + velocity * t.
strength: f32The factor on its tangent-space x and y before the layers are summed (a normal map’s scale).
Trait Implementations§
impl Copy for WaveLayer
impl StructuralPartialEq for WaveLayer
Auto Trait Implementations§
impl Forget for WaveLayer
impl Freeze for WaveLayer
impl RefUnwindSafe for WaveLayer
impl Send for WaveLayer
impl Sync for WaveLayer
impl Unpin for WaveLayer
impl UnsafeUnpin for WaveLayer
impl UnwindSafe for WaveLayer
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