@babylonjs/core 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Debug/debugLayer.d.ts +36 -0
- package/Debug/debugLayer.js.map +1 -1
- package/Engines/Extensions/engine.query.js +5 -1
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/Extensions/engine.transformFeedback.js +5 -1
- package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
- package/Engines/engine.d.ts +15 -242
- package/Engines/thinEngine.d.ts +1 -1
- package/Engines/thinEngine.js +7 -3
- package/Engines/thinEngine.js.map +1 -1
- package/Gizmos/axisDragGizmo.d.ts +20 -1
- package/Gizmos/axisDragGizmo.js.map +1 -1
- package/Gizmos/axisScaleGizmo.d.ts +26 -1
- package/Gizmos/axisScaleGizmo.js.map +1 -1
- package/Gizmos/boundingBoxGizmo.d.ts +71 -1
- package/Gizmos/boundingBoxGizmo.js.map +1 -1
- package/Gizmos/cameraGizmo.d.ts +15 -1
- package/Gizmos/cameraGizmo.js.map +1 -1
- package/Gizmos/gizmoManager.d.ts +8 -8
- package/Gizmos/gizmoManager.js.map +1 -1
- package/Gizmos/lightGizmo.d.ts +13 -1
- package/Gizmos/lightGizmo.js.map +1 -1
- package/Gizmos/planeDragGizmo.d.ts +20 -1
- package/Gizmos/planeDragGizmo.js.map +1 -1
- package/Gizmos/planeRotationGizmo.d.ts +22 -1
- package/Gizmos/planeRotationGizmo.js.map +1 -1
- package/Gizmos/positionGizmo.d.ts +44 -10
- package/Gizmos/positionGizmo.js.map +1 -1
- package/Gizmos/rotationGizmo.d.ts +29 -6
- package/Gizmos/rotationGizmo.js.map +1 -1
- package/Gizmos/scaleGizmo.d.ts +34 -6
- package/Gizmos/scaleGizmo.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.js +3 -0
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/index.d.ts +1 -0
- package/Materials/index.js +1 -0
- package/Materials/index.js.map +1 -1
- package/Maths/math.vector.d.ts +16 -1
- package/Maths/math.vector.js +35 -2
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/groundMesh.js +1 -1
- package/Meshes/groundMesh.js.map +1 -1
- package/Misc/assetsManager.d.ts +9 -0
- package/Misc/assetsManager.js +3 -1
- package/Misc/assetsManager.js.map +1 -1
- package/Misc/basis.js +7 -4
- package/Misc/basis.js.map +1 -1
- package/Misc/computePressure.d.ts +9 -3
- package/Misc/computePressure.js +13 -5
- package/Misc/computePressure.js.map +1 -1
- package/Physics/physicsImpostor.js +8 -2
- package/Physics/physicsImpostor.js.map +1 -1
- package/package.json +1 -1
- package/scene.js +5 -3
- package/scene.js.map +1 -1
package/Engines/thinEngine.js
CHANGED
|
@@ -409,7 +409,7 @@ var ThinEngine = /** @class */ (function () {
|
|
|
409
409
|
*/
|
|
410
410
|
// Not mixed with Version for tooling purpose.
|
|
411
411
|
get: function () {
|
|
412
|
-
return "babylonjs@5.
|
|
412
|
+
return "babylonjs@5.19.0";
|
|
413
413
|
},
|
|
414
414
|
enumerable: false,
|
|
415
415
|
configurable: true
|
|
@@ -419,7 +419,7 @@ var ThinEngine = /** @class */ (function () {
|
|
|
419
419
|
* Returns the current version of the framework
|
|
420
420
|
*/
|
|
421
421
|
get: function () {
|
|
422
|
-
return "5.
|
|
422
|
+
return "5.19.0";
|
|
423
423
|
},
|
|
424
424
|
enumerable: false,
|
|
425
425
|
configurable: true
|
|
@@ -854,6 +854,7 @@ var ThinEngine = /** @class */ (function () {
|
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
856
|
ThinEngine.prototype._initGLContext = function () {
|
|
857
|
+
var _a;
|
|
857
858
|
// Caps
|
|
858
859
|
this._caps = {
|
|
859
860
|
maxTexturesImageUnits: this._gl.getParameter(this._gl.MAX_TEXTURE_IMAGE_UNITS),
|
|
@@ -944,7 +945,7 @@ var ThinEngine = /** @class */ (function () {
|
|
|
944
945
|
if (this._webGLVersion === 1) {
|
|
945
946
|
this._gl.getQuery = this._caps.timerQuery.getQueryEXT.bind(this._caps.timerQuery);
|
|
946
947
|
}
|
|
947
|
-
this._caps.canUseTimestampForTimerQuery = this._gl.getQuery(this._caps.timerQuery.TIMESTAMP_EXT, this._caps.timerQuery.QUERY_COUNTER_BITS_EXT) > 0;
|
|
948
|
+
this._caps.canUseTimestampForTimerQuery = ((_a = this._gl.getQuery(this._caps.timerQuery.TIMESTAMP_EXT, this._caps.timerQuery.QUERY_COUNTER_BITS_EXT)) !== null && _a !== void 0 ? _a : 0) > 0;
|
|
948
949
|
}
|
|
949
950
|
this._caps.maxAnisotropy = this._caps.textureAnisotropicFilterExtension
|
|
950
951
|
? this._gl.getParameter(this._caps.textureAnisotropicFilterExtension.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
|
|
@@ -1918,6 +1919,9 @@ var ThinEngine = /** @class */ (function () {
|
|
|
1918
1919
|
*/
|
|
1919
1920
|
ThinEngine.prototype.recordVertexArrayObject = function (vertexBuffers, indexBuffer, effect, overrideVertexBuffers) {
|
|
1920
1921
|
var vao = this._gl.createVertexArray();
|
|
1922
|
+
if (!vao) {
|
|
1923
|
+
throw new Error("Unable to create VAO");
|
|
1924
|
+
}
|
|
1921
1925
|
this._vaoRecordInProgress = true;
|
|
1922
1926
|
this._gl.bindVertexArray(vao);
|
|
1923
1927
|
this._mustWipeVertexAttributes = true;
|