Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is it possible to make a projector that only Multiplies a specific light source.

Discussion in 'Shaders' started by LittleRainGames, Apr 16, 2017.

  1. LittleRainGames

    LittleRainGames

    Joined:
    Apr 7, 2016
    Posts:
    97
    So I'm trying to get nice looking shadows in this one part of my scene. I can't use the shadows from the directional light on this, because at the distance I have it set to makes them very blurry and ugly. To get them looking nice, light starts to leak into the building.

    So I'm using a projector for the shadows, and I've culled out the parts I don't want it to go on, but when there's other lights, it still shows up when it shouldn't.

    So to get it working properly, I would need it to only affect the directional light, and not anything else.

    Is this possible? And how would I go about doing this, I am fairly new to shaders?

    Pics..

    Directional Light


    Projector


    Projector Overlapping a Point Light