浏览代码

Adjust the intensity of the SSS profile visualization

/RenderPassXR_Sandbox
Evgenii Golubev 8 年前
当前提交
8c24c1f0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      Assets/ScriptableRenderPipeline/HDRenderPipeline/SceneSettings/Resources/DrawSssProfile.shader

5
Assets/ScriptableRenderPipeline/HDRenderPipeline/SceneSettings/Resources/DrawSssProfile.shader


float r = (2 * length(input.texcoord - 0.5)) * _MaxRadius;
float3 S = _ShapeParam.rgb;
float3 M = S * (exp(-r * S) + exp(-r * S * (1.0 / 3.0))) / (8 * PI * r);
float3 A = _MaxRadius / S;
// Apply gamma for visualization only. Do not apply gamma to the color (1 / S).
return float4(pow(M, 1.0 / 3.0) / S, 1);
// Apply gamma for visualization only. Do not apply gamma to the color.
return float4(pow(M, 1.0 / 3.0) * A, 1);
#else
float r = (2 * length(input.texcoord - 0.5)) * _MaxRadius * SSS_BASIC_DISTANCE_SCALE;
float3 var1 = _StdDev1.rgb * _StdDev1.rgb;

正在加载...
取消
保存