O'Reilly logo

Learning Libgdx Game Development by Andreas Oehlke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with shaders in Libgdx

Let us now turn our attention to the topic of shaders. This is a feature that is available in OpenGL (ES) 2.0 only, as it makes use of the so-called Programmable Pipeline. Shaders are usually small programs, which allow us to take over control of certain stages in the rendering process to define the way how a scene should be rendered by the graphics processor. In consequence, shaders are an important building block in today's computer graphics and are also an extremely powerful tool to create all sorts of (special) effects that would be very hard to realize otherwise. For the sake of simplicity, we will only discuss vertex and fragment shaders here.

Note

Fragment shaders are also called pixel shaders. Unfortunately, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required