Search Unity

Question AR: shader to receive light in AR?

Discussion in 'Shader Graph' started by Jelmer123, Nov 7, 2020.

  1. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    243
    edit: SOLVED.


    Hi I want to make a shader that processes incoming light as an additive shader.
    This image is just a plane with a standard material receiving light from the point light:
    Screenshot 2020-11-07 192928.jpg


    This is a photoshop of the effect I'm looking for. So yeah, basically "an additive shader for light".

    Screenshot 2020-11-07 192944.jpg
    How would I make this?
    Preferably it would also do occlusion and receive shadows. Like this one.
     
    Last edited: Nov 7, 2020
  2. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    243
    Oh, suddenly got it by setting a standard PBR shader graph to surface:transparent and blend: additive.:cool:
    Let's see what this looks like in AR.

    Screenshot 2020-11-07 205925.jpg