Pārlūkot izejas kodu

Fix default postprocess generation with nme

David `Deltakosh` Catuhe 5 gadi atpakaļ
vecāks
revīzija
5a1dc7ddd9

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

@@ -6847,7 +6847,7 @@ declare module BABYLON {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;

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


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


+ 5 - 2
dist/preview release/babylon.max.js

@@ -81077,12 +81077,12 @@ var NodeMaterial = /** @class */ (function (_super) {
         var vertexOutput = new _Blocks_Vertex_vertexOutputBlock__WEBPACK_IMPORTED_MODULE_14__["VertexOutputBlock"]("VertexOutput");
         vmerger.connectTo(vertexOutput);
         // Pixel
-        var scale = new _Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_16__["InputBlock"]("scale");
+        var scale = new _Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_16__["InputBlock"]("Scale");
         scale.visibleInInspector = true;
         scale.value = new _Maths_math_vector__WEBPACK_IMPORTED_MODULE_3__["Vector2"](1, 1);
         var uv0 = new _Blocks_remapBlock__WEBPACK_IMPORTED_MODULE_29__["RemapBlock"]("uv0");
         position.connectTo(uv0);
-        var uv = new _Blocks_multiplyBlock__WEBPACK_IMPORTED_MODULE_30__["MultiplyBlock"]("uv");
+        var uv = new _Blocks_multiplyBlock__WEBPACK_IMPORTED_MODULE_30__["MultiplyBlock"]("UV scale");
         uv0.connectTo(uv);
         scale.connectTo(uv);
         var currentScreen = new _Blocks_Dual_currentScreenBlock__WEBPACK_IMPORTED_MODULE_19__["CurrentScreenBlock"]("CurrentScreen");
@@ -81442,6 +81442,9 @@ var NodeMaterial = /** @class */ (function (_super) {
     NodeMaterial.ParseFromSnippetAsync = function (snippetId, scene, rootUrl, nodeMaterial) {
         var _this = this;
         if (rootUrl === void 0) { rootUrl = ""; }
+        if (snippetId === "_BLANK") {
+            return Promise.resolve(this.CreateDefault("blank", scene));
+        }
         return new Promise(function (resolve, reject) {
             var request = new _Misc_webRequest__WEBPACK_IMPORTED_MODULE_24__["WebRequest"]();
             request.addEventListener("readystatechange", function () {

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


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

@@ -6893,7 +6893,7 @@ declare module "babylonjs/Meshes/Builders/capsuleBuilder" {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;
@@ -87124,7 +87124,7 @@ declare module BABYLON {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;

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

@@ -6847,7 +6847,7 @@ declare module BABYLON {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;

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


+ 12 - 5
dist/preview release/nodeEditor/babylon.nodeEditor.max.js

@@ -68193,10 +68193,17 @@ var GraphFrame = /** @class */ (function () {
     };
     GraphFrame.prototype.dispose = function () {
         var _a;
-        this.isCollapsed = false;
-        this._nodes.forEach(function (node) {
-            node.enclosingFrameId = -1;
-        });
+        if (this.isCollapsed) {
+            while (this._nodes.length > 0) {
+                this._nodes[0].dispose();
+            }
+            this.isCollapsed = false;
+        }
+        else {
+            this._nodes.forEach(function (node) {
+                node.enclosingFrameId = -1;
+            });
+        }
         if (this._onSelectionChangedObserver) {
             this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
         }
@@ -68221,7 +68228,7 @@ var GraphFrame = /** @class */ (function () {
             height: this._height,
             color: this._color.asArray(),
             name: this.name,
-            isCollapsed: false,
+            isCollapsed: true,
             blocks: this.nodes.map(function (n) { return n.block.uniqueId; }),
             comments: this._comments
         };

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


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

@@ -6893,7 +6893,7 @@ declare module "babylonjs/Meshes/Builders/capsuleBuilder" {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;
@@ -87124,7 +87124,7 @@ declare module BABYLON {
         height: number;
         /** Radius of the capsule. */
         radius: number;
-        /** Height or Length of the capsule. */
+        /** Number of sub segments on the cap sections of the capsule running parallel to orientation. */
         capSubdivisions: number;
         /** Overwrite for the top radius. */
         radiusTop?: number;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
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


+ 2 - 2
src/Materials/Node/nodeMaterial.ts

@@ -1446,14 +1446,14 @@ export class NodeMaterial extends PushMaterial {
         vmerger.connectTo(vertexOutput);
 
         // Pixel
-        const scale = new InputBlock("scale");
+        const scale = new InputBlock("Scale");
         scale.visibleInInspector = true;
         scale.value = new Vector2(1, 1);
 
         const uv0 = new RemapBlock("uv0");
         position.connectTo(uv0);
 
-        const uv = new MultiplyBlock("uv");
+        const uv = new MultiplyBlock("UV scale");
         uv0.connectTo(uv);
         scale.connectTo(uv);