From 939a089b305a8d20c7e49437f86c449e4785dce3 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 18:37:57 +0200 Subject: [PATCH] Add comments explaining depth texture cloning and WebKit aliasing --- src/rendering/advanced-rendering.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rendering/advanced-rendering.ts b/src/rendering/advanced-rendering.ts index 1d056c0d..fcf44af2 100644 --- a/src/rendering/advanced-rendering.ts +++ b/src/rendering/advanced-rendering.ts @@ -275,6 +275,9 @@ function configureEffectComposerDepthTextureIsolation( composerInternals.createDepthTexture = function createDepthTexture() { const inputBuffer = this.inputBuffer; + // postprocessing clones this source depth texture by default. Three.js + // texture clones share a Source, which can alias the source and stable + // depth attachments during gl.blitFramebuffer on WebKit. const sourceDepthTexture = new DepthTexture(); const stableDepthTexture = new DepthTexture();