From 540f08d5acdb30883b9304c0f0f5e0865e32c971 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Wed, 5 Jun 2024 14:24:37 +0100 Subject: [PATCH] Update to skybox shader to map it closer to the infinity --- src/scene/shader-lib/chunks/skybox/vert/skybox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene/shader-lib/chunks/skybox/vert/skybox.js b/src/scene/shader-lib/chunks/skybox/vert/skybox.js index b80df36de08..e6f1d082924 100644 --- a/src/scene/shader-lib/chunks/skybox/vert/skybox.js +++ b/src/scene/shader-lib/chunks/skybox/vert/skybox.js @@ -39,6 +39,6 @@ void main(void) { // still push pixels beyond far Z. See: // https://community.khronos.org/t/skybox-problem/61857 - gl_Position.z = gl_Position.w - 0.00001; + gl_Position.z = gl_Position.w - 1.0e-7; } `;