Search Unity

Unmask part of a texture using another unmasking texture

Discussion in 'Shaders' started by anthonov, May 20, 2019.

  1. anthonov

    anthonov

    Joined:
    Sep 24, 2015
    Posts:
    160
    Okay, I have a damage texture that covers the entire screen. The image of the game is fixed, I would like a way to make the texture of the damage appear little by little. A bit like in the worms game, except that I want to gradually make a texture appear instead of making it disappear. I want to use another texture (damage zone and shape) to indicate the pixels to be unmasked on the first one. I'm terrible at shaders.
    Possible? (for mobile)
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Yep! Search for dissolve shader.