
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
namespace UnityEditor.Rendering.Universal
|
|
{
|
|
using CED = CoreEditorDrawer<UniversalRenderPipelineSerializedCamera>;
|
|
|
|
static partial class UniversalRenderPipelineCameraUI
|
|
{
|
|
public partial class PhysicalCamera
|
|
{
|
|
public static readonly CED.IDrawer Drawer = CED.Conditional(
|
|
(serialized, owner) => serialized.projectionMatrixMode.intValue == (int)CameraUI.ProjectionMatrixMode.PhysicalPropertiesBased,
|
|
CED.Group(
|
|
CameraUI.PhysicalCamera.Styles.cameraBody,
|
|
GroupOption.Indent,
|
|
CED.Group(
|
|
GroupOption.Indent,
|
|
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_CameraBody_Sensor,
|
|
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_CameraBody_GateFit
|
|
)
|
|
),
|
|
CED.Group(
|
|
CameraUI.PhysicalCamera.Styles.lens,
|
|
GroupOption.Indent,
|
|
CED.Group(
|
|
GroupOption.Indent,
|
|
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_Lens_FocalLength,
|
|
CameraUI.PhysicalCamera.Drawer_PhysicalCamera_Lens_Shift
|
|
)
|
|
)
|
|
);
|
|
}
|
|
}
|
|
}
|