MergeVoxel

Trait MergeVoxel 

Source
pub trait MergeVoxel: Voxel {
    type MergeValue: Eq;

    // Required method
    fn merge_value(&self) -> Self::MergeValue;
}

Required Associated Types§

Required Methods§

Source

fn merge_value(&self) -> Self::MergeValue

The value used to determine if this voxel can join a given quad in the mesh. This value will be constant for all voxels in the same quad. Often this is some material identifier so that the same texture can be used for a full quad.

Implementors§