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

6. Cameras and Coordinates

Kyle Halladay1 
Bristol, UK

Way back in the first chapter, we briefly heard about the term game camera . This is the term used for the virtual camera in a game world that decides what goes on screen by looking in different directions and moving to different positions in the scene. Now that we’re comfortable with using matrices to move things around our screen, it’s time for us to see how we can use matrices to build a simple game camera.

Using a game camera to move things around a screen is a bit different from moving individual objects. When the game camera moves, everything on screen has to move at once. If this ...

Get Practical Shader Development: Vertex and Fragment Shaders for Game Developers now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.