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

2d Shadows with Sprite shaped shadows

Discussion in 'Scripting' started by Sophophilia_Studios, Jul 29, 2015.

  1. Sophophilia_Studios

    Sophophilia_Studios

    Joined:
    Jul 28, 2015
    Posts:
    21
    I had a light system working in GameMaker that when a shadow was casted it would be in the shape of the object, not just a shadow area. Check out the gif below to see what it looked like


    In all the threads about 2d shadows and all the examples in the asset store they only cast shadows in an area shape. Not sure how to explain it. They only look like this


    This is great if you have a light on the ground with the player. But if you are trying to depict a sun's light on a 2d side scrolling platformer then you would want the first example
     
  2. Sophophilia_Studios

    Sophophilia_Studios

    Joined:
    Jul 28, 2015
    Posts:
    21