Graphics: Add light type

This commit is contained in:
SirLynix
2022-05-12 23:09:40 +02:00
parent 5544d336ab
commit b6ab3ba1b3
6 changed files with 19 additions and 3 deletions

View File

@@ -8,8 +8,9 @@
namespace Nz
{
inline Light::Light() :
m_boundingVolume(BoundingVolumef::Null())
inline Light::Light(UInt8 lightType) :
m_boundingVolume(BoundingVolumef::Null()),
m_lightType(lightType)
{
}
@@ -18,6 +19,11 @@ namespace Nz
return m_boundingVolume;
}
inline UInt8 Light::GetLightType() const
{
return m_lightType;
}
inline void Light::UpdateBoundingVolume(const BoundingVolumef& boundingVolume)
{
m_boundingVolume = boundingVolume;