Search Unity

Procedural sprite 2D depth drawing

Discussion in '2D' started by Salmer, Jun 25, 2019.

  1. Salmer

    Salmer

    Joined:
    Aug 16, 2015
    Posts:
    5
    I have made script that generates separate parts of image, creates new sprites and packs them to atlas.

    What I want is to add some depth effect to sprite.

    After several attemts got interested if anyone already made something like that. So instead of inventing a wheel I desided to ask a question here.

    What I want to achieve:
    • taking custom sprite with alpha values
    • creating depthlike overlay on that sprite
    • creating new sprite from it

    Added example of depth I want to get.
     

    Attached Files:

    • raw.png
      raw.png
      File size:
      9.6 KB
      Views:
      500
    Last edited: Jul 22, 2019