Switched back to 3 cascades

This commit is contained in:
Olivier Prat 2017-11-14 19:09:35 +01:00
parent d14ebdc0e1
commit 2a19247530
2 changed files with 4 additions and 2 deletions

View file

@ -21,7 +21,9 @@ const glm::mat4 LightStage::Shadow::_biasMatrix{
0.0, 0.5, 0.0, 0.0,
0.0, 0.0, 0.5, 0.0,
0.5, 0.5, 0.5, 1.0 };
const unsigned int LightStage::SUN_SHADOW_CASCADE_COUNT{ 4 };
const int LightStage::Shadow::MAP_SIZE = 1024;
const unsigned int LightStage::SUN_SHADOW_CASCADE_COUNT{ 3 };
const LightStage::Index LightStage::INVALID_INDEX { render::indexed_container::INVALID_INDEX };
LightStage::LightStage() {

View file

@ -46,7 +46,7 @@ public:
class Shadow {
public:
using UniformBufferView = gpu::BufferView;
static const int MAP_SIZE = 1024;
static const int MAP_SIZE;
class Cascade {
friend Shadow;