Trait Palette

Source
pub trait Palette {
    type Voxel;

    // Required method
    fn sample(
        &self,
        voxel: &Self::Voxel,
        indices: &[u32; 6],
        positions: &[[f32; 3]; 4],
        normals: &[[f32; 3]; 4],
    ) -> PaletteSample;
}

Required Associated Types§

Required Methods§

Source

fn sample( &self, voxel: &Self::Voxel, indices: &[u32; 6], positions: &[[f32; 3]; 4], normals: &[[f32; 3]; 4], ) -> PaletteSample

Implementations on Foreign Types§

Source§

impl<P: Palette> Palette for &P

Source§

type Voxel = <P as Palette>::Voxel

Source§

fn sample( &self, voxel: &Self::Voxel, indices: &[u32; 6], positions: &[[f32; 3]; 4], normals: &[[f32; 3]; 4], ) -> PaletteSample

Implementors§