Reduce model count
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user