Skip to main content

ResolveMaterial

Trait ResolveMaterial 

Source
pub trait ResolveMaterial {
    // Required method
    fn resolve(self, assets: &AssetServer) -> MaterialHandle;
}
Expand description

Trait for types that can be resolved into a MaterialHandle.

Implemented for:

  • MaterialHandle — returned as-is (zero cost).
  • Material — auto-registered in AssetServer.
  • UnlitMaterial, PhongMaterial, PhysicalMaterial — converted to Material and auto-registered.

Required Methods§

Implementors§