Automotive Holiday Deals Books Holiday Gift Guide Shop Men's Athletic Shoes Learn more nav_sap_plcc_6M_fly_beacon $5 Albums egg_2015 All-New Amazon Fire TV Movember Martha Stewart American Made Find the Best Purina Pro Plan for Your Pet Amazon Gift Card Offer minions minions minions  Amazon Echo Starting at $84.99 Kindle Black Friday Deals Classics and Essentials in CDs & Vinyl Outdoor Deals on HTL
OpenGL Shading Language and over one million other books are available for Amazon Kindle. Learn more

Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your email address or mobile phone number.

OpenGL Shading Language (3rd Edition) 3rd Edition

10 customer reviews
ISBN-13: 978-0321637635
ISBN-10: 0321637631
Why is ISBN important?
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
Sell yours for a Gift Card
We'll buy it for $9.58
Learn More
Trade in now
Have one to sell? Sell on Amazon
Buy used On clicking this link, a new layer will be open
$32.92 On clicking this link, a new layer will be open
Buy new On clicking this link, a new layer will be open
$54.26 On clicking this link, a new layer will be open
More Buying Choices
23 New from $48.63 22 Used from $32.92
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

Get Up to 80% Back Rent Textbooks
$54.26 FREE Shipping. Only 8 left in stock (more on the way). Ships from and sold by Gift-wrap available.

Frequently Bought Together

  • OpenGL Shading Language (3rd Edition)
  • +
  • OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3 (8th Edition)
  • +
  • OpenGL 4 Shading Language Cookbook - Second Edition
Total price: $149.98
Buy the selected items together

Editorial Reviews


“As the ‘Red Book’ is known to be the gold standard for OpenGL, the ‘Orange Book’ is considered to be the gold standard for the OpenGL Shading Language. With Randi’s extensive knowledge of OpenGL and GLSL, you can be assured you will be learning from a graphics industry veteran. Within the pages of the second edition you can find topics from beginning shader development to advanced topics such as the spherical harmonic lighting model and more.”

—David Tommeraasen, CEO/Programmer, Plasma Software


“This will be the definitive guide for OpenGL shaders; no other book goes into this detail. Rost has done an excellent job at setting the stage for shader development, what the purpose is, how to do it, and how it all fits together. The book includes great examples and details, as well as good additional coverage of 2.0 changes!”

—Jeffery Galinovsky, Director of Emerging Market, Platform Development, Intel Corporation


“The coverage in this new edition of the book is pitched just right to help many new shader-writers get started, but with enough deep information for the ‘old hands.’”

—Marc Olano, Assistant Professor, University of Maryland


“This is a really great book on GLSL—well written and organized, very accessible, and with good real-world examples and sample code. The topics flow naturally and easily, explanatory code fragments are inserted in very logical places to illustrate concepts, and, all in all, this book makes an excellent tutorial as well as a reference.”

—John Carey, Chief Technology Officer, C.O.R.E. Feature Animation


OpenGL® Shading Language provides a timely, thorough, and entertaining introduction to the only OpenGL ARB-approved high-level shading language in existence. Whether an expert or a novice, there are gems to be discovered throughout the book, and the reference pages will be your constant companion as you dig into the depths of the shading APIs. From algorithms to APIs, this book has you covered.”

—Bob Kuehne, CEO, Blue Newt Software


“Computer graphics and rendering technologies just took a giant leap forward with hardware vendors rapidly adopting the new OpenGL Shading Language. This book presents a detailed treatment of these exciting technologies in a way that is extremely helpful for visualization and game developers.”

—Andy McGovern, Founder, Virtual Geographics, Inc.


“The OpenGL Shading Language is at the epicenter of the programmable graphics revolution, and Randi Rost has been at the center of the development of this significant new industry standard. If you need the inside track on how to use the OpenGL Shading Language to unleash new visual effects and unlock the supercomputer hiding inside the new generation of graphics hardware, then this is the book for you.”

—Neil Trevett, Senior Vice President, Market Development, 3Dlabs



From the Back Cover

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.


Hero Quick Promo
Holiday Deals in Kindle Books
Save up to 85% on more than 1,000 Kindle Books. These deals are valid until November 30, 2015. Learn more

Product Details

  • Paperback: 792 pages
  • Publisher: Addison-Wesley Professional; 3 edition (July 30, 2009)
  • Language: English
  • ISBN-10: 0321637631
  • ISBN-13: 978-0321637635
  • Product Dimensions: 7 x 1.5 x 9 inches
  • Shipping Weight: 2.4 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #313,893 in Books (See Top 100 in Books)

Customer Reviews

Most Helpful Customer Reviews

18 of 20 people found the following review helpful By Papa Carlo on January 12, 2010
Format: Paperback Verified Purchase
The authors honestly warn the user that this book is not intended to be read from start to finish in sequential order. Cannot agree more. The material is scattered through the book with little logical order. Very often I find myself putting the book aside and going to Internet after futile attempts to find even some basic information.
For example GLSL defines a number of special embedded variables, but you will not find a list of those variables and especially examples of using them. Instead they are scattered in the text.
A good part of the book is just examples of solving some fancy tasks. GLSL is a very interesting and exciting subject and I expected to find something more useful when ordering this book.
Save your money.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
9 of 9 people found the following review helpful By J. Wrenholt on April 14, 2013
Format: Paperback Verified Purchase
The Third Edition is not very different from the Second. (Which is a good book.)

Very minor changes from the 2e. Someone tried to hack out the deprecation but the new stuff lacks adequate explanation and doesn't always work. There are no new shaders presented showing how to benefit from the new capabilities of GLSL.

The index has not been updated to include the mentions of new features or commands. For instance glTransformFeedbackVarying, glBeginTransformFeedback, and glBindBufferBase are briefly mentioned in the book but they have not been indexed nor have they been added to the glossary nor are they included in the API Function Reference in Appendix B.

New commands gl_VertexID and gl_InstanceID are listed but no examples are given as to what they are used for. Other new commands are not even mentioned, such as glPrimitiveRestartIndex.

It's web-site is not working. So, no source code is available for the third edition.

The author's email is listed in the book but there is no response and I believe it is a not a working address.

The publisher's web-site has a link to download source code for the book, but its the code from the 2nd edition without any updating.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
7 of 7 people found the following review helpful By D. Neckels on March 31, 2010
Format: Paperback Verified Purchase
The book covers all you need to know to write opengl shaders. There are a number of examples covered, with source both in the book and available for download. The writing is understandable and comprehensive, if ponderous.
My only complaint is the encyclopedic nature of the book. Tons of man page like reference material in the back and throughout.
It lacks the inspiration of a book like Frank Luna's DirectX, where he develops techniques like normal mapping, cascaded shadow maps, etc.. with all the relevant math details.

But, if you have those details, this book has everything you need to implement them in GLSL. So a good buy.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
3 of 3 people found the following review helpful By CRK on September 11, 2012
Format: Paperback Verified Purchase
I don't usually write reviews, but this book deserves one.

This book serves well to someone that has some familiarity/experience with setting up an OpenGL environment on whatever platform. (ie. each implementation of opengl has its quarks, but for iOS this involves setting up the EAGLContext, override layerClass to return CAEAGLayer, setting up vertex buffer objects, render buffers, and framebuffers, blah blah) If you don't understand that aspect you'll find yourself reading the book and thinking 'thats great, but how do i set this up initially?' However if you're like me, and can set up the GL environment, but lacked some insight on what exactly can be accomplished with vertex/fragment shaders then you'll be in for a treat. This book does a nice job of explaining the process of creating shaders (and their corresponding gl_programs). This book doesn't treat the reader like an idiot, but it also doesn't treat you like you were a designer of OpenGL; its a good compromise in the middle. The general flow of the book is having a detailed explanation of what is going on in a shader, then it shows you the code for said shader. If you're patient and willing to cross-reference the text and the code, and touch base with the underlying math where you find yourself lacking, you should come out with a better understanding of how to achieve certain effects (lighting, shadows, noise, etc.) Goodluck
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback Verified Purchase
This book does an excellent job of explaining the perks and quirks of writing shaders. From novice to professional this book is a must have as it explains the whole concept of shaders, their need as it arose through the history of the graphics API wars, a quick introduction to Open GL and its relationship to GLSL as well as the interfacing code that needs to be written to connect the dots between OpenGL and GLSL. Full details of the GLSL language are included and explained in a gradual manner.

The book proceeds to give an overview of how a shader is written from beginning to end. Then a fully detailed description of each of the intermediate steps is given. The discussion proceeds as a tutorial taking the reader by the hand and in a step-by-step manner teaches how to write the most widely used shaders in the graphics industry while at the same time it gives enough instruction to enable the reader to invent their own shaders if they need to.

In all, a very well written and rounded book that begins slowly and generally at first while gradually adding the necessary detail. Written in a simple language without sacrificing technical rigor. A tutorial for the novice and also an invaluable reference in finding quickly whatever a shader developer might need. A must have for everyone interested in developing modern accelerated graphics applications.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
OpenGL Shading Language (3rd Edition)
This item: OpenGL Shading Language (3rd Edition)
Price: $54.26
Ships from and sold by

Want to discover more products? Check out these pages to see more: opengl, graphics programming