From f3d7b136645bf51225b38fc9d2577599260ee498 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 26 May 2026 07:58:26 +0200 Subject: [PATCH] =?UTF-8?q?docs(render):=20Phase=20A8=20=E2=80=94=20docume?= =?UTF-8?q?nt=20portal=5Fstencil.vert=20pos.w=20omission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WB's PortalStencil.vert has a pos.w clamp for the camera-coplanar-with- portal degenerate. We exclude it per spec (matches retail intent), but the file should note the omission so future readers don't wonder. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/AcDream.App/Rendering/Shaders/portal_stencil.vert | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AcDream.App/Rendering/Shaders/portal_stencil.vert b/src/AcDream.App/Rendering/Shaders/portal_stencil.vert index bdd118f..a10eded 100644 --- a/src/AcDream.App/Rendering/Shaders/portal_stencil.vert +++ b/src/AcDream.App/Rendering/Shaders/portal_stencil.vert @@ -10,6 +10,9 @@ layout(location = 0) in vec3 aPosition; uniform mat4 uViewProjection; +// Note: no pos.w clamp — coplanar-camera degenerate is accepted per spec. +// If stencil artifacts appear when the camera straddles an exit portal plane, +// re-introduce the clamp from WB's PortalStencil.vert. void main() { gl_Position = uViewProjection * vec4(aPosition, 1.0);