diff --git a/src/materials/ShaderMaterial.js b/src/materials/ShaderMaterial.js index 5e187448533f6a..776998d6b47c53 100644 --- a/src/materials/ShaderMaterial.js +++ b/src/materials/ShaderMaterial.js @@ -279,6 +279,12 @@ class ShaderMaterial extends Material { this.glslVersion = source.glslVersion; + this.defaultAttributeValues = Object.assign( {}, source.defaultAttributeValues ); + + this.index0AttributeName = source.index0AttributeName; + + this.uniformsNeedUpdate = source.uniformsNeedUpdate; + return this; }