Engine
Engine copied to clipboard
Bug: CSM shadows do not render on vertical faces with a PBR texture applied
Describe the bug
When a CSM shadow is projected onto a vertical PBR material, the shadows do not render and instead use lightmaps. However, PBR materials that are horizontal do show CSM shadows, unless they were spawned vertically and then rotated. I am on the staging branch.
Images
LightmappedGeneric:
PBR:
PBR (horizontal)
PBR (spawned vertical, rotated):
To Reproduce
- Open the given map
- Observe bug
Issue Map
N/A, example map here: csmpbrbug.zip
Expected Behavior
CSM shadows should work correctly when at this angle
Operating System
Windows 11