perf(shadow): increase depth map resolution and refine PCF sampling

This commit is contained in:
2026-06-17 15:23:38 +08:00
parent 662f10047a
commit 31bf337f6f
3 changed files with 40 additions and 16 deletions

View File

@@ -39,8 +39,7 @@ private:
static constexpr float NEAR_PLANE = 0.1f;
static constexpr float SUN_SIZE = 50.0f;
static constexpr float MOON_SIZE = 50.0f;
static constexpr float DEPTH_MAP_WIDTH = 2048.0f;
static constexpr float DEPTH_MAP_HEIGHT = 2048.0f;
static constexpr float DEPTH_MAP_SIZE = 4096.0f;
float m_ambient_strength = 0.1f;
const Camera& m_camera;