Replaced renderer::draw() call with array of meshes and size of array as argument with a loop iterating through water tile array, calling draw on the individual water tiles.
This commit is contained in:
@@ -239,7 +239,11 @@ void Dolphin::onUpdate()
|
||||
waterbox.position.set(player.mesh.position.x, -260.0F, player.mesh.position.z);
|
||||
|
||||
engine->renderer->draw(island);
|
||||
engine->renderer->draw(waterDrawList, WATER_TILES_COUNT);
|
||||
|
||||
for (int i = 0; i < WATER_TILES_COUNT; i++)
|
||||
{
|
||||
engine->renderer->draw(*waterDrawList[i]);
|
||||
}
|
||||
engine->renderer->draw(skybox);
|
||||
engine->renderer->draw(waterbox);
|
||||
engine->renderer->draw(seabed);
|
||||
|
||||
Reference in New Issue
Block a user