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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

New Standard Terrain Shader Questions

Discussion in 'Unity 5 Pre-order Beta' started by djweinbaum, Feb 7, 2015.

  1. djweinbaum

    djweinbaum

    Joined:
    Nov 3, 2013
    Posts:
    533
    I'm having some trouble wrapping my head around the new seemingly simple terrain shader.

    1. Where can I control specular intensity? My grass is white washing from having a low smoothness and a wickedly high intensity/color. I know I can uniformly control specular color for my whole terrain by using Nature/Terrain/Specular but that hardly seems enough.

    2. I see no evidence of ambient specular anywhere. I can make a global cubemap bright red, rebake and restart Unity and the terrain is unchanged. I made sure to set Reflection Probe setting to "Blend probes and skybox".

    Does the terrain shader require baking to work correctly? I haven't tried baking because I started one and it was taking forever. I want a simple global image based ambient diffuse and spec.
     
  2. zeroyao

    zeroyao

    Unity Technologies

    Joined:
    Mar 28, 2013
    Posts:
    169
    Hi,

    1. Nature/Terrain/Specular is for the old BlinnPhong lighting model, as previously you would do with "Nature/Terrain/Bumped Specular" shader. We'd recommend you use the Standard terrain shader where you can control the metallic/specular for each layer separately (by default we use metallic workflow. To switch to specular workflow probably you would use the set of shaders attached below, which just simply switch the Standard with StandardSpecular lighting function).

    2. Would you please file a bug to us with the problematic scene attached? Seems not a correct behavior to me, but probably can be other settings that render reflection probe ineffective.
     

    Attached Files:

  3. djweinbaum

    djweinbaum

    Joined:
    Nov 3, 2013
    Posts:
    533
    Thanks very much @zeroyao for the response. Something must have been weird about my scene/project because I made a new project and the terrain spec is working as expected. In my other project even a black specular color would not make the spec go away. I'll have to dig deeper to find out what's screwing up my spec.
     
  4. AustinRichards

    AustinRichards

    Joined:
    Apr 4, 2013
    Posts:
    321
    Check the alpha of your textures.