Commit Graph

4 Commits

Author SHA1 Message Date
aurel cordonnier
dc856801cd Merge from Release-Engine-Test @ 17059716 to UE5/Main
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17029914

[CL 17060422 by aurel cordonnier in ue5-main branch]
2021-08-04 17:46:20 -04:00
chris kulla
a829964db7 Fix capsule light build failure on some console platforms
Some older compilers do not support struct methods

#rb none

[CL 15943031 by chris kulla in ue5-main branch]
2021-04-07 13:18:31 -04:00
chris kulla
21282de517 Fix minor path tracer capsule light bugs introduced during refactoring
#rb trivial

[CL 15933782 by chris kulla in ue5-main branch]
2021-04-06 15:13:18 -04:00
chris kulla
617bcd5140 Improve capsule light sampling in the path tracer
Use the logic from CapsuleLightIntegrate to sample proportional to solid angle with a spherical rectangle aligned to the visible portion of the capsule. We also build a spherical cone around the rectangle to handle grazing angle cases as well as very short capsules.

Fixed corner cases in the bounding rectangle calculation to account for required sign flip.

Improved robustness of rejection test for small radii

Refactored common code with CapsuleLightIntegrate, which now uses the same sampling method.

#rb Patrick.Kelly

[CL 15932189 by chris kulla in ue5-main branch]
2021-04-06 13:13:25 -04:00