UNPKG

@threlte/extras

Version:

Utilities, abstractions and plugins for your Threlte apps

8 lines (7 loc) 329 B
import type { Material, MeshPhongMaterial, MeshStandardMaterial } from 'three'; type SupportedMaterial = MeshStandardMaterial | MeshPhongMaterial; export declare const useMaterials: () => { onNewMaterial: (callback: undefined | ((material: Material) => void)) => void; allMaterials: Set<SupportedMaterial>; }; export {};