浏览代码

Remove a warning.

/StackLit2
Stephane Laroche 6 年前
当前提交
80c5393b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      com.unity.render-pipelines.high-definition/HDRP/Editor/Material/StackLit/StackLitUI.cs

3
com.unity.render-pipelines.high-definition/HDRP/Editor/Material/StackLit/StackLitUI.cs


var HazyGlossMaxDielectricF0UI = new UIBufferedProperty(this, k_HazyGlossMaxDielectricF0, "Maximum Dielectric Specular Color", "Cap Dielectrics To This Maximum Dielectric Specular Color", false,
_ => (IsCapDielectricUsed));
var HazyGlossMaxDielectricF0 = new Property(this, k_HazyGlossMaxDielectricF0, "Maximum Dielectric Specular Color", "Cap Dielectrics To This Maximum Dielectric Specular Color", true);
var HazyGlossMaxDielectricF0 = new Property(this, k_HazyGlossMaxDielectricF0, "Maximum Dielectric Specular Color", "Cap Dielectrics To This Maximum Dielectric Specular Color", true, _ => (false));
// ...this later property is always used by the shader when IsMetallicParametrizationUsed and IsHazyGlossParametrizationUsed, but since these are dynamic,
// we always make the base property mandatory.

Haziness,
CapHazinessWrtMetallic,
HazyGlossMaxDielectricF0UI,
HazyGlossMaxDielectricF0, // dummy, always hidden, we create it just to force the isMandatory check
HazeExtent,
AnisotropyB,
}, _ => (EnableDualSpecularLobe.BoolValue == true && IsHazyGlossParametrizationUsed) );

正在加载...
取消
保存