@@ -81,7 +81,7 @@ public Camera camera
81
81
82
82
// Should we flip the last pass?
83
83
public bool flip { get ; set ; }
84
-
84
+
85
85
// -----------------------------------------------------------------------------------------
86
86
// The following is auto-populated by the post-processing stack
87
87
@@ -106,12 +106,11 @@ public Camera camera
106
106
107
107
// TODO: Change w/h name to texture w/h in order to make
108
108
// size usages explicit
109
-
110
109
#if UNITY_2017_2_OR_NEWER
111
- private RenderTextureDescriptor m_sourceDescriptor ;
112
- private RenderTextureDescriptor GetDescriptor ( int depthBufferBits = 0 , RenderTextureFormat colorFormat = RenderTextureFormat . Default , RenderTextureReadWrite readWrite = RenderTextureReadWrite . Default )
110
+ RenderTextureDescriptor m_sourceDescriptor ;
111
+ RenderTextureDescriptor GetDescriptor ( int depthBufferBits = 0 , RenderTextureFormat colorFormat = RenderTextureFormat . Default , RenderTextureReadWrite readWrite = RenderTextureReadWrite . Default )
113
112
{
114
- var modifiedDesc = new RenderTextureDescriptor ( m_sourceDescriptor . width , m_sourceDescriptor . height ,
113
+ var modifiedDesc = new RenderTextureDescriptor ( m_sourceDescriptor . width , m_sourceDescriptor . height ,
115
114
m_sourceDescriptor . colorFormat , depthBufferBits ) ;
116
115
modifiedDesc . dimension = m_sourceDescriptor . dimension ;
117
116
modifiedDesc . volumeDepth = m_sourceDescriptor . volumeDepth ;
@@ -126,14 +125,14 @@ private RenderTextureDescriptor GetDescriptor(int depthBufferBits = 0, RenderTex
126
125
127
126
if ( colorFormat != RenderTextureFormat . Default )
128
127
modifiedDesc . colorFormat = colorFormat ;
129
- if ( readWrite != RenderTextureReadWrite . Default )
130
- modifiedDesc . sRGB = ( readWrite != RenderTextureReadWrite . Linear ) ;
128
+
129
+ modifiedDesc . sRGB = readWrite != RenderTextureReadWrite . Linear ;
131
130
132
131
return modifiedDesc ;
133
132
}
134
133
#endif
135
134
136
- public void GetScreenSpaceTemporaryRT ( CommandBuffer cmd , int nameID ,
135
+ public void GetScreenSpaceTemporaryRT ( CommandBuffer cmd , int nameID ,
137
136
int depthBufferBits = 0 , RenderTextureFormat colorFormat = RenderTextureFormat . Default , RenderTextureReadWrite readWrite = RenderTextureReadWrite . Default ,
138
137
FilterMode filter = FilterMode . Bilinear , int widthOverride = 0 , int heightOverride = 0 )
139
138
{
@@ -155,11 +154,11 @@ public void GetScreenSpaceTemporaryRT(CommandBuffer cmd, int nameID,
155
154
156
155
cmd . GetTemporaryRT ( nameID , actualWidth , actualHeight , depthBufferBits , filter , colorFormat , readWrite ) ;
157
156
// TODO: How to handle MSAA for XR in older versions? Query cam?
158
- // TODO: Pass in vrUsage into the args
157
+ // TODO: Pass in vrUsage into the args
159
158
#endif
160
159
}
161
160
162
- public RenderTexture GetScreenSpaceTemporaryRT ( int depthBufferBits = 0 , RenderTextureFormat colorFormat = RenderTextureFormat . Default ,
161
+ public RenderTexture GetScreenSpaceTemporaryRT ( int depthBufferBits = 0 , RenderTextureFormat colorFormat = RenderTextureFormat . Default ,
163
162
RenderTextureReadWrite readWrite = RenderTextureReadWrite . Default , int widthOverride = 0 , int heightOverride = 0 )
164
163
{
165
164
#if UNITY_2017_2_OR_NEWER
@@ -194,7 +193,7 @@ public RenderTexture GetScreenSpaceTemporaryRT(int depthBufferBits = 0, RenderTe
194
193
195
194
// Are we currently rendering in the scene view?
196
195
public bool isSceneView { get ; internal set ; }
197
-
196
+
198
197
// Current antialiasing method set
199
198
public PostProcessLayer . Antialiasing antialiasing { get ; internal set ; }
200
199
0 commit comments