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

MaterialLoader: Handle flatShading. See #11724

上级 8907f5ab
......@@ -68,7 +68,7 @@ Object.assign( MaterialLoader.prototype, {
if ( json.fragmentShader !== undefined ) material.fragmentShader = json.fragmentShader;
if ( json.vertexColors !== undefined ) material.vertexColors = json.vertexColors;
if ( json.fog !== undefined ) material.fog = json.fog;
if ( json.shading !== undefined ) material.shading = json.shading;
if ( json.flatShading !== undefined ) material.flatShading = json.flatShading;
if ( json.blending !== undefined ) material.blending = json.blending;
if ( json.side !== undefined ) material.side = json.side;
if ( json.opacity !== undefined ) material.opacity = json.opacity;
......@@ -84,6 +84,10 @@ Object.assign( MaterialLoader.prototype, {
if ( json.skinning !== undefined ) material.skinning = json.skinning;
if ( json.morphTargets !== undefined ) material.morphTargets = json.morphTargets;
// Deprecated
if ( json.shading !== undefined ) material.shading = json.shading;
// for PointsMaterial
if ( json.size !== undefined ) material.size = json.size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册