Chapter 13. Advanced HLSL
IN THIS CHAPTER
In the last chapter we learned the basics of HLSL. In this chapter, we take those concepts further by doing vertex displacement in our vertex shaders and by doing postprocessing techniques in our pixel shaders.
Vertex displacement is simply changing the position of our vertices through our vertex shader. Postprocessing is the process of taking a completed (or partial) scene and rendering that scene to a texture. It then takes that texture and processes it with a pixel shader to make some interesting effects.
Vertex Displacement
We are going to create an interesting effect that will allow us to move our vertices around. Shaders are not only used to ...
Get Microsoft® XNA™ Unleashed: Graphics and Game Programming for Xbox 360 and Windows 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.