Chapter 2. Basics

This chapter introduces the OpenGL Shading Language to get you started writing your own shaders as quickly as possible. When you finish reading this chapter, you should understand how programmability has been added to OpenGL and be ready to tackle the details of the shading language description in the next three chapters and the simple example in Chapter 6. After that, you can learn more details about the API that supports the shading language or explore the examples contained in the later chapters.

2.1 Introduction to the OpenGL Shading Language

This book helps you learn and use a high-level graphics programming language formally called the OPENGL SHADING LANGUAGE. Informally, this language is sometimes referred to as GLSL. ...

Get OpenGL Shading Language, Third Edition now with O’Reilly online learning.

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