Skip to content

Commit

Permalink
Fix skybox has black line at some camera angles (fixes #1629, thanks @…
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 8, 2025
1 parent 6e46415 commit ad6544b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Layers/xrRender/dxEnvironmentRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
// half box def
static Fvector3 hbox_verts[24] =
{
{-1.f, -1.f, -1.f}, { -1.f, -1.01f, -1.f}, // down
{ 1.f, -1.f, -1.f}, { 1.f, -1.01f, -1.f}, // down
{-1.f, -1.f, 1.f}, { -1.f, -1.01f, 1.f}, // down
{ 1.f, -1.f, 1.f}, { 1.f, -1.01f, 1.f}, // down
{-1.f, 1.f, -1.f}, { -1.f, 1.f, -1.f},
{ 1.f, 1.f, -1.f}, { 1.f, 1.f, -1.f},
{-1.f, 1.f, 1.f}, { -1.f, 1.f, 1.f},
{ 1.f, 1.f, 1.f}, { 1.f, 1.f, 1.f},
{-1.f, 0.f, -1.f}, { -1.f, -1.f, -1.f}, // half
{ 1.f, 0.f, -1.f}, { 1.f, -1.f, -1.f}, // half
{ 1.f, 0.f, 1.f}, { 1.f, -1.f, 1.f}, // half
{-1.f, 0.f, 1.f}, { -1.f, -1.f, 1.f} // half
{-1.f, -1.f, -1.f}, { -1.f, -1.01f, -1.f}, // down
{ 1.f, -1.f, -1.f}, { 1.f, -1.01f, -1.f}, // down
{-1.f, -1.f, 1.f}, { -1.f, -1.01f, 1.f}, // down
{ 1.f, -1.f, 1.f}, { 1.f, -1.01f, 1.f}, // down
{-1.f, 1.f, -1.f}, { -1.f, 1.f, -1.f},
{ 1.f, 1.f, -1.f}, { 1.f, 1.f, -1.f},
{-1.f, 1.f, 1.f}, { -1.f, 1.f, 1.f},
{ 1.f, 1.f, 1.f}, { 1.f, 1.f, 1.f},
{-1.f, -0.01f, -1.f}, { -1.f, -1.f, -1.f}, // half
{ 1.f, -0.01f, -1.f}, { 1.f, -1.f, -1.f}, // half
{ 1.f, -0.01f, 1.f}, { 1.f, -1.f, 1.f}, // half
{-1.f, -0.01f, 1.f}, { -1.f, -1.f, 1.f} // half
};

static u16 hbox_faces[20 * 3] =
Expand Down

0 comments on commit ad6544b

Please sign in to comment.