浏览代码

Non Metallic Workflow Support

MackeyK24 8 年之前
父节点
当前提交
639f3aebe3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Materials/babylon.pbrMaterial.ts

+ 1 - 1
src/Materials/babylon.pbrMaterial.ts

@@ -938,7 +938,7 @@
                 this._defines.RADIANCEOVERALPHA = true;
             }
 
-            if ((this.metallic !== undefined && this.metallic != null) || (this.roughness !== undefined && this.roughness != null)) {
+            if ((this.metallic !== undefined && this.metallic !== null) || (this.roughness !== undefined && this.roughness !== null)) {
                 this._defines.METALLICWORKFLOW = true;
             }