Meshes that have "Self Shadow Only" enabled are still casting shadows if ray tracing is enabled with DX12.

Found in 4.23.1 CL#9631420
Reproduced in 4.22.3 CL#7053642, 4.24 CL#10053396, 4.25 Main CL#10050790

Steps to Reproduce

1. Create a First Person template project.
2. Enable "Cast Shadow" and "Self Shadow Only" for Mesh2P and FP_Gun in FirstPersonCharacter.
3. Enable "Ray tracing" and set  "Default RHI" to DirectX 12 in project settings.
4. Restart the engine.
5. Play the level.
6. Observe the shadows being cast.

Expected: There are no shadows being cast by Mesh2P and FP_Gun.

Results: There are shadows being cast by Mesh2P and FP_Gun.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-83243 in the post.

Login to Vote

ComponentRendering - Ray Tracing
Affects Versions4.
Target Fix4.26
CreatedNov 6, 2019
UpdatedFeb 28, 2020