We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e25e9 commit 4bfd2efCopy full SHA for 4bfd2ef
1 file changed
PostProcessing/Shaders/Builtins/Uber.shader
@@ -230,6 +230,12 @@ Shader "Hidden/PostProcessing/Uber"
230
231
#if FINALPASS
232
{
233
+ #if UNITY_COLORSPACE_GAMMA
234
+ {
235
+ output = LinearToSRGB(output);
236
+ }
237
+ #endif
238
+
239
output.rgb = Dither(output.rgb, i.texcoord);
240
}
241
#else
@@ -242,12 +248,12 @@ Shader "Hidden/PostProcessing/Uber"
242
248
half luma = Luminance(saturate(output));
243
249
output.a = luma;
244
250
245
- }
246
- #endif
247
251
- #if UNITY_COLORSPACE_GAMMA
- {
- output = LinearToSRGB(output);
252
253
254
255
256
257
258
#endif
259
0 commit comments