Fix WMO shadow receiving and enable shadows by default

Remove isInterior restriction from WMO shadow sampling so city
buildings (flagged as interior groups) correctly receive shadows.
Apply shadow to interior-lit surfaces. Enable shadows by default
and persist the setting across sessions.
This commit is contained in:
Kelsi 2026-02-23 08:40:16 -08:00
parent c3ed915649
commit 0a1e240831
5 changed files with 27 additions and 22 deletions

View file

@ -603,7 +603,8 @@ void Renderer::updatePerFrameUBO() {
}
}
currentFrameData.shadowParams = glm::vec4(shadowsEnabled ? 1.0f : 0.0f, 0.5f, 0.0f, 0.0f);
currentFrameData.lightSpaceMatrix = lightSpaceMatrix;
currentFrameData.shadowParams = glm::vec4(shadowsEnabled ? 1.0f : 0.0f, 0.8f, 0.0f, 0.0f);
// Player water ripple data: pack player XY into shadowParams.zw, ripple strength into fogParams.w
if (cameraController) {