mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix deferred pipeline webgl2.0 depth stencil with linear sampling (#11110)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user