Browse Source

Fix Falloff Switch

sebastien 7 years ago
parent
commit
a2ed194026
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Materials/PBR/babylon.pbrBaseMaterial.ts

+ 2 - 2
src/Materials/PBR/babylon.pbrBaseMaterial.ts

@@ -1241,8 +1241,8 @@
                     defines.USEGLTFLIGHTFALLOFF = true;
                     defines.USEGLTFLIGHTFALLOFF = true;
                 }
                 }
                 else {
                 else {
-                    defines.USEPHYSICALLIGHTFALLOFF = false;
-                    defines.USEGLTFLIGHTFALLOFF = true;
+                    defines.USEPHYSICALLIGHTFALLOFF = true;
+                    defines.USEGLTFLIGHTFALLOFF = false;
                 }
                 }
 
 
                 defines.RADIANCEOVERALPHA = this._useRadianceOverAlpha;
                 defines.RADIANCEOVERALPHA = this._useRadianceOverAlpha;