|
@@ -21374,11 +21374,7 @@ var BABYLON;
|
|
|
* exceeding the number allowed of the materials.
|
|
|
*/
|
|
|
_this.renderPriority = 0;
|
|
|
- /**
|
|
|
- * Defines wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
|
|
|
- * the current shadow generator.
|
|
|
- */
|
|
|
- _this.shadowEnabled = true;
|
|
|
+ _this._shadowEnabled = true;
|
|
|
_this._excludeWithLayerMask = 0;
|
|
|
_this._includeOnlyWithLayerMask = 0;
|
|
|
_this._lightmapMode = 0;
|
|
@@ -21567,6 +21563,28 @@ var BABYLON;
|
|
|
});
|
|
|
;
|
|
|
;
|
|
|
+ Object.defineProperty(Light.prototype, "shadowEnabled", {
|
|
|
+ /**
|
|
|
+ * Gets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
|
|
|
+ * the current shadow generator.
|
|
|
+ */
|
|
|
+ get: function () {
|
|
|
+ return this._shadowEnabled;
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * Sets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
|
|
|
+ * the current shadow generator.
|
|
|
+ */
|
|
|
+ set: function (value) {
|
|
|
+ if (this._shadowEnabled === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._shadowEnabled = value;
|
|
|
+ this._markMeshesAsLightDirty();
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Light.prototype, "includedOnlyMeshes", {
|
|
|
/**
|
|
|
* Gets the only meshes impacted by this light.
|
|
@@ -22076,8 +22094,8 @@ var BABYLON;
|
|
|
BABYLON.expandToProperty("_reorderLightsInScene")
|
|
|
], Light.prototype, "renderPriority", void 0);
|
|
|
__decorate([
|
|
|
- BABYLON.serialize()
|
|
|
- ], Light.prototype, "shadowEnabled", void 0);
|
|
|
+ BABYLON.serialize("shadowEnabled")
|
|
|
+ ], Light.prototype, "_shadowEnabled", void 0);
|
|
|
__decorate([
|
|
|
BABYLON.serialize("excludeWithLayerMask")
|
|
|
], Light.prototype, "_excludeWithLayerMask", void 0);
|
|
@@ -73734,8 +73752,9 @@ var BABYLON;
|
|
|
};
|
|
|
SSAORenderingPipeline.prototype._createSSAOCombinePostProcess = function (ratio) {
|
|
|
var _this = this;
|
|
|
- this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
|
|
|
+ this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor", "viewport"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
|
|
|
this._ssaoCombinePostProcess.onApply = function (effect) {
|
|
|
+ effect.setVector4("viewport", BABYLON.Tmp.Vector4[0].copyFromFloats(0, 0, 1.0, 1.0));
|
|
|
effect.setTextureFromPostProcess("originalColor", _this._originalColorPostProcess);
|
|
|
};
|
|
|
};
|