Skip to content

Commit

Permalink
Update to skybox shader to map it closer to the infinity (#6664)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Jun 5, 2024
1 parent f5f07b4 commit 18bca3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/shader-lib/chunks/skybox/vert/skybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
`;

0 comments on commit 18bca3f

Please sign in to comment.