From 18bca3f92edbcd1f534f0004cf2abaab025d090d Mon Sep 17 00:00:00 2001 From: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:48:36 +0100 Subject: [PATCH] Update to skybox shader to map it closer to the infinity (#6664) Co-authored-by: Martin Valigursky --- 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; } `;