浏览代码

Add a comment

/feature-ReflectionProbeFit
GitHub 7 年前
当前提交
83d3ba23
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl

5
ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl


if (usePrecomputedSamples)
{
// Performance warning: using a texture LUT will generate a vector load,
// which increases both the VGPR pressure and the workload of the
// texture unit. A better solution here is to load from a Constant, Raw
// or Structured buffer, or perhaps even declare all the constants in an
// HLSL header to allow the compiler to inline everything.
float3 localL = LOAD_TEXTURE2D(ggxIblSamples, uint2(i, index)).xyz;
L = mul(localL, localToWorld);

正在加载...
取消
保存