Hi, here is a list of CLs that should add full SSS support for MegaLights in 5.8. I categorized the changes, since they are broken up over time, and addressed certain aspects of the implementation:
Foundational support
- CL 38780529: Initial Subsurface + two-sided foliage shading-model support (skip screen traces, reverse normal for backside lighting).
- CL 46774852:Transmission support for Subsurface & Subsurface Profile models; added r.MegaLights.Transmission + per-light flag (GBuffer path).
- CL 50481129: SSS transmission support for Substrate (Format=1).
- CL 54421623: Directional-light per-pixel transmittance support.
SSS pipeline integration (separated-diffuse path)
- CL 51775345: Separated subsurface-diffuse R16F path; MegaLights spatial passes output to it.
- CL 51977852: Store specular luminance in that R16F path to reduce error amplification.
Follow-up fixes
- CL 46930844: Fix 0-transmission making hair/two-sided foliage too dark.
- CL 47039162: Transmission ray distance + SSS light-leak fixes.
- CL 47103937: Fix transmission distance computation (ray biasing).
- CL 47111729: Fix SSS checkerboard brightness + Subsurface Profile BaseColor mismatch.
- CL 47584349: Allow two-sided lighting when light transmission disabled.
- CL 48456800: Disable far-field transmission rays.
- CL 50546711: Fix double-call of GetSubSurfaceTransmission.
Let me know if anything is missing or if you have any follow-up questions.
[Attachment Removed]