Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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

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

  1. enurmatbekov


    Aug 2, 2022
    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

    But if I rotate it, I get this darker surface.

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