Explorar o código

Serialize ShaderMaterial (custom) attributes.

tschw %!s(int64=10) %!d(string=hai) anos
pai
achega
42fbab34ba
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;