Layer Masking Effect - flexigame.com Technical Blog

Layers masking effect using OpenGL ES shader with libGDX

In this article I will explain the basics of using texture alpha masks with multiple layers and how to create complex effects using this neat trick. The source code will be based on the libGDX framework and written in Java. Recently I’ve used this code for intro and menu effect in my last Android game. Custom pixel shader used with SpriteBatch will be required for this effect to work....