浏览代码

Do not use division, prefer rcp()

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

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


// Store the feedback for a unit interval.
// TODO: store a non-constant confidence value.
_VBufferLightingFeedback[uint3(posInput.positionSS, slice)] = float4(blendedRadiance / dt, 1);
_VBufferLightingFeedback[uint3(posInput.positionSS, slice)] = float4(blendedRadiance * rcp(dt), 1);
#else
float3 blendedRadiance = voxelRadiance;
#endif

正在加载...
取消
保存