Function veloren_voxygen::scene::terrain::mesh_worker
source ยท fn mesh_worker(
pos: Vec2<i32>,
z_bounds: (f32, f32),
skip_remesh: Option<(Arc<dyn Fn(Vec3<i32>) -> f32 + Send + Sync>, Arc<dyn Fn(Vec3<i32>) -> f32 + Send + Sync>)>,
started_tick: u64,
volume: <VolGrid2d<TerrainChunk> as SampleVol<Aabr<i32>>>::Sample,
max_texture_size: u16,
chunk: Arc<TerrainChunk>,
range: Aabb<i32>,
sprite_render_state: &SpriteRenderState,
) -> MeshWorkerResponse
Expand description
Function executed by worker threads dedicated to chunk meshing. skip_remesh is either None (do the full remesh, including recomputing the light map), or Some((light_map, glow_map)).