Graphics/InstancedRenderable: Replace constructor AABB with UpdateAABB method

This commit is contained in:
Jérôme Leclercq
2021-11-21 17:14:39 +01:00
parent 57d39f7eeb
commit 2a8568f2ac
6 changed files with 31 additions and 13 deletions

View File

@@ -11,7 +11,6 @@
namespace Nz
{
Sprite::Sprite(std::shared_ptr<Material> material) :
InstancedRenderable(Nz::Boxf(-1000.f, -1000.f, -1000.f, 2000.f, 2000.f, 2000.f)),
m_material(std::move(material)),
m_color(Color::White),
m_textureCoords(0.f, 0.f, 1.f, 1.f),