diff --git a/src/scene/materials/material.js b/src/scene/materials/material.js index 7b7f5daa806..f81333a9176 100644 --- a/src/scene/materials/material.js +++ b/src/scene/materials/material.js @@ -728,6 +728,9 @@ class Material { return this.parameters; } + /** + * Clears all cached shader variants from the material and mesh instances that reference it. + */ clearVariants() { // clear variants on the material