Chapter 15. The OpenGL Shading Language

Chapter Objectives

This chapter discusses the OpenGL Shading Language. GLSL, as the OpenGL Shading Language is commonly called, is a programming language for creating programmable shaders. Introduced as a part of OpenGL version 2.0, the OpenGL Shading Language enables applications to explicitly specify the operations used in processing vertices and fragments. Additionally, GLSL helps unlock the computation power of modern hardware implementations of OpenGL.

After reading this chapter, you’ll be able to do the following:

• Understand the structure and components of programmable shaders written in the OpenGL Shading Language

• Integrate programmable shaders into OpenGL programs

• Use exclusively ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.