浏览代码

Improve SSS profile visalization

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

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


float3 M = S * (exp(-r * S) + exp(-r * S * (1.0 / 3.0))) / (8 * PI * r);
// N.b.: we multiply by the surface albedo of the actual geometry during shading.
// Apply gamma for visualization only.
return float4(pow(M, 1.0 / 3.0), 1);
// Apply gamma for visualization only. Do not apply gamma to the color (1 / S).
return float4(pow(M, 1.0 / 3.0) / S, 1);
#else
float r = (2 * length(input.texcoord - 0.5)) * _MaxRadius * SSS_BASIC_DISTANCE_SCALE;
float3 var1 = _StdDev1.rgb * _StdDev1.rgb;

正在加载...
取消
保存