What You Just Did

In the next chapter, we'll look at particle engines and how you can apply HLSL to particles to make them look realistic. But before we get to that, let's take a look back at this chapter and what you just did:

  • You learned about HLSL syntax, including semantics, keywords, functions, vertex shaders, and pixel shaders.

  • You implemented your first shader, which colored everything drawn on the screen in red.

  • You implemented a texture map shader that colored a rectangle based on pixel coordinates in a texture.

  • You created several different effects using HLSL.

Get Learning XNA 3.0 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.