Skip to main content

Normal Mapping

  • Chapter
  • First Online:
Practical Shader Development
  • 1034 Accesses

Abstract

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 source of normal data. This is much easier to explain visually, so Figure 10-1 has a close-up shot of the center of our shield mesh with vertex normal drawn as white lines.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Kyle Halladay

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Halladay, K. (2019). Normal Mapping. In: Practical Shader Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4457-9_10

Download citation

Publish with us

Policies and ethics