A game about forced loneliness, made by TACStudios
1using System.Linq;
2using UnityEngine;
3
4namespace UnityEditor.Rendering
5{
6 public static partial class CameraUI
7 {
8 public static partial class PhysicalCamera
9 {
10 /// <summary>
11 /// Styles
12 /// </summary>
13 public static class Styles
14 {
15 // Camera Body
16 /// <summary>
17 /// Camera Body content
18 /// </summary>
19 public static readonly GUIContent cameraBody = EditorGUIUtility.TrTextContent("Camera Body");
20
21 /// <summary>
22 /// Sensor type content
23 /// </summary>
24 public static readonly GUIContent sensorType = EditorGUIUtility.TrTextContent("Sensor Type", "Common sensor sizes. Choose an item to set Sensor Size, or edit Sensor Size for your custom settings.");
25
26 /// <summary>
27 /// Aperture format names
28 /// </summary>
29 public static readonly string[] apertureFormatNames = CameraEditor.Settings.ApertureFormatNames.ToArray();
30
31 /// <summary>
32 /// Aperture format values
33 /// </summary>
34 public static readonly Vector2[] apertureFormatValues = CameraEditor.Settings.ApertureFormatValues.ToArray();
35
36 /// <summary>
37 /// Custom preset index
38 /// </summary>
39 public static readonly int customPresetIndex = apertureFormatNames.Length - 1;
40
41 /// <summary>
42 /// Sensor size
43 /// </summary>
44 public static readonly GUIContent sensorSize = EditorGUIUtility.TrTextContent("Sensor Size", "The size of the camera sensor in millimeters.");
45
46 /// <summary>
47 /// Gate Fit
48 /// </summary>
49 public static readonly GUIContent gateFit = EditorGUIUtility.TrTextContent("Gate Fit", "Determines how the rendered area (resolution gate) fits into the sensor area (film gate).");
50
51 // Lens
52 /// <summary>
53 /// Lens content
54 /// </summary>
55 public static readonly GUIContent lens = EditorGUIUtility.TrTextContent("Lens");
56
57 /// <summary>
58 /// Focal Length content
59 /// </summary>
60 public static readonly GUIContent focalLength = EditorGUIUtility.TrTextContent("Focal Length", "The simulated distance between the lens and the sensor of the physical camera. Larger values give a narrower field of view.");
61
62 /// <summary>
63 /// Shift content
64 /// </summary>
65 public static readonly GUIContent shift = EditorGUIUtility.TrTextContent("Shift", "Offset from the camera sensor. Use these properties to simulate a shift lens. Measured as a multiple of the sensor size.");
66
67 /// <summary>
68 /// ISO content
69 /// </summary>
70 public static readonly GUIContent ISO = EditorGUIUtility.TrTextContent("ISO", "Sets the light sensitivity of the Camera sensor. This property affects Exposure if you set its Mode to Use Physical Camera.");
71
72 /// <summary>
73 /// Shutter Speed content
74 /// </summary>
75 public static readonly GUIContent shutterSpeed = EditorGUIUtility.TrTextContent("Shutter Speed", "The amount of time the Camera sensor is capturing light.");
76
77 /// <summary>
78 /// Aperture content
79 /// </summary>
80 public static readonly GUIContent aperture = EditorGUIUtility.TrTextContent("Aperture", "The f-stop (f-number) of the lens. Lower values give a wider lens aperture.");
81
82 /// <summary>
83 /// Focus Distance content
84 /// </summary>
85 public static readonly GUIContent focusDistance = EditorGUIUtility.TrTextContent("Focus Distance", "The distance from the camera where objects appear sharp when Depth Of Field is enabled.");
86
87 // Aperture Shape
88
89 /// <summary>
90 /// Aperture Shape content
91 /// </summary>
92 public static readonly GUIContent apertureShape = EditorGUIUtility.TrTextContent("Aperture Shape", "Common sensor sizes. Choose an item to set Sensor Size, or edit Sensor Size for your custom settings.");
93
94 /// <summary>
95 /// Blade Count content
96 /// </summary>
97 public static readonly GUIContent bladeCount = EditorGUIUtility.TrTextContent("Blade Count", "The number of blades in the lens aperture. Higher values give a rounder aperture shape.");
98
99 /// <summary>
100 /// Curvature content
101 /// </summary>
102 public static readonly GUIContent curvature = EditorGUIUtility.TrTextContent("Curvature", "Controls the curvature of the lens aperture blades. The minimum value results in fully-curved, perfectly-circular bokeh, and the maximum value results in visible aperture blades.");
103
104 /// <summary>
105 /// Barrel Clipping content
106 /// </summary>
107 public static readonly GUIContent barrelClipping = EditorGUIUtility.TrTextContent("Barrel Clipping", "Controls the self-occlusion of the lens, creating a cat's eye effect.");
108
109 /// <summary>
110 /// Anamorphism content
111 /// </summary>
112 public static readonly GUIContent anamorphism = EditorGUIUtility.TrTextContent("Anamorphism", "Use the slider to stretch the sensor to simulate an anamorphic look.");
113 }
114 }
115 }
116}