David Catuhe 7 năm trước cách đây
mục cha
commit
4935925fb0

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4498 - 4498
Playground/babylon.d.txt


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 7202 - 7202
dist/preview release/babylon.d.ts


+ 1 - 1
src/Mesh/babylon.transformNode.ts

@@ -456,7 +456,7 @@ module BABYLON {
                 var rotation = Tmp.Quaternion[0];
                 var position = Tmp.Vector3[0];
                 var scale = Tmp.Vector3[1];
-                
+
                 if (this.parent && this.parent.computeWorldMatrix) {
                     this.parent.computeWorldMatrix(true);
                 }

+ 1 - 1
src/babylon.scene.ts

@@ -3415,7 +3415,7 @@
             }
             else {
                 // Animations
-                var deltaTime = Math.max(Scene.MinDeltaTime, Math.min(this._engine.getDeltaTime(), Scene.MaxDeltaTime));
+                var deltaTime = this.useConstantAnimationDeltaTime ? 16 : Math.max(Scene.MinDeltaTime, Math.min(this._engine.getDeltaTime(), Scene.MaxDeltaTime));
                 this._animationRatio = deltaTime * (60.0 / 1000.0);
                 this._animate();
                 this.onAfterAnimationsObservable.notifyObservers(this);

BIN
tests/validation/ReferenceImages/fresnel.png


BIN
tests/validation/ReferenceImages/procedural.png


+ 8 - 9
tests/validation/config.json

@@ -324,6 +324,14 @@
       "referenceImage": "upVector.png"
     },
     {
+      "title": "Procedural textures",
+      "renderCount": 10,
+      "scriptToRun": "/Demos/Procedural/proceduralTexture.js",
+      "functionToCall": "CreateProceduralTextureTestScene",
+      "referenceImage": "procedural.png",
+      "replace": "./land, https://cdn.rawgit.com/BabylonJS/Website/06ecbea7/Demos/Procedural/land"
+    },
+    {
       "title": "Water material (only visual check)",
       "renderCount": 10,
       "scriptToRun": "/Demos/WaterMaterial/water.js",
@@ -341,15 +349,6 @@
       "onlyVisual": true
     },
     {
-      "title": "Procedural textures (only visual check)",
-      "renderCount": 10,
-      "scriptToRun": "/Demos/Procedural/proceduralTexture.js",
-      "functionToCall": "CreateProceduralTextureTestScene",
-      "referenceImage": "procedural.png",
-      "replace": "./land, https://cdn.rawgit.com/BabylonJS/Website/06ecbea7/Demos/Procedural/land",
-      "onlyVisual": true
-    },
-    {
       "title": "Instanced Bones (only visual check)",
       "renderCount": 10,
       "scriptToRun": "/Demos/InstancedBones/bones2.js",