提交 c3deec78 编写于 作者: M Mr.doob

Material/MaterialLoader: Support wireframeLinewidth.

上级 75ad506d
......@@ -52,6 +52,7 @@ THREE.MaterialLoader.prototype = {
if ( json.transparent !== undefined ) material.transparent = json.transparent;
if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth;
// for PointCloudMaterial
if ( json.size !== undefined ) material.size = json.size;
......
......@@ -165,6 +165,7 @@ THREE.Material.prototype = {
if ( this.transparent === true ) data.transparent = this.transparent;
if ( this.alphaTest > 0 ) data.alphaTest = this.alphaTest;
if ( this.wireframe === true ) data.wireframe = this.wireframe;
if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth;
return data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册