浏览代码

Fixed Debug GUI and "Enable shadow" parameters.

/main
Julien Ignace 8 年前
当前提交
e851ea7f
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 6
      Assets/ScriptableRenderLoop/HDRenderPipeline/Editor/HDRenderPipelineInspector.cs
  2. 6
      Assets/ScriptableRenderLoop/HDRenderPipeline/HDRenderPipeline.cs

6
Assets/ScriptableRenderLoop/HDRenderPipeline/Editor/HDRenderPipelineInspector.cs


// Global debug parameters
EditorGUI.indentLevel++;
m_DebugOverlayRatio.floatValue = EditorGUILayout.Slider(styles.debugOverlayRatio, m_DebugOverlayRatio.floatValue, 0.1f, 1.0f);
EditorGUI.indentLevel--;
EditorGUILayout.Space();
EditorGUI.indentLevel--;
}

serializedObject.Update();
SkySettingsUI(renderContext);
SkySettingsUI(renderContext);
ShadowParametersUI(renderContext);
TextureParametersUI(renderContext);
//TilePassUI(renderContext);

6
Assets/ScriptableRenderLoop/HDRenderPipeline/HDRenderPipeline.cs


set { m_TextureSettings = value; }
}
public void ApplyDebugParameters()
{
m_ShadowSettings.enabled = globalDebugParameters.shadowDebugParameters.enableShadows;
}
public void UpdateCommonSettings()
{
var commonSettings = commonSettingsToUse;

if (m_LightLoop != null)
m_LightLoop.NewFrame();
m_Owner. ApplyDebugParameters();
m_Owner.UpdateCommonSettings();
// Set Frame constant buffer

正在加载...
取消
保存