David Catuhe 7 lat temu
rodzic
commit
69fb26370b

Plik diff jest za duży
+ 6549 - 6549
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 1 - 1
dist/preview release/babylon.js


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

@@ -57948,9 +57948,6 @@ var BABYLON;
                     engine.setAlphaMode(BABYLON.Engine.ALPHA_MULTIPLY);
                     break;
             }
-            if (this.forceDepthWrite) {
-                engine.setDepthWrite(true);
-            }
             if (this._useInstancing) {
                 engine.drawArraysType(BABYLON.Material.TriangleFanDrawMode, 0, 4, this._particles.length);
             }
@@ -57970,6 +57967,9 @@ var BABYLON;
             }
             var engine = this._scene.getEngine();
             engine.setState(false);
+            if (this.forceDepthWrite) {
+                engine.setDepthWrite(true);
+            }
             var outparticles = 0;
             if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
                 outparticles = this._render(ParticleSystem.BLENDMODE_MULTIPLY) + this._render(ParticleSystem.BLENDMODE_ADD);
@@ -74741,6 +74741,9 @@ var BABYLON;
         /** @hidden */
         ProceduralTexture.prototype._shouldRender = function () {
             if (!this.isEnabled || !this.isReady() || !this._texture) {
+                if (this._texture) {
+                    this._texture.isReady = false;
+                }
                 return false;
             }
             if (this._fallbackTextureUsed) {
@@ -109998,7 +110001,7 @@ var BABYLON;
             this.setFloat("timeScale", this._time);
         };
         NoiseProceduralTexture.prototype._getDefines = function () {
-            return "#define OCTAVES " + this.octaves;
+            return "#define OCTAVES " + (this.octaves | 0);
         };
         /** Generate the current state of the procedural texture */
         NoiseProceduralTexture.prototype.render = function (useCameraPostProcess) {

+ 7 - 4
dist/preview release/babylon.no-module.max.js

@@ -57915,9 +57915,6 @@ var BABYLON;
                     engine.setAlphaMode(BABYLON.Engine.ALPHA_MULTIPLY);
                     break;
             }
-            if (this.forceDepthWrite) {
-                engine.setDepthWrite(true);
-            }
             if (this._useInstancing) {
                 engine.drawArraysType(BABYLON.Material.TriangleFanDrawMode, 0, 4, this._particles.length);
             }
@@ -57937,6 +57934,9 @@ var BABYLON;
             }
             var engine = this._scene.getEngine();
             engine.setState(false);
+            if (this.forceDepthWrite) {
+                engine.setDepthWrite(true);
+            }
             var outparticles = 0;
             if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
                 outparticles = this._render(ParticleSystem.BLENDMODE_MULTIPLY) + this._render(ParticleSystem.BLENDMODE_ADD);
@@ -74708,6 +74708,9 @@ var BABYLON;
         /** @hidden */
         ProceduralTexture.prototype._shouldRender = function () {
             if (!this.isEnabled || !this.isReady() || !this._texture) {
+                if (this._texture) {
+                    this._texture.isReady = false;
+                }
                 return false;
             }
             if (this._fallbackTextureUsed) {
@@ -109965,7 +109968,7 @@ var BABYLON;
             this.setFloat("timeScale", this._time);
         };
         NoiseProceduralTexture.prototype._getDefines = function () {
-            return "#define OCTAVES " + this.octaves;
+            return "#define OCTAVES " + (this.octaves | 0);
         };
         /** Generate the current state of the procedural texture */
         NoiseProceduralTexture.prototype.render = function (useCameraPostProcess) {

Plik diff jest za duży
+ 1 - 1
dist/preview release/babylon.worker.js


+ 7 - 4
dist/preview release/es6.js

@@ -57915,9 +57915,6 @@ var BABYLON;
                     engine.setAlphaMode(BABYLON.Engine.ALPHA_MULTIPLY);
                     break;
             }
-            if (this.forceDepthWrite) {
-                engine.setDepthWrite(true);
-            }
             if (this._useInstancing) {
                 engine.drawArraysType(BABYLON.Material.TriangleFanDrawMode, 0, 4, this._particles.length);
             }
@@ -57937,6 +57934,9 @@ var BABYLON;
             }
             var engine = this._scene.getEngine();
             engine.setState(false);
+            if (this.forceDepthWrite) {
+                engine.setDepthWrite(true);
+            }
             var outparticles = 0;
             if (this.blendMode === ParticleSystem.BLENDMODE_MULTIPLYADD) {
                 outparticles = this._render(ParticleSystem.BLENDMODE_MULTIPLY) + this._render(ParticleSystem.BLENDMODE_ADD);
@@ -74708,6 +74708,9 @@ var BABYLON;
         /** @hidden */
         ProceduralTexture.prototype._shouldRender = function () {
             if (!this.isEnabled || !this.isReady() || !this._texture) {
+                if (this._texture) {
+                    this._texture.isReady = false;
+                }
                 return false;
             }
             if (this._fallbackTextureUsed) {
@@ -109965,7 +109968,7 @@ var BABYLON;
             this.setFloat("timeScale", this._time);
         };
         NoiseProceduralTexture.prototype._getDefines = function () {
-            return "#define OCTAVES " + this.octaves;
+            return "#define OCTAVES " + (this.octaves | 0);
         };
         /** Generate the current state of the procedural texture */
         NoiseProceduralTexture.prototype.render = function (useCameraPostProcess) {

Plik diff jest za duży
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


Plik diff jest za duży
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js


+ 1 - 1
dist/preview release/what's new.md

@@ -51,7 +51,7 @@
 - GUI and Inspector are now ES-Modules ([RaananW](https://github.com/RaananW))
 - Added support for noise procedural textures. [Doc](http://doc.babylonjs.com/how_to/how_to_use_procedural_textures#noise-procedural-texture) ([Deltakosh](https://github.com/deltakosh))
 - Added new `PhotoDome` object to display 360 photos. [Demo](https://www.babylonjs-playground.com/#14KRGG#0) ([SzeyinLee](https://github.com/SzeyinLee))
-- Added Video Recorder [Documentation](http://localhost:8080/How_To/Render_Scene_on_a_Video) ([sebavan](http://www.github.com/sebavan))
+- Added Video Recorder [Documentation](https://doc.babylonjs.com/How_To/Render_Scene_on_a_Video) ([sebavan](http://www.github.com/sebavan))
 
 ## Updates
 

+ 1 - 1
src/Materials/Textures/Procedurals/babylon.noiseProceduralTexture.ts

@@ -45,7 +45,7 @@ module BABYLON {
         }
 
         protected _getDefines(): string {
-            return "#define OCTAVES " + this.octaves;
+            return "#define OCTAVES " + (this.octaves | 0);
         }
 
         /** Generate the current state of the procedural texture */

+ 3 - 0
src/Materials/Textures/Procedurals/babylon.proceduralTexture.ts

@@ -196,6 +196,9 @@
         /** @hidden */
         public _shouldRender(): boolean {
             if (!this.isEnabled || !this.isReady() || !this._texture) {
+                if (this._texture) {
+                    this._texture.isReady = false;
+                }
                 return false;
             }