Commit 0d65e345 authored by chili's avatar chili
Browse files

make test plane great (not smol) again

parent 5d647693
......@@ -16,8 +16,8 @@ public:
assert( divisions_x >= 1 );
assert( divisions_y >= 1 );
constexpr float width = 1.0f;
constexpr float height = 1.0f;
constexpr float width = 2.0f;
constexpr float height = 2.0f;
const int nVertices_x = divisions_x + 1;
const int nVertices_y = divisions_y + 1;
Dvtx::VertexBuffer vb{ std::move( layout ) };
......@@ -32,11 +32,11 @@ public:
for( int y = 0,i = 0; y < nVertices_y; y++ )
{
const float y_pos = float( y ) * divisionSize_y - 1.0f;
const float y_pos = float( y ) * divisionSize_y - side_y;
const float y_pos_tc = 1.0f - float( y ) * divisionSize_y_tc;
for( int x = 0; x < nVertices_x; x++,i++ )
{
const float x_pos = float( x ) * divisionSize_x - 1.0f;
const float x_pos = float( x ) * divisionSize_x - side_x;
const float x_pos_tc = float( x ) * divisionSize_x_tc;
vb.EmplaceBack(
dx::XMFLOAT3{ x_pos,y_pos,0.0f },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment