You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This package simplifies making a Unity camera render to exact pixel units, for u
7
7
## Features ##
8
8
9
9
* Simple setup
10
-
*Perspective camera support
10
+
*Experimental perspective camera support
11
11
12
12
*Standard unity camera*
13
13
@@ -26,8 +26,9 @@ This package simplifies making a Unity camera render to exact pixel units, for u
26
26
## Advanced Settings ##
27
27
28
28
*__Camera Material__ - A material applied to the camera output, allows shaders to modify the image. The camera output is set as the `_MainTex` of the material.
29
-
*__Aspect Stretch__ - Apply a stretch to the output, allowing the display to be non square pixels.
30
-
*__Perspective Z__ - Only for perspective cameras. The Z distance from the camera that is rendered as pixel perfect.
29
+
*__Aspect Stretch__ - Apply a stretch to the output, allows the display to be non square pixels.
30
+
*__Down Sample__ - Scales down the render resolution, making the output blockier.
31
+
*__Perspective Z__ - Only for perspective cameras. The Z distance between the near and far clip planes, that is rendered as pixel perfect.
31
32
32
33
## Caveats ##
33
34
@@ -65,13 +66,17 @@ __AspectStretch__ : Vector2
65
66
66
67
An additional stretch applied to the camera, allows camera to render as non square pixels.
67
68
69
+
__DownSample__ : float
70
+
71
+
Scales down the render resolution, makes the output blockier. Minimum value is clamped at 1.
72
+
68
73
__PerspectiveZ__ : float
69
74
70
-
With a perspective camera, the distance from the camera that is rendered as pixel perfect.
75
+
With a perspective camera, the distance between the camera near and far planes that is rendered as pixel perfect. Value is clamped between the near and far plane values.
71
76
72
77
__RenderTexture__ : RenderTexture, read only
73
78
74
-
Access to the RenderTexture used as the camera output.
79
+
Access the RenderTexture used as the camera output.
75
80
76
81
__CameraSize__ : int[], read only
77
82
@@ -82,3 +87,7 @@ Actual pixel size of the camera, as an integer array.
82
87
__ForceRefresh()__ : void
83
88
84
89
Force the camera to recalculate rendering sizes.
90
+
91
+
__CheckCamera()__ : bool
92
+
93
+
Checks camera settings. If different from the last camera settings, will setup the camera again. Returns true if settings changed.
0 commit comments