浏览代码

fixed SSR artifacts

/main
Frédéric Vauchelles 7 年前
当前提交
1d5f8d15
共有 2 个文件被更改,包括 3 次插入6 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs
  2. 7
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ScreenSpaceTracing.hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs


public static string k_PanelScreenSpaceTracing = "Screen Space Tracing";
public static string k_PanelDecals = "Decals";
static readonly string[] k_HiZIntersectionKind = { "None", "Depth", "Cell" };
static readonly string[] k_HiZIntersectionKind = { "None", "Cell", "Depth" };
DebugUI.Widget[] m_DebugDisplayStatsItems;
DebugUI.Widget[] m_DebugMaterialItems;

7
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ScreenSpaceTracing.hlsl


float2 crossOffset // Offset to use to ensure cell boundary crossing
)
{
const float SQRT_2 = sqrt(2);
const float CellPlaneBias = 1E-2;
// Offset by 1E-3 to ensure cell boundary crossing
// Offset to ensure cell crossing
+ CellPlaneBias;
+ 0.1;
// Interpolate screen space to get next test point
float3 testHitPositionSS = positionSS + raySS * t;

正在加载...
取消
保存