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 committed Jun 5, 2024
1 parent cb78ea4 commit b4b44bd
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 b4b44bd

Please sign in to comment.