See also

  • The chapter05/scenetexture.cpp file in the example code
  • For more information about sending data to a shader via vertex attributes refer to the Sending data to a shader using vertex attributes and vertex buffer objects recipe in Chapter 2, Working with GLSL Programs
  • The Using per-fragment shading for improved realism recipe in Chapter 4, Lighting and Shading

Get OpenGL 4 Shading Language Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.