浏览代码

Fix the double transmittance bug

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
11be6841
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/Resources/VolumetricLighting.compute

4
ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/Resources/VolumetricLighting.compute


EvaluateLight_Directional(context, posInput, lightData, unused, 0, L,
color, attenuation);
// Note: the 'weight' accounts for transmittance from 't0' to 't'.
// Compute transmittance from 't0' to 't'.
intensity *= TransmittanceHomogeneousMedium(extinction, tOffset);
// Compute the amount of in-scattered radiance.
sampleRadiance += intensity * color;

正在加载...
取消
保存