Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question 2D Directional Lighting

Discussion in 'General Graphics' started by Birch_Tree, Aug 23, 2020.

  1. Birch_Tree

    Birch_Tree

    Joined:
    Apr 16, 2019
    Posts:
    2
    Hello all. I'm trying to achieve a sunlight type of effect in 2D. In 3D we can achieve the effect below using a directional light on 3D objects:



    However in 2D I can only figure out how to make a light shine from a single point using a shadow caster 2d component and freeform light:

    Does anyone know how to achieve the straight directional shadow effect from 3D in 2D? Thanks!
     
    Last edited: Aug 23, 2020
  2. Birch_Tree

    Birch_Tree

    Joined:
    Apr 16, 2019
    Posts:
    2
    Old thread but still looking for a solution to this