浏览代码

Merge pull request #701 from Unity-Technologies/feature/ReflectionProbeEditor

[ReflectionProbeEditor] fixed compilation warnings
/feature-ReflectionProbeFit
GitHub 7 年前
当前提交
48da0b99
共有 2 个文件被更改,包括 6 次插入11 次删除
  1. 16
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDCubemapInspector.cs
  2. 1
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs

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


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

{
if (m_PreviewUtility == null)
InitPreview();
if (s_MipMapLow == null)
InitIcons();
m_ReflectiveMaterial.SetTexture("_Cubemap", target as Texture);
}

public override void OnPreviewGUI(Rect r, GUIStyle background)
{
if(m_ReflectiveMaterial != null)
if (m_ReflectiveMaterial != null)
{
m_ReflectiveMaterial.SetFloat("_Exposure", previewExposure);
m_ReflectiveMaterial.SetFloat("_MipLevel", mipLevelPreview);

public override void OnPreviewSettings()
{
if (s_MipMapLow == null)
InitIcons();
var mipmapCount = 0;
var cubemap = target as Cubemap;
var rt = target as RenderTexture;

{
s_MipMapLow = EditorGUIUtility.IconContent("PreTextureMipMapLow");
s_MipMapHigh = EditorGUIUtility.IconContent("PreTextureMipMapHigh");
s_ExposureHigh = EditorGUIUtility.IconContent("SceneViewLighting");
s_RGBMIcon = EditorGUIUtility.IconContent("PreMatLight1"); // TODO: proper icon for RGBM preview mode
s_PreButton = "preButton";
s_PreSlider = "preSlider";
s_PreSliderThumb = "preSliderThumb";
s_PreLabel = "preLabel";
}
}

1
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs


static void Handle_InfluenceBoxEditing(UIState s, SerializedReflectionProbe sp, Editor o)
{
var p = (ReflectionProbe)sp.so.targetObject;
var a = p.GetComponent<HDAdditionalReflectionData>();
using (new Handles.DrawingScope(GetLocalSpace(p)))
{

正在加载...
取消
保存