protected void LightingSettingsGUI(bool showLightmappSettings, bool showShadowBias = false)
        {
            m_Lighting.RenderSettings(showLightmappSettings, showShadowBias);

            m_ShowProbeSettings.value = EditorGUILayout.BeginFoldoutHeaderGroup(m_ShowProbeSettings.value, Styles.probeSettings);

            if (m_ShowProbeSettings.value)
            {
                EditorGUI.indentLevel += 1;
                m_Probes.OnGUI(targets, (Renderer)target, false);
                EditorGUI.indentLevel -= 1;
            }

            EditorGUILayout.EndFoldoutHeaderGroup();
        }
예제 #2
0
        protected void LightingSettingsGUI(bool showLightmappSettings)
        {
            m_Lighting.RenderSettings(showLightmappSettings);

            if (SupportedRenderingFeatures.active.rendererProbes)
            {
                m_ShowProbeSettings.value = EditorGUILayout.BeginFoldoutHeaderGroup(m_ShowProbeSettings.value, Styles.probeSettings);

                if (m_ShowProbeSettings.value)
                {
                    EditorGUI.indentLevel += 1;
                    m_Probes.OnGUI(targets, (Renderer)target, false);
                    EditorGUI.indentLevel -= 1;
                }

                EditorGUILayout.EndFoldoutHeaderGroup();
            }
        }
 protected void RenderProbeFields()
 {
     m_Probes.OnGUI(targets, (Renderer)target, false);
 }