O'Reilly logo

Practical Shader Development: Vertex and Fragment Shaders for Game Developers by Kyle Halladay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Kyle Halladay 2019
Kyle HalladayPractical Shader Developmenthttps://doi.org/10.1007/978-1-4842-4457-9_10

10. Normal Mapping

Kyle Halladay1 
(1)
Bristol, UK
 
In the last chapter, we saw our first example of using a texture to store non-color data. In this chapter we’re going to expand on that idea, except rather than store information about our mesh surface’s shininess, we’re going to store information about bumpiness. We’ll do this with a special texture that stores normal vectors instead of colors. Until now, all our normal vectors have come directly from the geometry of our mesh. However, vertex normals can only provide information about the overall shape of a mesh face. If we want to render smaller details, like bumps or scratches, we need another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required