浏览代码

HDRenderPipeline: Add some comment for reflection cubemap

/feature-ReflectionProbeFit
sebastienlagarde 7 年前
当前提交
f024fc40
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl


F = Sq(-F * bsdfData.coatCoverage + 1.0);
}
// When we are rough, we tend to see outward shifting of the reflection when at the boundary of the projection volume
// Also it appear like more sharp. To avoid these artifact and at the same time get better match to reference we lerp to original unmodified reflection.
// Formula is empirical.
float4 preLD = SampleEnv(lightLoopContext, lightData.envIndex, R, preLightData.iblMipLevel);
envLighting += F * preLD.rgb;

正在加载...
取消
保存