Skip to content

Commit

Permalink
fix: make derived material's customProgramCacheKey function writable
Browse files Browse the repository at this point in the history
  • Loading branch information
lojjic committed Jan 29, 2021
1 parent 8c3ba2d commit 10289dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/troika-three-utils/src/DerivedMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export function createDerivedMaterial(baseMaterial, options) {
isDerivedMaterial: {value: true},

customProgramCacheKey: {
writable: true,
configurable: true,
value: function () {
return optionsKey
}
Expand Down

0 comments on commit 10289dd

Please sign in to comment.