tweak SSS values/groups

This commit is contained in:
Xonk
2025-04-16 17:21:42 -04:00
parent 0be3965fa0
commit 32a35e2225
2 changed files with 17 additions and 6 deletions

View File

@ -648,7 +648,11 @@ vec3 SubsurfaceScattering_sun(vec3 albedo, float Scattering, float Density, floa
vec3 absorbColor = exp(max(luma(albedo) - albedo*vec3(1.0,1.1,1.2), 0.0) * -20.0 * sss_absorbance_multiplier);
vec3 scatter = scatterDepth * mix(absorbColor, vec3(1.0), scatterDepth) * pow(Density, LabSSS_Curve);//* (1-min(max((1-Density)-0.9, 0.0)/(1.0-0.9),1.0));
vec3 scatter = scatterDepth * mix(absorbColor, vec3(1.0), scatterDepth);
#if SSS_TYPE == 3
scatter *= pow(Density, LabSSS_Curve);
#endif
scatter *= 1.0 + CustomPhase(lightPos)*6.0; // ~10x brighter at the peak