Trait block_mesh::MergeVoxel
source · [−]pub trait MergeVoxel: Voxel {
type MergeValue: Eq;
fn merge_value(&self) -> Self::MergeValue;
}
Required Associated Types
type MergeValue: Eq
Required Methods
fn merge_value(&self) -> Self::MergeValue
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.