Browse Source

Small changes

rsredsq 10 years ago
parent
commit
439cbf9052
1 changed files with 4 additions and 3 deletions
  1. 4 3
      ToonTown/Resources/Scripts/main.js

+ 4 - 3
ToonTown/Resources/Scripts/main.js

@@ -1,7 +1,8 @@
 // This script is the main entry point of the game
 // This script is the main entry point of the game
 //Load scene
 //Load scene
-
-Atomic.renderer.reuseShadowMaps = false;
-Atomic.renderer.shadowQuality = Atomic.SHADOWQUALITY_LOW_16BIT;
+if(Atomic.platform == "Android" || Atomic.platform == "iOS") {
+  Atomic.renderer.reuseShadowMaps = false;
+  Atomic.renderer.shadowQuality = Atomic.SHADOWQUALITY_LOW_16BIT;
+}
 
 
 Atomic.player.loadScene("Scenes/ToonTown.scene");
 Atomic.player.loadScene("Scenes/ToonTown.scene");