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

Billboard trees unaffected by scene lighting (always fully lit)

Discussion in 'General Graphics' started by mherbold, Oct 14, 2020.

  1. mherbold

    mherbold

    Joined:
    Jun 4, 2017
    Posts:
    35
    Why are my billboard trees so much brighter than the 3d trees? This is a night time scene. Here are some screenshots and settings. When using the editor lighting (game lighting turned off) the trees look fine (but much brighter than they should be since they are daytime lit instead of nighttime lit). When using my game lighting the 3d trees look great, but the billboard trees remain daytime lit. I'm using just a simple directional light (turned way down).

    With scene lighting on:

    Bright billboards.jpg

    With scene lighting off (using editor lighting):

    Scene lighting off.jpg

    Note that the billboard trees look exactly the same whether scene lighting is on or off, but the 3D trees look different. The first screenshot with the dark 3D trees is how I want it to look (night time). Below are my directional light settings.

    Directional light settings.jpg

    Scene lighting settings:

    Scene lighting settings.jpg

    Environment settings:

    Environment settings.jpg

    The trees came from here: https://assetstore.unity.com/packages/3d/vegetation/trees/dream-forest-tree-105297

    BTW the grass works perfectly. I would have thought since grass are billboards as well that they and the billboard trees would work similarly. But no, grass goes light with the scene lighting turned off, and dark with it turned on, which is correct. Billboard trees are completely unaffected by scene lighting (they are always light).
     
    WoodsmanThePeasant likes this.
  2. mherbold

    mherbold

    Joined:
    Jun 4, 2017
    Posts:
    35
    BTW this is a regular 3D Unity project (not HDRP or universal) using 2020.1.8f1.
     
  3. mark63424

    mark63424

    Joined:
    Jul 11, 2021
    Posts:
    1
    I have the same issue Basic Render Pipeline, Unity 2021.1.21f1.
     
  4. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,068
    Did you guys figure out what was causing it?
     
  5. Galvatron4000

    Galvatron4000

    Joined:
    Jul 24, 2019
    Posts:
    1
    I'm having the same issue, has anyone found a solution? I've increased my billboard start in the terrain settings, which gets rid of the lit trees, but basically means all my trees are now rendered in 3D, which is causing the VR headset to have dragging issues.

    Need to figure out how to adjust how light affects the billboards. Cheers.
     
  6. WoodsmanThePeasant

    WoodsmanThePeasant

    Joined:
    Jun 2, 2013
    Posts:
    5
    I found a solution a couple months ago to this issue by adding code to the shader which changed the layer which it was rendered. I can't find the link anymore! The error was reintroduced probably by me upgrading unity and now I cannot find the forum post anywhere that dealt with this. I did fix this in this past by changing the code in the shader though (I think I changed the URP/ComplexLit shader. I think it was only two lines. I have spent half a day searching for the original forum post about this and cannot find it. I will continue to search. If anyone finds the lines of code to add to the shader to fix billboard trees staying lit at night time we desperately need this. Sorry this wasn't more helpful. Hopefully someone else will respond with that link and I will continue to search for it.
     
    Last edited: Dec 25, 2022