|
@@ -12069,7 +12069,7 @@ var BABYLON;
|
|
|
* Returns the current version of the framework
|
|
|
*/
|
|
|
get: function () {
|
|
|
- return "3.3.0-alpha.2";
|
|
|
+ return "3.3.0-alpha.3";
|
|
|
},
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
@@ -18470,6 +18470,11 @@ var BABYLON;
|
|
|
_this.billboardMode = TransformNode.BILLBOARDMODE_NONE;
|
|
|
_this.scalingDeterminant = 1;
|
|
|
_this.infiniteDistance = false;
|
|
|
+ /**
|
|
|
+ * Gets or sets a boolean indicating that non uniform scaling (when at least one component is different from others) should be ignored.
|
|
|
+ * By default the system will update normals to compensate
|
|
|
+ */
|
|
|
+ _this.ignoreNonUniformScaling = false;
|
|
|
_this.position = BABYLON.Vector3.Zero();
|
|
|
_this._localWorld = BABYLON.Matrix.Zero();
|
|
|
_this._worldMatrix = BABYLON.Matrix.Zero();
|
|
@@ -18981,7 +18986,7 @@ var BABYLON;
|
|
|
if (this._nonUniformScaling === value) {
|
|
|
return false;
|
|
|
}
|
|
|
- this._nonUniformScaling = true;
|
|
|
+ this._nonUniformScaling = value;
|
|
|
return true;
|
|
|
};
|
|
|
/**
|
|
@@ -19236,14 +19241,16 @@ var BABYLON;
|
|
|
this._worldMatrix.multiplyToRef(this._pivotMatrixInverse, this._worldMatrix);
|
|
|
}
|
|
|
// Normal matrix
|
|
|
- if (this.scaling.isNonUniform) {
|
|
|
- this._updateNonUniformScalingState(true);
|
|
|
- }
|
|
|
- else if (this.parent && this.parent._nonUniformScaling) {
|
|
|
- this._updateNonUniformScalingState(this.parent._nonUniformScaling);
|
|
|
- }
|
|
|
- else {
|
|
|
- this._updateNonUniformScalingState(false);
|
|
|
+ if (!this.ignoreNonUniformScaling) {
|
|
|
+ if (this.scaling.isNonUniform) {
|
|
|
+ this._updateNonUniformScalingState(true);
|
|
|
+ }
|
|
|
+ else if (this.parent && this.parent._nonUniformScaling) {
|
|
|
+ this._updateNonUniformScalingState(this.parent._nonUniformScaling);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this._updateNonUniformScalingState(false);
|
|
|
+ }
|
|
|
}
|
|
|
this._afterComputeWorldMatrix();
|
|
|
// Absolute position
|
|
@@ -19387,6 +19394,9 @@ var BABYLON;
|
|
|
BABYLON.serialize()
|
|
|
], TransformNode.prototype, "infiniteDistance", void 0);
|
|
|
__decorate([
|
|
|
+ BABYLON.serialize()
|
|
|
+ ], TransformNode.prototype, "ignoreNonUniformScaling", void 0);
|
|
|
+ __decorate([
|
|
|
BABYLON.serializeAsVector3()
|
|
|
], TransformNode.prototype, "position", void 0);
|
|
|
return TransformNode;
|
|
@@ -45103,6 +45113,14 @@ var BABYLON;
|
|
|
},
|
|
|
/**
|
|
|
* Sets the transparency mode of the material.
|
|
|
+ *
|
|
|
+ * | Value | Type | Description |
|
|
|
+ * | ----- | ----------------------------------- | ----------- |
|
|
|
+ * | 0 | OPAQUE | |
|
|
|
+ * | 1 | ALPHATEST | |
|
|
|
+ * | 2 | ALPHABLEND | |
|
|
|
+ * | 3 | ALPHATESTANDBLEND | |
|
|
|
+ *
|
|
|
*/
|
|
|
set: function (value) {
|
|
|
if (this._transparencyMode === value) {
|