Rect lights cause artifacts (nan pixels) on pixels of surfaces that are coplanar with light position.  In RectLight.ush, in RectIrradianceLambert, at line 106, c30 is -1, so rsqrt(0) causes a nan to be generated.

[Link Removed]

See the Additional Info URL for details and sample project.

Steps to Reproduce
  1. In the attached project, open the RectLightsBug
  2. Look at the cube face and move the camera direction

No white artifacts appear in the shadow on the cube

White artifacts appear in the shadow on the cube face that is facing the camera

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-214758 in the post.

Login to Vote

ComponentUE - Graphics Features
Affects Versions5.4
Target Fix5.5
Fix Commit34645744
CreatedMay 10, 2024
ResolvedJun 25, 2024
UpdatedJul 20, 2024
View Jira Issue