Using Textures

In this chapter, we will cover the following recipes:

  • Applying a 2D texture
  • Applying multiple textures
  • Using alpha maps to discard pixels
  • Using normal maps
  • Parallax mapping
  • Steep parallax mapping with self shadowing
  • Simulating reflection with cube maps
  • Simulating refraction with cube maps
  • Applying a projected texture
  • Rendering to a texture
  • Using sampler objects
  • Diffuse image-based lighting

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.