Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: CSM shadows do not render on vertical faces with a PBR texture applied

Open Equalizer5118 opened this issue 1 year ago • 6 comments

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: 20230930113604_1

PBR: 20230930113609_1

PBR (horizontal) 20230930114333_1

PBR (spawned vertical, rotated): 20230930113619_1

To Reproduce

  1. Open the given map
  2. 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

Equalizer5118 avatar Sep 30 '23 18:09 Equalizer5118