pub fn setup_chunk_material(
standard_materials: ResMut<'_, Assets<StandardMaterial>>,
chunk_materials: ResMut<'_, Assets<ChunkMaterial>>,
handle: ResMut<'_, ChunkMaterialHandle>,
config: Res<'_, ChunkMaterialConfig>,
texture_array: Option<Res<'_, ChunkTextureArray>>,
)Expand description
Startup system that creates the shared chunk material.
If ChunkTextureArray is present, creates a ChunkMaterial backed by
the provided texture array. Otherwise creates a StandardMaterial with
vertex colors. The handle is stored in ChunkMaterialHandle.