libGDX Masks

Channel:
Subscribers:
1,030
Published on ● Video Link: https://www.youtube.com/watch?v=qDKmcNFFFng



Duration: 11:56
1,324 views
83


Masking is a technique to limit drawing in libGDX games. You can composite images and make complex shapes. This tutorial steps through all the available techniques in the guide available at
https://libgdx.com/wiki/graphics/2d/masking

View the donut example and see a live sample here: https://github.com/raeleus/masks-example-project

Music by Jake Stevens: https://www.youtube.com/user/jakery1295

Thanks to DeveloperDoge for his contributions. See his content here:
https://twitter.com/DeveloperDoge
https://www.youtube.com/channel/UC6oztctzZcLRr4-u7LFAziQ

00:00 - Introduction
00:44 - glScissor
01:21 - ScissorStack
02:03 - Depth Buffer
03:28 - Blending Function
06:23 - Pixmap
07:28 - Shader
08:12 - Shader with Video
08:53 - BlendFuncSeparate
09:41 - Tinting
10:08 - Conclusion