mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
c3ed915649
commit
0a1e240831
5 changed files with 27 additions and 22 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue