Преглед на файлове

Merge pull request #6537 from tschw/ShaderMaterial_serialize_attributes

Serialize ShaderMaterial (custom) attributes.
Ricardo Cabello преди 10 години
родител
ревизия
f579525949
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;