Skip to content

Commit

Permalink
Fixed ref probe validation test
Browse files Browse the repository at this point in the history
added ADT.rootContainer getter
  • Loading branch information
deltakosh committed Aug 9, 2017
1 parent c20f8e4 commit a1c994a
Show file tree
Hide file tree
Showing 16 changed files with 19,218 additions and 19,182 deletions.
12,784 changes: 6,392 additions & 6,392 deletions dist/preview release/babylon.d.ts

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions dist/preview release/babylon.js

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions dist/preview release/babylon.max.js
Expand Up @@ -19996,12 +19996,20 @@ var BABYLON;
};
Texture.prototype.getReflectionTextureMatrix = function () {
var _this = this;
var scene = this.getScene();
if (this.uOffset === this._cachedUOffset &&
this.vOffset === this._cachedVOffset &&
this.uScale === this._cachedUScale &&
this.vScale === this._cachedVScale &&
this.coordinatesMode === this._cachedCoordinatesMode) {
return this._cachedTextureMatrix;
if (this.coordinatesMode === Texture.PROJECTION_MODE) {
if (this._cachedProjectionMatrixId === scene.getProjectionMatrix().updateFlag) {
return this._cachedTextureMatrix;
}
}
else {
return this._cachedTextureMatrix;
}
}
if (!this._cachedTextureMatrix) {
this._cachedTextureMatrix = BABYLON.Matrix.Zero();
Expand Down Expand Up @@ -20029,13 +20037,15 @@ var BABYLON;
this._projectionModeMatrix.m[13] = 0.5;
this._projectionModeMatrix.m[14] = 1.0;
this._projectionModeMatrix.m[15] = 1.0;
this.getScene().getProjectionMatrix().multiplyToRef(this._projectionModeMatrix, this._cachedTextureMatrix);
var projectionMatrix = scene.getProjectionMatrix();
this._cachedProjectionMatrixId = projectionMatrix.updateFlag;
projectionMatrix.multiplyToRef(this._projectionModeMatrix, this._cachedTextureMatrix);
break;
default:
BABYLON.Matrix.IdentityToRef(this._cachedTextureMatrix);
break;
}
this.getScene().markAllMaterialsAsDirty(BABYLON.Material.TextureDirtyFlag, function (mat) {
scene.markAllMaterialsAsDirty(BABYLON.Material.TextureDirtyFlag, function (mat) {
return (mat.getActiveTextures().indexOf(_this) !== -1);
});
return this._cachedTextureMatrix;
Expand Down

0 comments on commit a1c994a

Please sign in to comment.