Skip to content

Commit 2bf932f

Browse files
committed
Rollback wrong changes
1 parent cd6c877 commit 2bf932f

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

packages/dev/core/src/PostProcesses/postProcess.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ export class PostProcess {
211211
@serialize()
212212
public adaptScaleToCurrentViewport = false;
213213

214-
public forceStencil = false;
215-
216214
private _camera: Camera;
217215
protected _scene: Scene;
218216
private _engine: Engine;
@@ -658,7 +656,7 @@ export class PostProcess {
658656
const textureOptions = {
659657
generateMipMaps: needMipMaps,
660658
generateDepthBuffer: forceDepthStencil || firstPP === this,
661-
generateStencilBuffer: (forceDepthStencil || firstPP === this || this.forceStencil || true) && this._engine.isStencilEnable,
659+
generateStencilBuffer: (forceDepthStencil || firstPP === this) && this._engine.isStencilEnable,
662660
samplingMode: this.renderTargetSamplingMode,
663661
type: this._textureType,
664662
format: this._textureFormat,

packages/dev/core/src/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class FluidRenderingDepthTextureCopy {
2626
format: Constants.TEXTUREFORMAT_R,
2727
samplingMode: Constants.TEXTURE_NEAREST_SAMPLINGMODE,
2828
generateDepthBuffer: true,
29-
generateStencilBuffer: true,
29+
generateStencilBuffer: false,
3030
samples,
3131
noColorAttachment: true,
3232
}

packages/dev/core/src/Rendering/fluidRenderer/fluidRenderingTargetRenderer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ export class FluidRenderingTargetRenderer {
716716
true,
717717
undefined
718718
);
719-
this._renderPostProcess.forceStencil = true;
720719
this._renderPostProcess.updateEffect(defines.join("\n"));
721720

722721
this._renderPostProcess.samples = this._samples;

packages/dev/core/src/Rendering/fluidRenderer/fluidRenderingTextures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class FluidRenderingTextures {
166166
format: this._textureFormat,
167167
samplingMode: Constants.TEXTURE_NEAREST_SAMPLINGMODE,
168168
generateDepthBuffer: this._generateDepthBuffer,
169-
generateStencilBuffer: true,
169+
generateStencilBuffer: false,
170170
samples: this._samples,
171171
}
172172
);

0 commit comments

Comments
 (0)