Skip to content

Commit

Permalink
5.0.0-alpha.47
Browse files Browse the repository at this point in the history
  • Loading branch information
David Catuhe committed Sep 23, 2021
1 parent a86acb2 commit 2afa09b
Show file tree
Hide file tree
Showing 83 changed files with 1,577 additions and 1,560 deletions.
2 changes: 2 additions & 0 deletions dist/preview release/babylon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41418,6 +41418,8 @@ declare module BABYLON {
protected _createTexture(): WebGLTexture;
/** @hidden */
_createHardwareTexture(): HardwareTextureWrapper;
/** @hidden */
_getUseSRGBBuffer(useSRGBBuffer: boolean, noMipmap: boolean): boolean;
protected _createTextureBase(url: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<ISceneLike>, samplingMode: number | undefined, onLoad: Nullable<() => void> | undefined, onError: Nullable<(message: string, exception: any) => void> | undefined, prepareTexture: (texture: InternalTexture, extension: string, scene: Nullable<ISceneLike>, img: HTMLImageElement | ImageBitmap | {
width: number;
height: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions dist/preview release/babylon.max.js
Original file line number Diff line number Diff line change
Expand Up @@ -53773,6 +53773,7 @@ var NativeEngine = /** @class */ (function (_super) {
texture.generateMipMaps = !noMipmap;
texture.samplingMode = samplingMode;
texture.invertY = invertY;
texture._useSRGBBuffer = this._getUseSRGBBuffer(useSRGBBuffer, noMipmap);
if (!this.doNotHandleContextLost) {
// Keep a link to the buffer only if we plan to handle context lost
texture._buffer = buffer;
Expand Down Expand Up @@ -53819,7 +53820,6 @@ var NativeEngine = /** @class */ (function (_super) {
}
var underlyingResource = texture._hardwareTexture.underlyingResource;
_this._native.loadTexture(underlyingResource, data, !noMipmap, invertY, useSRGBBuffer, function () {
texture._useSRGBBuffer = useSRGBBuffer && _this._caps.supportSRGBBuffers;
texture.baseWidth = _this._native.getTextureWidth(underlyingResource);
texture.baseHeight = _this._native.getTextureHeight(underlyingResource);
texture.width = texture.baseWidth;
Expand Down Expand Up @@ -56184,7 +56184,7 @@ var ThinEngine = /** @class */ (function () {
*/
// Not mixed with Version for tooling purpose.
get: function () {
return "[email protected].45";
return "[email protected].47";
},
enumerable: false,
configurable: true
Expand All @@ -56194,7 +56194,7 @@ var ThinEngine = /** @class */ (function () {
* Returns the current version of the framework
*/
get: function () {
return "5.0.0-alpha.45";
return "5.0.0-alpha.47";
},
enumerable: false,
configurable: true
Expand Down Expand Up @@ -58744,6 +58744,11 @@ var ThinEngine = /** @class */ (function () {
ThinEngine.prototype._createHardwareTexture = function () {
return new _WebGL_webGLHardwareTexture__WEBPACK_IMPORTED_MODULE_17__["WebGLHardwareTexture"](this._createTexture(), this._gl);
};
/** @hidden */
ThinEngine.prototype._getUseSRGBBuffer = function (useSRGBBuffer, noMipmap) {
// Generating mipmaps for sRGB textures is not supported in WebGL1 so we must disable the support if mipmaps is enabled
return useSRGBBuffer && this._caps.supportSRGBBuffers && (this.webGLVersion > 1 || this.isWebGPU || noMipmap);
};
ThinEngine.prototype._createTextureBase = function (url, noMipmap, invertY, scene, samplingMode, onLoad, onError, prepareTexture, prepareTextureProcessFunction, buffer, fallback, format, forcedExtension, mimeType, loaderOptions, useSRGBBuffer) {
var _this = this;
if (samplingMode === void 0) { samplingMode = _constants__WEBPACK_IMPORTED_MODULE_8__["Constants"].TEXTURE_TRILINEAR_SAMPLINGMODE; }
Expand Down Expand Up @@ -58788,7 +58793,7 @@ var ThinEngine = /** @class */ (function () {
texture.generateMipMaps = !noMipmap;
texture.samplingMode = samplingMode;
texture.invertY = invertY;
texture._useSRGBBuffer = !!useSRGBBuffer && this._caps.supportSRGBBuffers && (this.webGLVersion > 1 || this.isWebGPU || noMipmap); // it seems generating mipmaps for sRGB textures is not supported in WebGL1 so we must disable the support if mipmaps is enabled
texture._useSRGBBuffer = this._getUseSRGBBuffer(!!useSRGBBuffer, noMipmap);
if (!this._doNotHandleContextLost) {
// Keep a link to the buffer only if we plan to handle context lost
texture._buffer = buffer;
Expand Down Expand Up @@ -114150,7 +114155,7 @@ var BaseTexture = /** @class */ (function (_super) {
if (!engine) {
return null;
}
var correctedUseSRGBBuffer = !!useSRGBBuffer && engine._caps.supportSRGBBuffers && (engine.webGLVersion > 1 || engine.isWebGPU || noMipmap);
var correctedUseSRGBBuffer = engine._getUseSRGBBuffer(!!useSRGBBuffer, noMipmap);
var texturesCache = engine.getLoadedTexturesCache();
for (var index = 0; index < texturesCache.length; index++) {
var texturesCacheEntry = texturesCache[index];
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.max.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/preview release/babylon.module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42901,6 +42901,8 @@ declare module "babylonjs/Engines/thinEngine" {
protected _createTexture(): WebGLTexture;
/** @hidden */
_createHardwareTexture(): HardwareTextureWrapper;
/** @hidden */
_getUseSRGBBuffer(useSRGBBuffer: boolean, noMipmap: boolean): boolean;
protected _createTextureBase(url: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<ISceneLike>, samplingMode: number | undefined, onLoad: Nullable<() => void> | undefined, onError: Nullable<(message: string, exception: any) => void> | undefined, prepareTexture: (texture: InternalTexture, extension: string, scene: Nullable<ISceneLike>, img: HTMLImageElement | ImageBitmap | {
width: number;
height: number;
Expand Down Expand Up @@ -135261,6 +135263,8 @@ declare module BABYLON {
protected _createTexture(): WebGLTexture;
/** @hidden */
_createHardwareTexture(): HardwareTextureWrapper;
/** @hidden */
_getUseSRGBBuffer(useSRGBBuffer: boolean, noMipmap: boolean): boolean;
protected _createTextureBase(url: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<ISceneLike>, samplingMode: number | undefined, onLoad: Nullable<() => void> | undefined, onError: Nullable<(message: string, exception: any) => void> | undefined, prepareTexture: (texture: InternalTexture, extension: string, scene: Nullable<ISceneLike>, img: HTMLImageElement | ImageBitmap | {
width: number;
height: number;
Expand Down
2 changes: 2 additions & 0 deletions dist/preview release/documentation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41418,6 +41418,8 @@ declare module BABYLON {
protected _createTexture(): WebGLTexture;
/** @hidden */
_createHardwareTexture(): HardwareTextureWrapper;
/** @hidden */
_getUseSRGBBuffer(useSRGBBuffer: boolean, noMipmap: boolean): boolean;
protected _createTextureBase(url: Nullable<string>, noMipmap: boolean, invertY: boolean, scene: Nullable<ISceneLike>, samplingMode: number | undefined, onLoad: Nullable<() => void> | undefined, onError: Nullable<(message: string, exception: any) => void> | undefined, prepareTexture: (texture: InternalTexture, extension: string, scene: Nullable<ISceneLike>, img: HTMLImageElement | ImageBitmap | {
width: number;
height: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/glTF2Interface/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "babylonjs-gltf2interface",
"description": "A typescript declaration of babylon's gltf2 inteface.",
"version": "5.0.0-alpha.45",
"version": "5.0.0-alpha.47",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand Down
6 changes: 3 additions & 3 deletions dist/preview release/gui/babylon.gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ ({

/***/ "../../node_modules/tslib/tslib.es6.js":
/*!************************************************************************************!*\
!*** C:/Users/raweber/Documents/GitHub/Babylon.js/node_modules/tslib/tslib.es6.js ***!
\************************************************************************************/
/*!***********************************************************!*\
!*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
\***********************************************************/
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

Expand Down
4 changes: 2 additions & 2 deletions dist/preview release/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"name": "babylonjs-gui",
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
"version": "5.0.0-alpha.45",
"version": "5.0.0-alpha.47",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand All @@ -28,7 +28,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"babylonjs": "5.0.0-alpha.45"
"babylonjs": "5.0.0-alpha.47"
},
"engines": {
"node": "*"
Expand Down
Loading

0 comments on commit 2afa09b

Please sign in to comment.