Files
UnrealEngineUWP/Engine/Shaders/Private/SubsurfaceProfileCommon.ush
Tiantian Xie bcb085c183 Improve the specular matching between raster and path tracer for subsurface scattering.
1. Use the decoding used by raster for the path tracer.
2. Use direct encoding from material roughness to lobe roughness instead of going through the average, which leads to underestimation (2%) and clamping (20%) of the value space.

Also clean up the code a little.

#jira UE-148244
#rb chris.kulla, sebastien.hillaire, krzysztof.narkowicz
#preflight 624f17ce6d3bb118aaf08c74

[CL 19673284 by Tiantian Xie in ue5-main branch]
2022-04-07 13:41:02 -04:00

6.8 KiB