Skip to content

Commit

Permalink
Sky box stretch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 11, 2017
1 parent fb64ae3 commit b166e17
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/Layers/xrRender/dxEnvironmentRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,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, 2.f, -1.f}, {-1.f, 1.f, -1.f}, {1.f, 2.f, -1.f}, {1.f, 1.f, -1.f}, {-1.f, 2.f, 1.f}, {-1.f, 1.f, 1.f},
{1.f, 2.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.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
};
static u16 hbox_faces[20 * 3] = {0, 2, 3, 3, 1, 0, 4, 5, 7, 7, 6, 4, 0, 1, 9, 9, 8, 0, 8, 9, 5, 5, 4, 8, 1, 3, 10, 10,
9, 1, 9, 10, 7, 7, 5, 9, 3, 2, 11, 11, 10, 3, 10, 11, 6, 6, 7, 10, 2, 0, 8, 8, 11, 2, 11, 8, 4, 4, 6, 11};
Expand Down

0 comments on commit b166e17

Please sign in to comment.