Book Image

OpenGL ES 3.0 Cookbook

By : Parminder Singh
Book Image

OpenGL ES 3.0 Cookbook

By: Parminder Singh

Overview of this book

<p>"Write once, use anywhere" is truly the power behind OpenGL ES and has made it an embedded industry standard. The library provides cutting-edge, easy-to-use features to build a wide range of applications in the gaming, simulation, augmented-reality, image-processing, and geospatial domains.</p> <p>The book starts by providing you with all the necessary OpenGL ES 3.0 setup guidelines on iOS and Android platforms. You'll go on to master the fundamentals of modern 3D graphics, such as drawing APIs, transformations, buffer objects, the model-view-project analogy, and much more. The book goes on to deal with advanced topics and offers a wide range of recipes on the light shading, real-time rendering techniques with static and procedure textures to create stunning visualizations and runtime effects.</p>
Table of Contents (21 chapters)
OpenGL ES 3.0 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the sampling rate technique


In sampling rate technique, an increase in the amount of the sample rate in a pixel is used to decide the color of the pixel based on samples. This includes techniques, such as Super Sample Anti-aliasing (SSAA), Multi Sample Anti-aliasing (MSAA), Coverage Sampling Anti-aliasing (CSAA), which is usually driven on GPU hardware.

How to do it...

This section is a bit different from the rest of the How to do it... sections that we followed in the chapters. In this, we will discuss the various sampling rate techniques mentioned previously and the procedural difference between each of them. Let's discuss them in detail.

Super Sample Anti-aliasing (SSAA): This technique is also known as Full-Scene Anti-Aliasing (FSAA). Here, the scene is first rendered to higher resolution and then downsampled to its original resolution by taking the average of its neighboring pixels. For example, if a given scene needs to be rendered to a resolution of 1920 x 1080, it's first...