pub trait MergeVoxel: Voxel {
type MergeValue: Eq;
// Required method
fn merge_value(&self) -> Self::MergeValue;
}Required Associated Types§
type MergeValue: Eq
Required Methods§
Sourcefn 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.