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;
}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;
}