arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

Linear color space shader

Open Leiong opened this issue 8 years ago • 5 comments

Hi,Unity The ARKit plugin has two shaders for gamma color space and linear color space. Arfoundation is only available for gamma color space shaders. Unfortunately, my project uses linear space. How can I solve this problem? 36cbf8d48a421e774969f7e2f7b7d59b ee1133238da5e26e7b61c14c75cf785a

Leiong avatar Sep 18 '18 14:09 Leiong

You can override the ARCameraBackground with a custom material. The linear color space shader from the UnityARKit plugin should work.

tdmowrer avatar Sep 18 '18 17:09 tdmowrer

Hi, @tdmowrer I've sent you an email with a replication,I made some changes to this project. 98170534935fe6f185fc06bc6d1a9a3e

Leiong avatar Sep 19 '18 05:09 Leiong

You'll need to change _DisplayTransform in the YUVShaderLinear to _UnityDisplayTransform (it might help to view them side by side or diff them to see the difference between the two shaders).

tdmowrer avatar Sep 19 '18 18:09 tdmowrer

@tdmowrer that resolves it!Thank you!

Leiong avatar Sep 20 '18 01:09 Leiong

3.0.0-preview.3 now supports both linear and gamma color spaces.

tdmowrer avatar Oct 06 '19 09:10 tdmowrer