Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

How to use custom shader as a Mask?

$
0
0

Hi guys. In my game I want to use some SpriteMask. I wander if I can use my custom shader as a Mask?

In my custom shader I draw a shape that changes over time and I want to use this shader(drawn shape) as a mask.

How can I achive this effect?

P.S. I'm working on 2D game.


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>