March 2014
Intermediate to advanced
560 pages
14h 7m
English
Chapter 2, “Hello, Triangle: An OpenGL ES 3.0 Example,” introduced you to a simple program that draws a single triangle. In that example, we created two shader objects (one for the vertex shader and one for the fragment shader) and a single program object to render the triangle. Shader objects and program objects are fundamental concepts when working with shaders in OpenGL ES 3.0. In this chapter, we provide the full details on how to create shaders, compile them, and link them together into a program object. The details of writing vertex and fragment shaders come later in this book. For now, we focus on the following topics:
• Shader and program object overview
• Creating and compiling a shader
• Creating and ...
Read now
Unlock full access