Browse Source

Merge pull request #6537 from tschw/ShaderMaterial_serialize_attributes

Serialize ShaderMaterial (custom) attributes.
Ricardo Cabello 10 years ago
parent
commit
f579525949
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/materials/ShaderMaterial.js

+ 1 - 0
src/materials/ShaderMaterial.js

@@ -117,6 +117,7 @@ THREE.ShaderMaterial.prototype.toJSON = function () {
 	var data = THREE.Material.prototype.toJSON.call( this );
 
 	data.uniforms = this.uniforms;
+	data.attributes = this.attributes;
 	data.vertexShader = this.vertexShader;
 	data.fragmentShader = this.fragmentShader;