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

Resolved How can I create a shader like this?

Discussion in 'Shaders' started by TimmyTGames, Sep 15, 2021.

  1. TimmyTGames

    TimmyTGames

    Joined:
    Feb 8, 2018
    Posts:
    30
    Hello, I was wondering how to make a shader like this. This is for basically darkness upload_2021-9-15_11-35-20.png
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi,
    I am not sure what exactly you are trying to recreate with a shader. I can't say for sure what I see here. Perhaps you want some overlay shadow shader, or what? Can you be more specific and perhaps recreate a clear example.
     
  3. TimmyTGames

    TimmyTGames

    Joined:
    Feb 8, 2018
    Posts:
    30
    I do want a shadow shader like this, I cannot recreate it as I do not know how to do it. This shader should be able to tell where other lights are, and calculate how dark an area should be based on if there are lights in it, the lights intensity, etc
     
  4. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Can't you use baked lightmaps if it's for environment lighting?
     
  5. TimmyTGames

    TimmyTGames

    Joined:
    Feb 8, 2018
    Posts:
    30
    I tried, it doesnt look as good as the screenshot
     
  6. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    I'm pretty sure with proper light settings and some post processing (color correction etc.) you can achieve very similar look.
     
  7. TimmyTGames

    TimmyTGames

    Joined:
    Feb 8, 2018
    Posts:
    30
    Oh. I always thought I needed a shader. Thanks a bunch man!