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. Dismiss Notice

Problem with "Nature/ Tree Soft Occlusion Bark" Shader

Discussion in 'Shaders' started by LMHPOLY, Sep 30, 2016.

  1. LMHPOLY

    LMHPOLY

    Joined:
    Sep 2, 2016
    Posts:
    52
    Hey, guys, I want to use my trees inside Unity Terrain Editor. I did everything that this manual says: https://docs.unity3d.com/Manual/terrain-Trees.html
    But I get strange shading problem using "Nature/ Tree Soft Occlusion Bark" Shader. One side of the tree which gets the lighting is normal and another side is almost black. Tried to change Ambient Intensity, but it didn't help. Using other shaders like "Standard Shader" gives me good results, but then I get an Error using Terrain Editor to paint trees: "The tree PineTree must use the Nature/Soft Occlusion shader. Otherwise, billboarding/lighting will not work correctly."
    Error.jpg

    Shader-Problem.jpg
    Tried to increase Direction light Intensity, but only one side which gets direct lighting was affected by it.
    Shader-Problem02.jpg

    And yes I put my tree model to “Ambient-Occlusion” folder.

    1. So is this "Nature/ Tree Soft Occlusion Bark" Shader supposed to work like this or I have missed something?
    2. Can I use other shaders on my trees without getting any errors using them in Terrain editor?
     
  2. renderbydavid

    renderbydavid

    Joined:
    May 18, 2017
    Posts:
    2
  3. SubatomicPlanets

    SubatomicPlanets

    Joined:
    Sep 9, 2023
    Posts:
    1
    Hey, this is the first time I am writing something on this website. I also have this issue and it is annoying me for days. All my trees are black on one side. It's as if they have no ambient light. I have searched for ages, but I found no solution.