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

7. Your First 3D Project

Kyle Halladay1 
Bristol, UK

Rendering 3D games is a bit of a different animal than the 2D projects we’ve been doing so far. Unlike sprites drawn on quads, 3D meshes have a lot of information about their shape. 3D games can use this shape information to perform lighting calculations inside shader code, to make these objects appear to be lit in real time by the game world. We’re going to see how some of these lighting calculations work in later chapters, but first we need to have a 3D project to work with. This chapter is going to walk through how to set one of those up. We’re going to get a mesh loaded into a new project ...

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.