Free Sample
+ Collection

HLSL Development Cookbook

Doron Feinstein

Implement stunning 3D rendering techniques using the power of HLSL and DirectX 11
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849694209
Paperback224 pages

About This Book

  • Discover powerful rendering techniques utilizing HLSL and DirectX 11
  • Augment the visual impact of your projects whilst taking full advantage of the latest GPUs
  • Experience the practical side of 3D rendering with a comprehensive set of excellent demonstrations

Who This Book Is For

If you have some basic Direct3D knowledge and want to give your work some additional visual impact by utilizing advanced rendering techniques, then this book is for you. It is also ideal for those seeking to make the transition from DirectX 9 to DirectX 11, and those who want to implement powerful shaders with the High Level Shader Language (HLSL).

Table of Contents

Chapter 1: Forward Lighting
Hemispheric ambient light
Directional light
Point light
Spot light
Capsule light
Projected texture – point light
Projected texture – spot light
Multiple light types in a single pass
Chapter 2: Deferred Shading
GBuffer generation
GBuffer unpacking
Directional light
Point light
Capsule light
Spot light
Chapter 3: Shadow Mapping
Spot light PCF shadows
Point light PCF shadows
Cascaded shadow maps
PCF with varying penumbra size
Visualizing shadow maps
Chapter 4: Postprocessing
HDR rendering
Distance depth of field
Chapter 5: Screen Space Effects
Screen space ambient occlusion
Lens flare
Screen space reflections
Screen space Sun rays
Chapter 6: Environment Effects
Dynamic decals
Distance/Height-based fog

What You Will Learn

  • Learn about different light sources in both forward and deferred implementations
  • Take your dynamic lighting to the next level with shadow map support
  • Discover a range of post processing effects like bloom and tone mapping
  • Implement 3D elements such as decals, rain, and more
  • Harness various screen space techniques that help augment the visual quality of your work

In Detail

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.


Read More