Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

OpenGL® Shading Language, Third Edition, extensively updated for OpenGL 3.1, is the experienced application programmer’s guide to writing shaders. Part reference, part tutorial, this book thoroughly explains the shift from fixed-functionality graphics hardware to the new era of programmable graphics hardware and the additions to the OpenGL API that support this programmability. With OpenGL and shaders written in the OpenGL Shading Language, applications can perform better, achieving stunning graphics effects by using the capabilities of both the visual processing unit and the central processing unit.

In this book, you will find a detailed introduction to the OpenGL Shading Language (GLSL) and the new OpenGL function calls that support it. The text begins by describing the syntax and semantics of this high-level programming language. Once this foundation has been established, the book explores the creation and manipulation of shaders using new OpenGL function calls.

OpenGL® Shading Language, Third Edition, includes updated descriptions for the language and all the GLSL entry points added though OpenGL 3.1, as well as updated chapters that discuss transformations, lighting, shadows, and surface characteristics. The third edition also features shaders that have been updated to OpenGL Shading Language Version 1.40 and their underlying algorithms, including

  • Traditional OpenGL fixed functionality

  • Stored textures and procedural textures

  • Image-based lighting

  • Lighting with spherical harmonics

  • Ambient occlusion and shadow mapping

  • Volume shadows using deferred lighting

  • Ward’s BRDF model

The color plate section illustrates the power and sophistication of the OpenGL Shading Language. The API Function Reference at the end of the book is an excellent guide to the

API entry points that support the OpenGL Shading Language.

Subscriber Reviews

Average Rating: 4.333333333333333 out of 5 rating Based on 3 Ratings

"Amazing Book" - by André Sanches on 28-OCT-2009
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
As the name implies, this book covers the GLSL. But it explains not just the tools, but especially the algorithms and concepts behind many widely used computer graphics techniques. I do not have any experience with computer graphics, but I was able to understand most concepts. This book is great not just because it covers a lot of ground, but also because it does so in an excellent way.
It cites many references, which will be very useful for further study. And it also has code excerpts for all covered techniques, so you have the code to get you started.

Report as Inappropriate

Table of Contents

 Index

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample

View Sample