Chapter 5. Screen Space Effects

In this chapter we will cover various screen space effects:

  • Screen space ambient occlusion
  • Lens flare
  • Screen space Sun rays
  • Screen space reflections

Introduction

In the previous chapter we covered postprocessing effects that enhance the lighting results with a series of 2D calculations in screen space. All the recipes in the previous chapter provide the essentials for enhancing the rendered scene's quality after it is fully lit. Postprocessing, however, is not the only group of calculations that are handled in screen space.

All the recipes covered in this chapter complement our lighting system in some way. As you will soon see, the line between what is considered as postprocessing and what is considered a screen space ...

Get HLSL Development Cookbook 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.