Search Unity

ARCameraBackground with custom material - does it work yet?

Discussion in 'AR' started by Thomas-Mountainborn, Jun 24, 2020.

  1. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    501
    I've found several old threads of people only getting a black screen when trying to get a custom material to work for the ARCameraBackground. I'm in the same boat. Is there a sample shader we have to base ourselves on perhaps?
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
    Yes, custom background material works in AR Foundation as expected.
    Depending on your target platform, you can make a copy of ARKitBackground.shader or ARCoreBackground.shader and write your own shader based on that.
     
    todds_unity likes this.