Search Unity

How to make unilluminated objects completely dark.

Discussion in 'Global Illumination' started by Nat_than, Dec 30, 2019.

  1. Nat_than

    Nat_than

    Joined:
    Dec 30, 2019
    Posts:
    1
    In my game I want objects to slowly get darker as they get further away from the player and I did this with a light but the things that aren't hit are still viable. I want them to be unseeable. How can I achieve this?
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    You could try writing a simple script that would lerp albedo color * albedo texture based on the distance from the player. Or alternatively, switch to an unlit shader after some distance threshold.