Add shadow mapping (wip)

This commit is contained in:
SirLynix
2022-11-07 02:16:02 +01:00
committed by Jérôme Leclercq
parent be9fba3190
commit 4a10c1f8fe
23 changed files with 333 additions and 44 deletions

View File

@@ -3,9 +3,19 @@
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/Light.hpp>
#include <Nazara/Graphics/Graphics.hpp>
#include <Nazara/Graphics/Debug.hpp>
namespace Nz
{
Light::Light(UInt8 lightType) :
m_boundingVolume(BoundingVolumef::Null()),
m_shadowMapFormat(Graphics::Instance()->GetPreferredDepthFormat()),
m_shadowMapSize(512),
m_lightType(lightType),
m_isShadowCaster(false)
{
}
Light::~Light() = default;
}