Browse Source

Reverting from legacy testing

David Catuhe 9 years ago
parent
commit
64e774d22f

File diff suppressed because it is too large
+ 7 - 7
dist/preview release/babylon.core.js


File diff suppressed because it is too large
+ 744 - 744
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 14 - 14
dist/preview release/babylon.js


+ 3 - 3
dist/preview release/babylon.max.js

@@ -20296,9 +20296,9 @@ var BABYLON;
                 BABYLON.MaterialHelper.PrepareAttributesForInstances(attribs, this._defines);
                 // Legacy browser patch
                 var shaderName = "default";
-                // if (!scene.getEngine().getCaps().standardDerivatives) {
-                shaderName = "legacydefault";
-                //}
+                if (!scene.getEngine().getCaps().standardDerivatives) {
+                    shaderName = "legacydefault";
+                }
                 var join = this._defines.toString();
                 this._effect = scene.getEngine().createEffect(shaderName, attribs, ["world", "view", "viewProjection", "vEyePosition", "vLightsType", "vAmbientColor", "vDiffuseColor", "vSpecularColor", "vEmissiveColor",
                     "vLightData0", "vLightDiffuse0", "vLightSpecular0", "vLightDirection0", "vLightGround0", "lightMatrix0",

File diff suppressed because it is too large
+ 14 - 14
dist/preview release/babylon.noworker.js


+ 3 - 3
src/Materials/babylon.standardMaterial.js

@@ -498,9 +498,9 @@ var BABYLON;
                 BABYLON.MaterialHelper.PrepareAttributesForInstances(attribs, this._defines);
                 // Legacy browser patch
                 var shaderName = "default";
-                // if (!scene.getEngine().getCaps().standardDerivatives) {
-                shaderName = "legacydefault";
-                //}
+                if (!scene.getEngine().getCaps().standardDerivatives) {
+                    shaderName = "legacydefault";
+                }
                 var join = this._defines.toString();
                 this._effect = scene.getEngine().createEffect(shaderName, attribs, ["world", "view", "viewProjection", "vEyePosition", "vLightsType", "vAmbientColor", "vDiffuseColor", "vSpecularColor", "vEmissiveColor",
                     "vLightData0", "vLightDiffuse0", "vLightSpecular0", "vLightDirection0", "vLightGround0", "lightMatrix0",

+ 2 - 2
src/Materials/babylon.standardMaterial.ts

@@ -588,9 +588,9 @@
                 
                 // Legacy browser patch
                 var shaderName = "default";
-               // if (!scene.getEngine().getCaps().standardDerivatives) {
+                if (!scene.getEngine().getCaps().standardDerivatives) {
                     shaderName = "legacydefault";
-                //}
+                }
                 var join = this._defines.toString();
                 this._effect = scene.getEngine().createEffect(shaderName,
                     attribs,