O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

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

Implementing adaptive anti-aliasing

The adaptive anti-aliasing mitigates the aliasing effects caused during the implementation of procedural shaders. As procedural shaders are programmed to produce dynamic textures, transition from the low to high frequency is very much known to the programmer, as they are the one to program it. For example, the polka dot recipe implementation generates dot patterns using a circle or sphere computational logic. It paints the fragment shader with one type of color if it falls inside the circle; otherwise, it uses the background color. In this case, the programmer knows very well that the transition from one color to another will be very sharp. This is where adaptive anti-aliasing is useful. It avoids such sharp ...

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