Reduce model count

This commit is contained in:
2024-03-07 23:02:58 -05:00
parent 4d66664aec
commit 849de93141

View File

@@ -504,7 +504,10 @@ namespace fgl::engine
model->syncBuffers( command_buffer );
int val { 64 };
constexpr int val { 16 };
constexpr float x_offset { -( static_cast< float >( val ) * 30.0f ) / 2.0f };
constexpr float y_offset { -( static_cast< float >( val ) * 20.0f ) / 2.0f };
for ( int x = 0; x < val; ++x )
{
@@ -513,8 +516,8 @@ namespace fgl::engine
auto sponza = GameObject::createGameObject();
sponza.m_model = model;
sponza.m_transform.translation = WorldCoordinate(
-900.0f + ( static_cast< float >( y ) * 30.0f ),
-900.0f + ( static_cast< float >( x ) * 20.0f ),
x_offset + ( static_cast< float >( y ) * 30.0f ),
y_offset + ( static_cast< float >( x ) * 20.0f ),
0.0f );
sponza.m_transform.scale = { 0.007f, 0.007f, 0.007f };
sponza.m_transform.rotation = Rotation( 0.0f, 0.0f, 0.0f );