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:
- Open the ARCoreFrame.shader file and add the following lines around line 150:
#if !defined(UNITY_COLORSPACE_GAMMA)
color.rgb = pow(color.rgb, vec3(2.2));
#endif
- Open the ARKitFrame.shader file and add the following lines around line 150:
#if !defined(UNITY_COLORSPACE_GAMMA)
out_color.rgb = pow(out_color.rgb, 2.2);
#endif
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