Skip to Content
GPU Pro 5
book

GPU Pro 5

by Wolfgang Engel
May 2014
Intermediate to advanced
522 pages
16h 1m
English
A K Peters/CRC Press
Content preview from GPU Pro 5
3. Volumetric Light Effects in Killzone: Shadow Fall 137
Slice index Depth in meters
0 0.0
1 0.57
2 2.28
3 5.12
··· ···
13 96.14
14 111.50
15 128.0
Tab l e 3 . 1. Depths for depth slices.
The equation calculates the depth (d) for each slice index (i). N defines the
number of depth slices and R defines the depth range we want to cover. C
defines the curvature of the function. C =1.0 will result in depth slices evenly
distributed across the entire depth range. A higher value of C will move slices
near the camera closer to each other and will spread distant slices farther apart.
We use C =2.0 in our implementation to get a nice distribution. Table 3.1 and
Figure
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GPU Pro 4

GPU Pro 4

Wolfgang Engel
GPU Pro 7

GPU Pro 7

Wolfgang Engel
GPU Pro 6

GPU Pro 6

Wolfgang Engel
GPU PRO 3

GPU PRO 3

Wolfgang Engel

Publisher Resources

ISBN: 9781482208641