URP: Washed out color in gamma & lineair color space

Include the following details while filing a bug report (edit as applicable):

  • Issue category: ARDK core system?
  • Device type & OS version: iOS 16 on iPhone 12 pro
  • Host machine & OS version: Mac with Monterey
  • Issue Environment : On Device
  • Xcode version: 14.0
  • ARDK version: 2.2
  • Unity version: 2021.3.9

Bug reproduction steps:
Setup ARDK with URP pipeline.
Build the app.
Observe that the colors in video background look washed out.
This happen with both gamma and lineair color space.

Hello @Jelmer_Verhoog,

We were able to reproduce this issue and have filed a report to inform the team.
If you’d like a temporarily solution in the meantime, you can make a couple of changes to the following two shaders:

  1. Open the ARCoreFrame.shader file and add the following lines around line 150:
    color.rgb = pow(color.rgb, vec3(2.2));


  1. Open the ARKitFrame.shader file and add the following lines around line 150:
    out_color.rgb = pow(out_color.rgb, 2.2);

Altering these two shaders this way should reduce the wash-out effect in your URP builds while the team works on a more permanent solution in a future ARDK release.

1 Like