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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Blob Shadow for only first face?

Discussion in 'Shaders' started by sdf_eee, Aug 27, 2016.

  1. sdf_eee

    sdf_eee

    Joined:
    May 30, 2015
    Posts:
    55
    Hello, I'm a beginner for shader.
    when I use Blob Shadow from Standard Assets, I found something.

    capture.png

    I want to project shadow only for this table. not downside tile.
    How can I achieve it?
     
  2. Namey5

    Namey5

    Joined:
    Jul 5, 2013
    Posts:
    188
    Well, you could decrease the far distance of the projector or change the table to a different layer and only project onto that layer. Projectors do not have built in shadow support.
     
  3. sdf_eee

    sdf_eee

    Joined:
    May 30, 2015
    Posts:
    55
    Thanks for the reply. I know that distance adjust, but Player can jump and I need to changeable far-distance via code.
    before write that code, I was curious. Is there any other way via shader? (like normal check or just 1 object can be project.. etc)

    ok. now I try to write far-distance change code. (Raycast to downside for calculate distance with first object.)
    Thank you!