ADD: Receiver plane depth bias

This commit is contained in:
2025-10-28 13:38:32 +09:00
parent ed9a8ff474
commit 4a47936414
3 changed files with 48 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ void SceneManager::update_scene()
const glm::vec3 eye = center - L * pullback;
const glm::mat4 V = glm::lookAtRH(eye, center, up);
const float zNear = 0.1f;
const float zNear = 0.2f;
const float zFar = pullback + cover * kShadowClipForwardFactor + kShadowClipZPadding;
const glm::mat4 P = glm::orthoRH_ZO(-cover, cover, -cover, cover, zNear, zFar);