浏览代码

Fix acceptable IOR range for Dielectric Specular node

/main
Matt Dean 7 年前
当前提交
5ec7bc49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.shadergraph/Editor/Drawing/Controls/DielectricSpecularControl.cs

2
com.unity.shadergraph/Editor/Drawing/Controls/DielectricSpecularControl.cs


m_IORPanel = new VisualElement { name = "sliderPanel" };
m_IORPanel.Add(new Label("IOR"));
Action<float> changedIORSlider = (s) => { OnChangeIORSlider(s); };
m_IORSlider = new Slider(1, 5, changedIORSlider) { value = m_DielectricMaterial.indexOfRefraction };
m_IORSlider = new Slider(1, 2.5f, changedIORSlider) { value = m_DielectricMaterial.indexOfRefraction };
m_IORPanel.Add(m_IORSlider);
m_IORField = AddField(m_IORPanel, m_IORSlider, 1, m_DielectricMaterial);
m_IORPanel.SetEnabled(m_DielectricMaterial.type == DielectricMaterialType.Custom);

正在加载...
取消
保存