|
|
|
|
|
|
static void Drawer_CaptureSettings(UIState s, SerializedReflectionProbe p, Editor owner) |
|
|
|
{ |
|
|
|
var renderPipelineAsset = (HDRenderPipelineAsset)GraphicsSettings.renderPipelineAsset; |
|
|
|
p.resolution.intValue = renderPipelineAsset.globalTextureSettings.reflectionCubemapSize; |
|
|
|
p.resolution.intValue = renderPipelineAsset.GetGlobalFrameSettings().lightLoopSettings.reflectionCubemapSize; |
|
|
|
EditorGUILayout.LabelField(CoreEditorUtils.GetContent("Resolution"), CoreEditorUtils.GetContent(p.resolution.intValue.ToString())); |
|
|
|
|
|
|
|
EditorGUILayout.PropertyField(p.shadowDistance); |
|
|
|
|
|
|
case ReflectionProbeMode.Custom: |
|
|
|
{ |
|
|
|
if (ButtonWithDropdownList( |
|
|
|
CoreEditorUtils.GetContent("Bake|Bakes Reflection Probe's cubemap, overwriting the existing cubemap texture asset (if any)."), k_BakeCustomOptionText, |
|
|
|
CoreEditorUtils.GetContent("Bake|Bakes Reflection Probe's cubemap, overwriting the existing cubemap texture asset (if any)."), k_BakeCustomOptionText, |
|
|
|
data => |
|
|
|
{ |
|
|
|
var mode = (int)data; |
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region Toolbar
|
|
|
|
static readonly EditMode.SceneViewEditMode[] k_Toolbar_SceneViewEditModes = |
|
|
|
static readonly EditMode.SceneViewEditMode[] k_Toolbar_SceneViewEditModes = |
|
|
|
{ |
|
|
|
EditMode.SceneViewEditMode.ReflectionProbeBox, |
|
|
|
//EditMode.SceneViewEditMode.GridBox,
|
|
|
|