浏览代码

Add a comment

/main
GitHub 7 年前
当前提交
8237c917
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl

6
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl


if (surfaceData.materialId != MATERIALID_LIT_ANISO)
{
// Notify the material classification system that we should not use
// the anisotropic GGX for forward rendering.
// Notify the material classification system that we should not use the anisotropic GGX for forward rendering.
// Forward rendering implies automatic material classification, so normally we don't use our material classification
// system, and set 'g_FeatureFlags' to UINT_MAX. However, since our rendering pipeline supports both forward and
// deferred rendering, 'g_FeatureFlags' is always available, so we can use it to control GGX evaluation.
g_FeatureFlags &= ~MATERIALFEATUREFLAGS_LIT_ANISO;
}

正在加载...
取消
保存