Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Terrain billboard grass not being affected by environment lightning

Discussion in 'Universal Render Pipeline' started by Klausbdl, Dec 17, 2023.

  1. Klausbdl


    Aug 12, 2013

    I cranked up the environment lightning just to show what I mean. See, everything is blue, but the grass is all dark. The sun is pointing up, so its a night scene. Anyone knows how to fix this? I'm using a custom terrain shader made in shader graph, btw. If I switch to a default terrain shader, even the terrain gets dark, which is not desired.
    Unity version 2022.3.12f1

    Edit: I think I found the problem. In my terrain shader, I messed around with the ambient occlusion value and when its 0, it gets dark just like the grass. So I assume I need to set the grass shader ambient occlusion to 1, but I have no idea where this shader is.
    Last edited: Dec 17, 2023