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

5. Making Things Move

Kyle Halladay1 
Bristol, UK

We’ve focused a lot so far on things we can do with a fragment shader: tinting, brightening, mixing—all that jazz. You’d be forgiven for thinking that vertex shaders exist only to pass information to the real stars of the show, but nothing could be further from the truth. While fragment shaders drive a lot of the visual effects that we’re used to in modern games, vertex shaders are the unsung workhorse of modern video game graphics, and this chapter is going to focus on why.

We’ve created two different meshes for our projects so far, a triangle and a quad. Both meshes have been completely

Get Practical Shader Development: Vertex and Fragment Shaders for Game Developers 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.