//! This example demonstrates how to query a [`StandardMaterial`] within a glTF scene. //! It is particularly useful for glTF scenes with a mesh that consists of multiple primitives. use std::f32::consts::PI; use bevy::{gltf::GltfMaterialName, prelude::*, render::mesh::VertexAttributeValues}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .add_systems(Update, find_top_material_and_mesh) .run(); } fn find_top_material_and_mesh( mut materials: ResMut>, mut meshes: ResMut>, time: Res