diff --git a/cocos/core/pipeline/deferred/deferred-pipeline.ts b/cocos/core/pipeline/deferred/deferred-pipeline.ts index 7b4753f735..703d597291 100644 --- a/cocos/core/pipeline/deferred/deferred-pipeline.ts +++ b/cocos/core/pipeline/deferred/deferred-pipeline.ts @@ -306,12 +306,14 @@ export class DeferredPipeline extends RenderPipeline { data.outputRenderTargets, null, )); + + data.sampler = this.globalDSManager.pointSampler; + // Listens when the attachment texture is scaled this.on(PipelineEventType.ATTACHMENT_SCALE_CAHNGED, (val: number) => { data.sampler = val < 1 ? this.globalDSManager.pointSampler : this.globalDSManager.linearSampler; this.applyFramebufferRatio(data.gbufferFrameBuffer); this.applyFramebufferRatio(data.outputFrameBuffer); }); - data.sampler = this.globalDSManager.linearSampler; } }