|
|
|
|
|
|
CED.space, |
|
|
|
CED.Action(Drawer_Projection), |
|
|
|
CED.Action(Drawer_FieldClippingPlanes), |
|
|
|
CED.Action(Drawer_FieldNormalizedViewPort), |
|
|
|
// Partial viewport not yet supported
|
|
|
|
//CED.Action(Drawer_FieldNormalizedViewPort),
|
|
|
|
CED.Action(Drawer_DeferredOrthographicWarning), |
|
|
|
CED.Action(Drawer_FieldVR), |
|
|
|
CED.FadeGroup( |
|
|
|
(s, d, o, i) => s.isSectionExpandedTargetEyeOptions.faded, |
|
|
|
true, |
|
|
|
CED.Action(Drawer_FieldTargetEye)), |
|
|
|
// XR not yet supported
|
|
|
|
//CED.FadeGroup(
|
|
|
|
// (s, d, o, i) => s.isSectionExpandedXRSupported.faded,
|
|
|
|
// false,
|
|
|
|
// CED.FoldoutGroup(
|
|
|
|
// "XR",
|
|
|
|
// (s, p, o) => s.isSectionExpandedXR,
|
|
|
|
// true,
|
|
|
|
// CED.Action(Drawer_FieldVR),
|
|
|
|
// CED.Action(Drawer_FieldTargetEye))),
|
|
|
|
"Shader Features", |
|
|
|
"Shader Passes", |
|
|
|
(s, p, o) => s.isSectionExpandedShaderFeature, |
|
|
|
true, |
|
|
|
CED.Action(Drawer_SectionShaderFeature)), |
|
|
|
|
|
|
EditorGUILayout.PropertyField(p.renderingPath, _.GetContent("Rendering Path")); |
|
|
|
} |
|
|
|
|
|
|
|
static void Drawer_DeferredOrthographicWarning(UIState s, SerializedHDCamera p, Editor owner) |
|
|
|
{ |
|
|
|
if (p.orthographic.boolValue && !p.frameSettings.enableForwardRenderingOnly.boolValue) |
|
|
|
EditorGUILayout.HelpBox("Deferred rendering does not work with Orthographic camera, will use Forward.", |
|
|
|
MessageType.Warning, true); |
|
|
|
} |
|
|
|
|
|
|
|
static void Drawer_FieldRenderTarget(UIState s, SerializedHDCamera p, Editor owner) |
|
|
|
{ |
|
|
|
EditorGUILayout.PropertyField(p.targetTexture); |
|
|
|
|
|
|
{ |
|
|
|
if (PlayerSettings.virtualRealitySupported) |
|
|
|
{ |
|
|
|
EditorGUILayout.PropertyField(p.frameSettings.enableStereo, _.GetContent("Enable Stereo")); |
|
|
|
EditorGUILayout.PropertyField(p.stereoSeparation, _.GetContent("Stereo Separation")); |
|
|
|
EditorGUILayout.PropertyField(p.stereoConvergence, _.GetContent("Stereo Convergence")); |
|
|
|
} |
|
|
|
|
|
|
EditorGUILayout.PropertyField(p.frameSettings.enableTransparentObjects, _.GetContent("Enable Transparent Objects")); |
|
|
|
|
|
|
|
EditorGUILayout.PropertyField(p.frameSettings.enableMSAA, _.GetContent("Enable MSAA")); |
|
|
|
EditorGUILayout.PropertyField(p.frameSettings.enableStereo, _.GetContent("Enable Stereo")); |
|
|
|
} |
|
|
|
|
|
|
|
static void Drawer_SectionLightLoop(UIState s, SerializedHDCamera p, Editor owner) |
|
|
|