Graphics: Implement point-light shadow-mapping
This commit is contained in:
committed by
Jérôme Leclercq
parent
6731e07b54
commit
f8238a6e6c
@@ -14,10 +14,10 @@ namespace Nz
|
||||
{
|
||||
SpotLightShadowData::SpotLightShadowData(FramePipeline& pipeline, ElementRendererRegistry& elementRegistry, const SpotLight& light) :
|
||||
m_pipeline(pipeline),
|
||||
m_light(light),
|
||||
m_viewer(Recti(0, 0, 1, 1), 0xFFFFFFFF)
|
||||
m_light(light)
|
||||
{
|
||||
UInt32 shadowMapSize = light.GetShadowMapSize();
|
||||
m_viewer.UpdateRenderMask(0xFFFFFFFF);
|
||||
m_viewer.UpdateViewport(Recti(0, 0, SafeCast<int>(shadowMapSize), SafeCast<int>(shadowMapSize)));
|
||||
|
||||
ViewerInstance& viewerInstance = m_viewer.GetViewerInstance();
|
||||
|
||||
Reference in New Issue
Block a user