Skip to content

Commit

Permalink
NodeMaterial: add .customProgramCacheKey() (mrdoob#24096)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored and abernier committed Sep 16, 2022
1 parent 9a04d35 commit a51fb39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/jsm/nodes/materials/NodeMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class NodeMaterial extends ShaderMaterial {

}

customProgramCacheKey() {

return this.uuid + '-' + this.version;

}

generateMain( builder ) {

const object = builder.object;
Expand Down

0 comments on commit a51fb39

Please sign in to comment.