X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.cpp;fp=src%2Fworld%2FWorld.cpp;h=19219e4dd9360a85b68c69cc81b9f982fd94eb54;hb=d02daa5a4805dc3184884f3a7cd7620e5787adcb;hp=aa347e7f654d5e374b621ad1e4efe55a3419fd43;hpb=5cd73a8f2b40e59ec13aa2a6af33bc8e2a6b9a6c;p=blank.git diff --git a/src/world/World.cpp b/src/world/World.cpp index aa347e7..19219e4 100644 --- a/src/world/World.cpp +++ b/src/world/World.cpp @@ -357,10 +357,7 @@ void World::Render(Viewport &viewport) { entity_prog.SetFogDensity(fog_density); for (Entity &entity : entities) { - if (entity.HasShape()) { - entity_prog.SetM(entity.Transform(player->ChunkCoords())); - entity.Draw(); - } + entity.Render(entity.ChunkTransform(player->ChunkCoords()), entity_prog); } }