pub struct MesherConfig {
pub cull_hidden_faces: bool,
pub atlas_max_size: u32,
pub atlas_padding: u32,
pub include_air: bool,
pub tint_provider: TintProvider,
pub ambient_occlusion: bool,
pub ao_intensity: f32,
}Expand description
Main mesher configuration.
Fields§
Enable face culling between adjacent blocks.
atlas_max_size: u32Maximum texture atlas dimension.
atlas_padding: u32Padding between textures in the atlas.
include_air: boolInclude air blocks in output.
tint_provider: TintProviderTint provider for block coloring (grass, foliage, water, redstone, etc.)
ambient_occlusion: boolEnable ambient occlusion.
ao_intensity: f32AO intensity (0.0 = no darkening, 1.0 = full darkening).
Implementations§
Source§impl MesherConfig
impl MesherConfig
Sourcepub fn with_biome(self, biome: &str) -> Self
pub fn with_biome(self, biome: &str) -> Self
Create config with a specific biome for tinting.
Sourcepub fn with_tint_colors(self, colors: TintColors) -> Self
pub fn with_tint_colors(self, colors: TintColors) -> Self
Create config with custom tint colors.
Trait Implementations§
Source§impl Clone for MesherConfig
impl Clone for MesherConfig
Source§fn clone(&self) -> MesherConfig
fn clone(&self) -> MesherConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MesherConfig
impl Debug for MesherConfig
Auto Trait Implementations§
impl Freeze for MesherConfig
impl RefUnwindSafe for MesherConfig
impl Send for MesherConfig
impl Sync for MesherConfig
impl Unpin for MesherConfig
impl UnwindSafe for MesherConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more