浏览代码

[ReflectionProbeEditor] Small fixes

/feature-ReflectionProbeFit
Frédéric Vauchelles 7 年前
当前提交
b9ccb852
共有 2 个文件被更改,包括 9 次插入10 次删除
  1. 15
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDCubemapInspector.cs
  2. 4
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Drawers.cs

15
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDCubemapInspector.cs


Rotating = 2
}
static GUIContent s_MipMapLow, s_MipMapHigh, s_CurveKeyframeSelected, s_CurveKeyframeSemiSelectedOverlay, s_RGBMIcon;
static GUIContent s_MipMapLow, s_MipMapHigh, s_ExposureHigh, s_ExposureLow, s_RGBMIcon;
static GUIStyle s_PreButton, s_PreSlider, s_PreSliderThumb, s_PreLabel;
static Mesh s_SphereMesh;

{
GUI.enabled = true;
GUILayout.Box(s_ExposureLow, s_PreLabel, GUILayout.MaxWidth(20));
GUI.changed = false;
previewExposure = GUILayout.HorizontalSlider(previewExposure, -10f, 10f, GUILayout.MaxWidth(80));
GUILayout.Space(5);
GUILayout.Space(5);
GUILayout.Box(s_CurveKeyframeSemiSelectedOverlay, s_PreLabel, GUILayout.MaxWidth(20));
GUI.changed = false;
previewExposure = GUILayout.HorizontalSlider(previewExposure, -10f, 10f, GUILayout.MaxWidth(80));
GUILayout.Box(s_CurveKeyframeSelected, s_PreLabel, GUILayout.MaxWidth(20));
}
void InitPreview()

{
s_MipMapLow = EditorGUIUtility.IconContent("PreTextureMipMapLow");
s_MipMapHigh = EditorGUIUtility.IconContent("PreTextureMipMapHigh");
s_CurveKeyframeSelected = EditorGUIUtility.IconContent("d_curvekeyframeselected");
s_CurveKeyframeSemiSelectedOverlay = EditorGUIUtility.IconContent("d_curvekeyframesemiselectedoverlay");
s_ExposureHigh = EditorGUIUtility.IconContent("SceneViewLighting");
s_ExposureLow = EditorGUIUtility.IconContent("SceneViewLighting");
s_RGBMIcon = EditorGUIUtility.IconContent("PreMatLight1"); // TODO: proper icon for RGBM preview mode
s_PreButton = "preButton";
s_PreSlider = "preSlider";

4
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Drawers.cs


),
CED.space,
CED.Action(Drawer_InfluenceShape),
CED.Action(Drawer_IntensityMultiplier),
//CED.Action(Drawer_IntensityMultiplier),
CED.space,
CED.Action(Drawer_Toolbar),
CED.space

case ReflectionInfluenceShape.Box:
{
var size = p.boxSize.vector3Value;
var v = Mathf.Max(size.x, Mathf.Max(size.y, size.z));
var v = Mathf.Min(size.x, Mathf.Min(size.y, size.z));
return v * 0.5f;
}
}

正在加载...
取消
保存