Search Unity

Map Fill

Discussion in 'Scripting' started by Steve_O, Jun 19, 2019.

  1. Steve_O

    Steve_O

    Joined:
    Dec 10, 2012
    Posts:
    22
    Hi All

    I was wondering how do you get a map of say USA to slowly fill with red dots, this is similar to the way Plague INC did with their map.

    So I wondering how do you do such an effect on a map??
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    There are many ways to do so. For instance, create a perlin noise texture and push it to shader. Add _Level float property to that shader and in fragment function draw red if noise > level, otherwise draw original color. Then slowly increment level.
     
    Steve_O likes this.
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536