GPUForBeginners

Chapter 2: First Triangle

Triangles are the most basic shape, and all 3D is made up of them. (Unless you use things like SDFs or some types of Voxel Rendering, but that is outside the scope of this guide.)

So all graphics programming starts with the first triangle. In this chapter, we will get a triangle on screen.

a colorful triangle on top of the background from last chapter

Final Chapter Code

← Previous Chapter Index Next Chapter →