Skip to content

Commit

Permalink
fix(three-instanced-uniforms-mesh): the derived material is now proto…
Browse files Browse the repository at this point in the history
…type-chained to its base
  • Loading branch information
lojjic committed Feb 1, 2021
1 parent b6c3263 commit bf45d01
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const varyingRefReplacer = (name, index, str) => (precededByUniformRE.test(str.s

export function createInstancedUniformsDerivedMaterial (baseMaterial, uniformNames) {
const derived = createDerivedMaterial(baseMaterial, {
chained: true,

defines: {
TROIKA_INSTANCED_UNIFORMS: uniformNames.sort().join('|')
},
Expand Down

0 comments on commit bf45d01

Please sign in to comment.