Search Unity

Shader to ilet scene lights illuminate spatial mesh?

Discussion in 'AR/VR (XR) Discussion' started by John1515, Aug 2, 2020.

  1. John1515

    John1515

    Joined:
    Nov 29, 2012
    Posts:
    249
    For several AR projects I'm looking for a way to cast light (standard unity lights) onto a spatial mesh. Something similar to how shadows are casted onto spatial meshes (for example the mobileARshadow shader), but then for light and shadows. Is this possible? I'm no shader guy :p

    The effect a light would have onto the AR background would be an additive effects.

    The mobile ar shadows shader:
    https://github.com/Unity-Technologi...Examples/Common/Shaders/MobileARShadow.shader