|
@@ -12974,7 +12974,7 @@ var BABYLON;
|
|
|
* Returns the current version of the framework
|
|
|
*/
|
|
|
get: function () {
|
|
|
- return "4.0.0-alpha.11";
|
|
|
+ return "4.0.0-alpha.12";
|
|
|
},
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
@@ -31768,14 +31768,6 @@ var BABYLON;
|
|
|
*/
|
|
|
this.anisotropicFilteringLevel = BaseTexture.DEFAULT_ANISOTROPIC_FILTERING_LEVEL;
|
|
|
/**
|
|
|
- * Define if the texture is a cube texture or if false a 2d texture.
|
|
|
- */
|
|
|
- this.isCube = false;
|
|
|
- /**
|
|
|
- * Define if the texture is a 3d texture (webgl 2) or if false a 2d texture.
|
|
|
- */
|
|
|
- this.is3D = false;
|
|
|
- /**
|
|
|
* Define if the texture contains data in gamma space (most of the png/jpg aside bump).
|
|
|
* HDR texture are usually stored in linear space.
|
|
|
* This only impacts the PBR and Background materials
|
|
@@ -31864,6 +31856,44 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(BaseTexture.prototype, "isCube", {
|
|
|
+ /**
|
|
|
+ * Define if the texture is a cube texture or if false a 2d texture.
|
|
|
+ */
|
|
|
+ get: function () {
|
|
|
+ if (!this._texture) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return this._texture.isCube;
|
|
|
+ },
|
|
|
+ set: function (value) {
|
|
|
+ if (!this._texture) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._texture.isCube = value;
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
+ Object.defineProperty(BaseTexture.prototype, "is3D", {
|
|
|
+ /**
|
|
|
+ * Define if the texture is a 3d texture (webgl 2) or if false a 2d texture.
|
|
|
+ */
|
|
|
+ get: function () {
|
|
|
+ if (!this._texture) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return this._texture.is3D;
|
|
|
+ },
|
|
|
+ set: function (value) {
|
|
|
+ if (!this._texture) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._texture.is3D = value;
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(BaseTexture.prototype, "isRGBD", {
|
|
|
/**
|
|
|
* Gets whether or not the texture contains RGBD data.
|
|
@@ -32086,7 +32116,6 @@ var BABYLON;
|
|
|
if (!scene) {
|
|
|
return;
|
|
|
}
|
|
|
- this._samplingMode = samplingMode;
|
|
|
scene.getEngine().updateTextureSamplingMode(samplingMode, this._texture);
|
|
|
};
|
|
|
/**
|
|
@@ -32379,10 +32408,10 @@ var BABYLON;
|
|
|
], BaseTexture.prototype, "anisotropicFilteringLevel", void 0);
|
|
|
__decorate([
|
|
|
BABYLON.serialize()
|
|
|
- ], BaseTexture.prototype, "isCube", void 0);
|
|
|
+ ], BaseTexture.prototype, "isCube", null);
|
|
|
__decorate([
|
|
|
BABYLON.serialize()
|
|
|
- ], BaseTexture.prototype, "is3D", void 0);
|
|
|
+ ], BaseTexture.prototype, "is3D", null);
|
|
|
__decorate([
|
|
|
BABYLON.serialize()
|
|
|
], BaseTexture.prototype, "gammaSpace", void 0);
|
|
@@ -32493,6 +32522,8 @@ var BABYLON;
|
|
|
* Defines the center of rotation (W)
|
|
|
*/
|
|
|
_this.wRotationCenter = 0.5;
|
|
|
+ /** @hidden */
|
|
|
+ _this._initialSamplingMode = Texture.BILINEAR_SAMPLINGMODE;
|
|
|
/**
|
|
|
* Observable triggered once the texture has been loaded.
|
|
|
*/
|
|
@@ -32502,7 +32533,7 @@ var BABYLON;
|
|
|
_this.url = url;
|
|
|
_this._noMipmap = noMipmap;
|
|
|
_this._invertY = invertY;
|
|
|
- _this._samplingMode = samplingMode;
|
|
|
+ _this._initialSamplingMode = samplingMode;
|
|
|
_this._buffer = buffer;
|
|
|
_this._deleteBuffer = deleteBuffer;
|
|
|
if (format) {
|
|
@@ -32535,7 +32566,7 @@ var BABYLON;
|
|
|
_this._texture = _this._getFromCache(_this.url, noMipmap, samplingMode);
|
|
|
if (!_this._texture) {
|
|
|
if (!scene.useDelayedTextureLoading) {
|
|
|
- _this._texture = scene.getEngine().createTexture(_this.url, noMipmap, invertY, scene, _this._samplingMode, load, onError, _this._buffer, undefined, _this._format);
|
|
|
+ _this._texture = scene.getEngine().createTexture(_this.url, noMipmap, invertY, scene, samplingMode, load, onError, _this._buffer, undefined, _this._format);
|
|
|
if (deleteBuffer) {
|
|
|
delete _this._buffer;
|
|
|
}
|
|
@@ -32585,7 +32616,10 @@ var BABYLON;
|
|
|
* Get the current sampling mode associated with the texture.
|
|
|
*/
|
|
|
get: function () {
|
|
|
- return this._samplingMode;
|
|
|
+ if (!this._texture) {
|
|
|
+ return this._initialSamplingMode;
|
|
|
+ }
|
|
|
+ return this._texture.samplingMode;
|
|
|
},
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
@@ -32633,9 +32667,9 @@ var BABYLON;
|
|
|
return;
|
|
|
}
|
|
|
this.delayLoadState = BABYLON.Engine.DELAYLOADSTATE_LOADED;
|
|
|
- this._texture = this._getFromCache(this.url, this._noMipmap, this._samplingMode);
|
|
|
+ this._texture = this._getFromCache(this.url, this._noMipmap, this.samplingMode);
|
|
|
if (!this._texture) {
|
|
|
- this._texture = scene.getEngine().createTexture(this.url, this._noMipmap, this._invertY, scene, this._samplingMode, this._delayedOnLoad, this._delayedOnError, this._buffer, null, this._format);
|
|
|
+ this._texture = scene.getEngine().createTexture(this.url, this._noMipmap, this._invertY, scene, this.samplingMode, this._delayedOnLoad, this._delayedOnError, this._buffer, null, this._format);
|
|
|
if (this._deleteBuffer) {
|
|
|
delete this._buffer;
|
|
|
}
|
|
@@ -32774,7 +32808,7 @@ var BABYLON;
|
|
|
Texture.prototype.clone = function () {
|
|
|
var _this = this;
|
|
|
return BABYLON.SerializationHelper.Clone(function () {
|
|
|
- return new Texture(_this._texture ? _this._texture.url : null, _this.getScene(), _this._noMipmap, _this._invertY, _this._samplingMode);
|
|
|
+ return new Texture(_this._texture ? _this._texture.url : null, _this.getScene(), _this._noMipmap, _this._invertY, _this.samplingMode);
|
|
|
}, this);
|
|
|
};
|
|
|
/**
|
|
@@ -32880,7 +32914,7 @@ var BABYLON;
|
|
|
// Update Sampling Mode
|
|
|
if (parsedTexture.samplingMode) {
|
|
|
var sampling = parsedTexture.samplingMode;
|
|
|
- if (texture && texture._samplingMode !== sampling) {
|
|
|
+ if (texture && texture.samplingMode !== sampling) {
|
|
|
texture.updateSamplingMode(sampling);
|
|
|
}
|
|
|
}
|
|
@@ -33137,7 +33171,9 @@ var BABYLON;
|
|
|
// Deep copy
|
|
|
BABYLON.Tools.DeepCopy(source, _this, ["name", "material", "skeleton", "instances", "parent", "uniqueId",
|
|
|
"source", "metadata", "hasLODLevels", "geometry", "isBlocked", "areNormalsFrozen",
|
|
|
- "onBeforeDrawObservable", "onBeforeRenderObservable", "onAfterRenderObservable", "onBeforeDraw"
|
|
|
+ "onBeforeDrawObservable", "onBeforeRenderObservable", "onAfterRenderObservable", "onBeforeDraw",
|
|
|
+ "onAfterWorldMatrixUpdateObservable", "onCollideObservable", "onCollisionPositionChangeObservable", "onRebuildObservable",
|
|
|
+ "onDisposeObservable"
|
|
|
], ["_poseMatrix"]);
|
|
|
// Source mesh
|
|
|
_this._source = source;
|
|
@@ -45272,10 +45308,10 @@ var BABYLON;
|
|
|
};
|
|
|
/**
|
|
|
* Creates a standard material from parsed material data
|
|
|
- * @param source defines the JSON represnetation of the material
|
|
|
+ * @param source defines the JSON representation of the material
|
|
|
* @param scene defines the hosting scene
|
|
|
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
|
- * @returns a new material
|
|
|
+ * @returns a new standard material
|
|
|
*/
|
|
|
StandardMaterial.Parse = function (source, scene, rootUrl) {
|
|
|
return BABYLON.SerializationHelper.Parse(function () { return new StandardMaterial(source.name, scene); }, source, scene, rootUrl);
|
|
@@ -67084,7 +67120,7 @@ var BABYLON;
|
|
|
*/
|
|
|
function DebugLayer(scene) {
|
|
|
var _this = this;
|
|
|
- this.BJSINSPECTOR = typeof INSPECTOR !== 'undefined' ? INSPECTOR : undefined;
|
|
|
+ this.BJSINSPECTOR = this._getGlobalInspector();
|
|
|
/**
|
|
|
* Observable triggered when a property is changed through the inspector.
|
|
|
*/
|
|
@@ -67103,9 +67139,21 @@ var BABYLON;
|
|
|
return;
|
|
|
}
|
|
|
var userOptions = __assign({ overlay: false, showExplorer: true, showInspector: true, embedMode: false, handleResize: true, enablePopup: true }, config);
|
|
|
- this.BJSINSPECTOR = this.BJSINSPECTOR || typeof INSPECTOR !== 'undefined' ? INSPECTOR : undefined;
|
|
|
+ this.BJSINSPECTOR = this.BJSINSPECTOR || this._getGlobalInspector();
|
|
|
this.BJSINSPECTOR.Inspector.Show(this._scene, userOptions);
|
|
|
};
|
|
|
+ /** Get the inspector from bundle or global */
|
|
|
+ DebugLayer.prototype._getGlobalInspector = function () {
|
|
|
+ // UMD Global name detection from Webpack Bundle UMD Name.
|
|
|
+ if (typeof INSPECTOR !== 'undefined') {
|
|
|
+ return INSPECTOR;
|
|
|
+ }
|
|
|
+ // In case of module let s check the global emitted from the Inspector entry point.
|
|
|
+ if (BABYLON && BABYLON.Inspector) {
|
|
|
+ return BABYLON;
|
|
|
+ }
|
|
|
+ return undefined;
|
|
|
+ };
|
|
|
/**
|
|
|
* Get if the inspector is visible or not.
|
|
|
* @returns true if visible otherwise, false
|
|
@@ -70173,7 +70221,7 @@ var BABYLON;
|
|
|
var MeshBuilder = /** @class */ (function () {
|
|
|
function MeshBuilder() {
|
|
|
}
|
|
|
- MeshBuilder.updateSideOrientation = function (orientation) {
|
|
|
+ MeshBuilder._UpdateSideOrientation = function (orientation) {
|
|
|
if (orientation == BABYLON.Mesh.DOUBLESIDE) {
|
|
|
return BABYLON.Mesh.DOUBLESIDE;
|
|
|
}
|
|
@@ -70200,7 +70248,7 @@ var BABYLON;
|
|
|
MeshBuilder.CreateBox = function (name, options, scene) {
|
|
|
if (scene === void 0) { scene = null; }
|
|
|
var box = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
box._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateBox(options);
|
|
|
vertexData.applyToMesh(box, options.updatable);
|
|
@@ -70224,7 +70272,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreateSphere = function (name, options, scene) {
|
|
|
var sphere = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
sphere._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateSphere(options);
|
|
|
vertexData.applyToMesh(sphere, options.updatable);
|
|
@@ -70247,7 +70295,7 @@ var BABYLON;
|
|
|
MeshBuilder.CreateDisc = function (name, options, scene) {
|
|
|
if (scene === void 0) { scene = null; }
|
|
|
var disc = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
disc._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateDisc(options);
|
|
|
vertexData.applyToMesh(disc, options.updatable);
|
|
@@ -70270,7 +70318,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreateIcoSphere = function (name, options, scene) {
|
|
|
var sphere = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
sphere._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateIcoSphere(options);
|
|
|
vertexData.applyToMesh(sphere, options.updatable);
|
|
@@ -70304,7 +70352,7 @@ var BABYLON;
|
|
|
var pathArray = options.pathArray;
|
|
|
var closeArray = options.closeArray;
|
|
|
var closePath = options.closePath;
|
|
|
- var sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ var sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
var instance = options.instance;
|
|
|
var updatable = options.updatable;
|
|
|
if (instance) { // existing ribbon instance update
|
|
@@ -70442,7 +70490,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreateCylinder = function (name, options, scene) {
|
|
|
var cylinder = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
cylinder._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateCylinder(options);
|
|
|
vertexData.applyToMesh(cylinder, options.updatable);
|
|
@@ -70464,7 +70512,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreateTorus = function (name, options, scene) {
|
|
|
var torus = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
torus._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateTorus(options);
|
|
|
vertexData.applyToMesh(torus, options.updatable);
|
|
@@ -70487,7 +70535,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreateTorusKnot = function (name, options, scene) {
|
|
|
var torusKnot = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
torusKnot._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreateTorusKnot(options);
|
|
|
vertexData.applyToMesh(torusKnot, options.updatable);
|
|
@@ -70682,7 +70730,7 @@ var BABYLON;
|
|
|
var rotation = options.rotation || 0;
|
|
|
var cap = (options.cap === 0) ? 0 : options.cap || BABYLON.Mesh.NO_CAP;
|
|
|
var updatable = options.updatable;
|
|
|
- var sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ var sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
var instance = options.instance || null;
|
|
|
var invertUV = options.invertUV || false;
|
|
|
return MeshBuilder._ExtrudeShapeGeneric(name, shape, path, scale, rotation, null, null, false, false, cap, false, scene, updatable ? true : false, sideOrientation, instance, invertUV, options.frontUVs || null, options.backUVs || null);
|
|
@@ -70722,7 +70770,7 @@ var BABYLON;
|
|
|
var ribbonClosePath = options.ribbonClosePath || false;
|
|
|
var cap = (options.cap === 0) ? 0 : options.cap || BABYLON.Mesh.NO_CAP;
|
|
|
var updatable = options.updatable;
|
|
|
- var sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ var sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
var instance = options.instance;
|
|
|
var invertUV = options.invertUV || false;
|
|
|
return MeshBuilder._ExtrudeShapeGeneric(name, shape, path, null, null, scaleFunction, rotationFunction, ribbonCloseArray, ribbonClosePath, cap, true, scene, updatable ? true : false, sideOrientation, instance || null, invertUV, options.frontUVs || null, options.backUVs || null);
|
|
@@ -70755,7 +70803,7 @@ var BABYLON;
|
|
|
var tessellation = options.tessellation || 64;
|
|
|
var clip = options.clip || 0;
|
|
|
var updatable = options.updatable;
|
|
|
- var sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ var sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
var cap = options.cap || BABYLON.Mesh.NO_CAP;
|
|
|
var pi2 = Math.PI * 2;
|
|
|
var paths = new Array();
|
|
@@ -70801,7 +70849,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreatePlane = function (name, options, scene) {
|
|
|
var plane = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
plane._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreatePlane(options);
|
|
|
vertexData.applyToMesh(plane, options.updatable);
|
|
@@ -70945,7 +70993,7 @@ var BABYLON;
|
|
|
* @returns the polygon mesh
|
|
|
*/
|
|
|
MeshBuilder.CreatePolygon = function (name, options, scene) {
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
var shape = options.shape;
|
|
|
var holes = options.holes || [];
|
|
|
var depth = options.depth || 0;
|
|
@@ -71021,7 +71069,7 @@ var BABYLON;
|
|
|
var cap = options.cap || BABYLON.Mesh.NO_CAP;
|
|
|
var invertUV = options.invertUV || false;
|
|
|
var updatable = options.updatable;
|
|
|
- var sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ var sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
options.arc = options.arc && (options.arc <= 0.0 || options.arc > 1.0) ? 1.0 : options.arc || 1.0;
|
|
|
// tube geometry
|
|
|
var tubePathArray = function (path, path3D, circlePaths, radius, tessellation, radiusFunction, cap, arc) {
|
|
@@ -71132,7 +71180,7 @@ var BABYLON;
|
|
|
*/
|
|
|
MeshBuilder.CreatePolyhedron = function (name, options, scene) {
|
|
|
var polyhedron = new BABYLON.Mesh(name, scene);
|
|
|
- options.sideOrientation = MeshBuilder.updateSideOrientation(options.sideOrientation);
|
|
|
+ options.sideOrientation = MeshBuilder._UpdateSideOrientation(options.sideOrientation);
|
|
|
polyhedron._originalBuilderSideOrientation = options.sideOrientation;
|
|
|
var vertexData = BABYLON.VertexData.CreatePolyhedron(options);
|
|
|
vertexData.applyToMesh(polyhedron, options.updatable);
|
|
@@ -75651,7 +75699,7 @@ var BABYLON;
|
|
|
this._canvas.width = textureSize.width;
|
|
|
this._canvas.height = textureSize.height;
|
|
|
this.releaseInternalTexture();
|
|
|
- this._texture = this._engine.createDynamicTexture(textureSize.width, textureSize.height, this._generateMipMaps, this._samplingMode);
|
|
|
+ this._texture = this._engine.createDynamicTexture(textureSize.width, textureSize.height, this._generateMipMaps, this.samplingMode);
|
|
|
};
|
|
|
/**
|
|
|
* Scales the texture
|
|
@@ -75831,7 +75879,7 @@ var BABYLON;
|
|
|
_this.wrapV = BABYLON.Texture.CLAMP_ADDRESSMODE;
|
|
|
_this._generateMipMaps = false;
|
|
|
}
|
|
|
- _this._texture = _this._engine.createDynamicTexture(_this.video.videoWidth, _this.video.videoHeight, _this._generateMipMaps, _this._samplingMode);
|
|
|
+ _this._texture = _this._engine.createDynamicTexture(_this.video.videoWidth, _this.video.videoHeight, _this._generateMipMaps, _this.samplingMode);
|
|
|
if (!_this.video.autoplay && !_this._settings.poster) {
|
|
|
var oldHandler_1 = _this.video.onplaying;
|
|
|
var error_1 = false;
|
|
@@ -75899,7 +75947,7 @@ var BABYLON;
|
|
|
};
|
|
|
_this._engine = _this.getScene().getEngine();
|
|
|
_this._generateMipMaps = generateMipMaps;
|
|
|
- _this._samplingMode = samplingMode;
|
|
|
+ _this._initialSamplingMode = samplingMode;
|
|
|
_this.autoUpdateTexture = settings.autoUpdateTexture;
|
|
|
_this.name = name || _this._getName(src);
|
|
|
_this.video = _this._getVideo(src);
|
|
@@ -117236,7 +117284,7 @@ var BABYLON;
|
|
|
if (useBilinearMode === void 0) { useBilinearMode = true; }
|
|
|
var scene = texture.getScene();
|
|
|
var engine = scene.getEngine();
|
|
|
- var rtt = new BABYLON.RenderTargetTexture('resized' + texture.name, { width: width, height: height }, scene, !texture.noMipmap, true, texture._texture.type, false, texture._samplingMode, false);
|
|
|
+ var rtt = new BABYLON.RenderTargetTexture('resized' + texture.name, { width: width, height: height }, scene, !texture.noMipmap, true, texture._texture.type, false, texture.samplingMode, false);
|
|
|
rtt.wrapU = texture.wrapU;
|
|
|
rtt.wrapV = texture.wrapV;
|
|
|
rtt.uOffset = texture.uOffset;
|