提交 f5795259 编写于 作者: R Ricardo Cabello

Merge pull request #6537 from tschw/ShaderMaterial_serialize_attributes

Serialize ShaderMaterial (custom) attributes.
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册