Book Image

HLSL Development Cookbook

By : Doron Feinstein
Book Image

HLSL Development Cookbook

By: Doron Feinstein

Overview of this book

3D graphics are becoming increasingly more realistic and sophisticated as the power of modern hardware improves. The High Level Shader Language (HLSL) allows you to harness the power of shaders within DirectX 11, so that you can push the boundaries of 3D rendering like never before.HLSL Development Cookbook will provide you with a series of essential recipes to help you make the most out of different rendering techniques used within games and simulations using the DirectX 11 API.This book is specifically designed to help build your understanding via practical example. This essential Cookbook has coverage ranging from industry-standard lighting techniques to more specialist post-processing implementations such as bloom and tone mapping. Explained in a clear yet concise manner, each recipe is also accompanied by superb examples with full documentation so that you can harness the power of HLSL for your own individual requirements.
Table of Contents (13 chapters)

Screen space reflections


It is very likely that at one point you will want to render a mesh with reflective qualities. Rendering reflection in 3D is usually a performance-costly task that is limited to planer reflections or environment reflection. Another common reflection restriction is that a scene cannot contain more than one reflective surface at any given time. Both restrictions usually provide an annoying challenge for artists, as they have to take these limitations into account when choosing the materials used in the scene.

Screen space reflection provides an alternative way to support reflection without the previously mentioned restrictions. This technique can be used for any surface shape and it is not restricted to a single surface in a given frame. Although screen space reflections are limited by the lack of information available in screen space, they offer a good alternative in scenes that can't use the traditional reflection methods, as you can see in the following example:

Getting...