David Catuhe 4 gadi atpakaļ
vecāks
revīzija
56b8dd688c

+ 1 - 0
dist/preview release/babylon.d.ts

@@ -7526,6 +7526,7 @@ declare module BABYLON {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/preview release/babylon.js


+ 15 - 4
dist/preview release/babylon.max.js

@@ -73100,20 +73100,28 @@ var ReflectionBlock = /** @class */ (function (_super) {
     };
     ReflectionBlock.prototype._dumpPropertiesCode = function () {
         var codeString = _super.prototype._dumpPropertiesCode.call(this);
+        if (this.texture) {
+            codeString += this._codeVariableName + ".texture.gammaSpace = " + this.texture.gammaSpace + ");\r\n";
+        }
         codeString += this._codeVariableName + ".useSphericalHarmonics = " + this.useSphericalHarmonics + ";\r\n";
         codeString += this._codeVariableName + ".forceIrradianceInFragment = " + this.forceIrradianceInFragment + ";\r\n";
         return codeString;
     };
     ReflectionBlock.prototype.serialize = function () {
+        var _a, _b;
         var serializationObject = _super.prototype.serialize.call(this);
         serializationObject.useSphericalHarmonics = this.useSphericalHarmonics;
         serializationObject.forceIrradianceInFragment = this.forceIrradianceInFragment;
+        serializationObject.gammaSpace = (_b = (_a = this.texture) === null || _a === void 0 ? void 0 : _a.gammaSpace) !== null && _b !== void 0 ? _b : true;
         return serializationObject;
     };
     ReflectionBlock.prototype._deserialize = function (serializationObject, scene, rootUrl) {
         _super.prototype._deserialize.call(this, serializationObject, scene, rootUrl);
         this.useSphericalHarmonics = serializationObject.useSphericalHarmonics;
         this.forceIrradianceInFragment = serializationObject.forceIrradianceInFragment;
+        if (this.texture) {
+            this.texture.gammaSpace = serializationObject.gammaSpace;
+        }
     };
     Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
         Object(_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_8__["editableInPropertyPage"])("Spherical Harmonics", _nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_8__["PropertyTypeForEdition"].Boolean, "ADVANCED", { "notifiers": { "update": true } })
@@ -92005,6 +92013,7 @@ var BaseTexture = /** @class */ (function (_super) {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         _this.anisotropicFilteringLevel = BaseTexture.DEFAULT_ANISOTROPIC_FILTERING_LEVEL;
+        _this._isCube = false;
         _this._gammaSpace = true;
         /**
          * Is Z inverted in the texture (useful in a cube texture).
@@ -92143,15 +92152,17 @@ var BaseTexture = /** @class */ (function (_super) {
          */
         get: function () {
             if (!this._texture) {
-                return false;
+                return this._isCube;
             }
             return this._texture.isCube;
         },
         set: function (value) {
             if (!this._texture) {
-                return;
+                this._isCube = value;
+            }
+            else {
+                this._texture.isCube = value;
             }
-            this._texture.isCube = value;
         },
         enumerable: false,
         configurable: true
@@ -93295,7 +93306,7 @@ var CubeTexture = /** @class */ (function (_super) {
         if (!this._texture) {
             var scene = this.getScene();
             if (this._prefiltered) {
-                this._texture = this._getEngine().createPrefilteredCubeTexture(this.url, scene, 0.8, 0, this._delayedOnLoad, undefined, this._format, undefined, this._createPolynomials);
+                this._texture = this._getEngine().createPrefilteredCubeTexture(this.url, scene, 0.8, 0, this._delayedOnLoad, undefined, this._format, forcedExtension, this._createPolynomials);
             }
             else {
                 this._texture = this._getEngine().createCubeTexture(this.url, scene, this._files, this._noMipmap, this._delayedOnLoad, null, this._format, forcedExtension, false, 0, 0, null, this._loaderOptions);

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/preview release/babylon.max.js.map


+ 2 - 0
dist/preview release/babylon.module.d.ts

@@ -7604,6 +7604,7 @@ declare module "babylonjs/Materials/Textures/baseTexture" {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */
@@ -88903,6 +88904,7 @@ declare module BABYLON {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */

+ 1 - 0
dist/preview release/documentation.d.ts

@@ -7526,6 +7526,7 @@ declare module BABYLON {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */

+ 10 - 0
dist/preview release/nodeEditor/babylon.nodeEditor.d.ts

@@ -1009,6 +1009,7 @@ declare module NODEEDITOR {
     export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
         isEmbedded: boolean;
         loadAsCubeTexture: boolean;
+        textureIsPrefiltered: boolean;
     }> {
         get textureBlock(): AnyTexture;
         constructor(props: IPropertyComponentProps);
@@ -1150,6 +1151,15 @@ declare module NODEEDITOR {
     }
 }
 declare module NODEEDITOR {
+    export class PBRDisplayManager implements IDisplayManager {
+        getHeaderClass(block: BABYLON.NodeMaterialBlock): string;
+        shouldDisplayPortLabels(block: BABYLON.NodeMaterialBlock): boolean;
+        getHeaderText(block: BABYLON.NodeMaterialBlock): string;
+        getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
+        updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
+    }
+}
+declare module NODEEDITOR {
     export class DisplayLedger {
         static RegisteredControls: {
             [key: string]: any;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 7 - 7
dist/preview release/nodeEditor/babylon.nodeEditor.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 59 - 5
dist/preview release/nodeEditor/babylon.nodeEditor.max.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/preview release/nodeEditor/babylon.nodeEditor.max.js.map


+ 22 - 0
dist/preview release/nodeEditor/babylon.nodeEditor.module.d.ts

@@ -1240,6 +1240,7 @@ declare module "babylonjs-node-editor/diagram/properties/texturePropertyTabCompo
     export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
         isEmbedded: boolean;
         loadAsCubeTexture: boolean;
+        textureIsPrefiltered: boolean;
     }> {
         get textureBlock(): AnyTexture;
         constructor(props: IPropertyComponentProps);
@@ -1402,6 +1403,17 @@ declare module "babylonjs-node-editor/diagram/display/discardDisplayManager" {
         updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
     }
 }
+declare module "babylonjs-node-editor/diagram/display/pbrDisplayManager" {
+    import { IDisplayManager } from "babylonjs-node-editor/diagram/display/displayManager";
+    import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock';
+    export class PBRDisplayManager implements IDisplayManager {
+        getHeaderClass(block: NodeMaterialBlock): string;
+        shouldDisplayPortLabels(block: NodeMaterialBlock): boolean;
+        getHeaderText(block: NodeMaterialBlock): string;
+        getBackgroundColor(block: NodeMaterialBlock): string;
+        updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
+    }
+}
 declare module "babylonjs-node-editor/diagram/displayLedger" {
     export class DisplayLedger {
         static RegisteredControls: {
@@ -2933,6 +2945,7 @@ declare module NODEEDITOR {
     export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
         isEmbedded: boolean;
         loadAsCubeTexture: boolean;
+        textureIsPrefiltered: boolean;
     }> {
         get textureBlock(): AnyTexture;
         constructor(props: IPropertyComponentProps);
@@ -3074,6 +3087,15 @@ declare module NODEEDITOR {
     }
 }
 declare module NODEEDITOR {
+    export class PBRDisplayManager implements IDisplayManager {
+        getHeaderClass(block: BABYLON.NodeMaterialBlock): string;
+        shouldDisplayPortLabels(block: BABYLON.NodeMaterialBlock): boolean;
+        getHeaderText(block: BABYLON.NodeMaterialBlock): string;
+        getBackgroundColor(block: BABYLON.NodeMaterialBlock): string;
+        updatePreviewContent(block: BABYLON.NodeMaterialBlock, contentArea: HTMLDivElement): void;
+    }
+}
+declare module NODEEDITOR {
     export class DisplayLedger {
         static RegisteredControls: {
             [key: string]: any;

+ 1 - 1
dist/preview release/packagesSizeBaseLine.json

@@ -1 +1 @@
-{"thinEngineOnly":119155,"engineOnly":155595,"sceneOnly":522960,"minGridMaterial":672172,"minStandardMaterial":830765}
+{"thinEngineOnly":119155,"engineOnly":155595,"sceneOnly":522960,"minGridMaterial":672172,"minStandardMaterial":830801}

+ 2 - 0
dist/preview release/viewer/babylon.module.d.ts

@@ -7604,6 +7604,7 @@ declare module "babylonjs/Materials/Textures/baseTexture" {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */
@@ -88903,6 +88904,7 @@ declare module BABYLON {
          * The higher the better but the slower. This defaults to 4 as it seems to be the best tradeoff.
          */
         anisotropicFilteringLevel: number;
+        private _isCube;
         /**
          * Define if the texture is a cube texture or if false a 2d texture.
          */

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3 - 3
dist/preview release/viewer/babylon.viewer.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js