ソースを参照

Serialize ShaderMaterial (custom) attributes.

tschw 10 年 前
コミット
42fbab34ba
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;