Search Unity

Question How to apply color correction for AR background?

Discussion in 'AR' started by novaVision, Apr 26, 2022.

  1. novaVision

    novaVision

    Joined:
    Nov 9, 2014
    Posts:
    518
    What is the way to show AR background darker then it is actually? I tried to apply custom material in ARCameraBackground component, but this doesn't work in URP.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    Post Processing?
     
  3. novaVision

    novaVision

    Joined:
    Nov 9, 2014
    Posts:
    518
    Well, this could work if I apply it only to that background layer, but... As I know there is no such option
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,060
    I'm not sure of 2 cameras work.
    1 for AR and 1 for 3d objects. Otherwise you have to manage the render process of the background partially yourself
     
  5. novaVision

    novaVision

    Joined:
    Nov 9, 2014
    Posts:
    518
    I think the easiest way would be to use ARCameraBackground.customMaterial, but, by some reason the ARCoreBackground and ARKitBackground shaders I found in Librabry are pink and seems not compatible with URP