浏览代码

Small cleanup in lighteditor.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
9687b9e9
共有 1 个文件被更改,包括 2 次插入14 次删除
  1. 16
      ScriptableRenderPipeline/LightweightPipeline/Editor/LightweightLightEditor.cs

16
ScriptableRenderPipeline/LightweightPipeline/Editor/LightweightLightEditor.cs


public readonly GUIContent[] LightmapBakeTypeTitles = { new GUIContent("Realtime"), new GUIContent("Mixed"), new GUIContent("Baked") };
public readonly int[] LightmapBakeTypeValues = { (int)LightmapBakeType.Realtime, (int)LightmapBakeType.Mixed, (int)LightmapBakeType.Baked };
}
class AdditionalStyles
{
static AdditionalStyles s_AdditionalStyles;
// Should match same colors in GizmoDrawers.cpp!
internal static Color kGizmoLight = new Color(254 / 255f, 253 / 255f, 136 / 255f, 128 / 255f);
internal static Color kGizmoDisabledLight = new Color(135 / 255f, 116 / 255f, 50 / 255f, 128 / 255f);
private bool TypeIsSame { get { return !typeProp.hasMultipleDifferentValues; } }
private bool ShadowTypeIsSame { get { return !shadowsTypeProp.hasMultipleDifferentValues; } }

}
}
private bool IsShadowEnabled { get { return shadowsTypeProp.intValue != 0; } }
private bool RealtimeShadowsWarningValue

if (s_Styles == null)
s_Styles = new Styles();
if (s_AdditionalStyles == null)
s_AdditionalStyles = new AdditionalStyles();
serializedObject.Update();
// Update AnimBool options. For properties changed they will be smoothly interpolated.

// Cookie size also requires directional light
using (var group = new EditorGUILayout.FadeGroupScope(animShowRuntimeOptions.faded * animShowDirOptions.faded))
if (group.visible) DrawCookieSize();
DrawRenderMode();
DrawCullingMask();

if (RealtimeShadowsWarningValue || BakingWarningValue)
{
EditorGUILayout.HelpBox(s_AdditionalStyles.ShadowsNotSupportedWarning.text, MessageType.Warning);
EditorGUILayout.HelpBox(s_Styles.ShadowsNotSupportedWarning.text, MessageType.Warning);
}
EditorGUILayout.Space();

正在加载...
取消
保存