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

Custom 2D light

Discussion in 'General Graphics' started by DoYouRockBaby, Aug 17, 2018.

  1. DoYouRockBaby

    DoYouRockBaby

    Joined:
    May 21, 2018
    Posts:
    9
    Hello World

    I'm currently trying to reproduce a 2d light system like this one : https://ncase.me/sight-and-light/

    I made a mesh generator that reproduce this ligth behaviour :
    Capture.PNG

    But i'm a big noob in shader creation, i'm really totaly lost and don't know where to start my search. I heard about sprite mask and i was wondering if i could use my mesh as a sprite mask using stencil buffer but it's far away from my shader skills.