Browse Source

setting VideoTexture.invertY to false by default

David Catuhe 10 years ago
parent
commit
b23f1a623a

+ 1 - 1
Babylon/Materials/Textures/babylon.videoTexture.js

@@ -11,7 +11,7 @@ var BABYLON;
         function VideoTexture(name, urls, scene, generateMipMaps, invertY, samplingMode) {
             var _this = this;
             if (generateMipMaps === void 0) { generateMipMaps = false; }
-            if (invertY === void 0) { invertY = true; }
+            if (invertY === void 0) { invertY = false; }
             if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
             _super.call(this, null, scene, !generateMipMaps, invertY);
             this._autoLaunch = true;

+ 1 - 1
Babylon/Materials/Textures/babylon.videoTexture.ts

@@ -5,7 +5,7 @@
         private _autoLaunch = true;
         private _lastUpdate: number;
 
-        constructor(name: string, urls: string[], scene: Scene, generateMipMaps = false, invertY = true, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) {
+        constructor(name: string, urls: string[], scene: Scene, generateMipMaps = false, invertY = false, samplingMode: number = Texture.TRILINEAR_SAMPLINGMODE) {
             super(null, scene, !generateMipMaps, invertY);
 
             this.name = name;

+ 1 - 1
babylon.2.1-beta.debug.js

@@ -16856,7 +16856,7 @@ var BABYLON;
         function VideoTexture(name, urls, scene, generateMipMaps, invertY, samplingMode) {
             var _this = this;
             if (generateMipMaps === void 0) { generateMipMaps = false; }
-            if (invertY === void 0) { invertY = true; }
+            if (invertY === void 0) { invertY = false; }
             if (samplingMode === void 0) { samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODE; }
             _super.call(this, null, scene, !generateMipMaps, invertY);
             this._autoLaunch = true;

File diff suppressed because it is too large
+ 1 - 1
babylon.2.1-beta.js


File diff suppressed because it is too large
+ 1 - 1
babylon.2.1-beta.noworker.js