Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/scene/materials/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ class Material {
return this.parameters;
}

/**
* Clears all cached shader variants from the material and mesh instances that reference it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add @protected tag on it - allowing derived classes to use it, but not making a public API

*/
clearVariants() {

// clear variants on the material
Expand Down