Search Unity

Question A terrain surface identically lit from both sides without duplicating it

Discussion in 'Shaders' started by enurmatbekov, Dec 13, 2022.

  1. enurmatbekov

    enurmatbekov

    Joined:
    Aug 2, 2022
    Posts:
    3
    Goal: Identically render both sides of a terrain surface without having to create a second terrain with inverted normals.
    What I tried:
    1. Tried writing a custom surface shader but I couldn't get the shadows on the terrain.
    2. I tried some default unity material(enabled rendering both faces), but it lights the surface differently on each side.
    From top it renders it nicely with shadows and all
    upload_2022-12-13_10-33-8.png

    But if I rotate it, I get this darker surface.
    upload_2022-12-13_10-34-39.png

    I want to have an identical lighting on each side. How can I achieve this?