Skip to Content
GPU Pro 7
book

GPU Pro 7

by Wolfgang Engel
March 2016
Intermediate to advanced
320 pages
9h 14m
English
A K Peters/CRC Press
Content preview from GPU Pro 7
4. Real-Time Volumetric Cloudscapes 107
Figure 4.14. The “base” cloud shape with coverage applied.
Here is how it looks in code:
// Cloud coverage is stored in weather data ’ s red channel .
float cloud_coverage = weather_data . r ;
// Use remap to apply the cloud coverage attribute .
float base_cloud_with_coverage = Remap ( base_cloud ,
cloud_coverage , 1.0 , 0.0 , 1.0) ;
// Multiply the result by the cloud coverage attribute so
// that smaller clouds are lighter and more aesthetically
// pleasing .
base_cloud_with_coverage = cloud_coverage ;
The result of these steps is shown in Figure 4.14. The base cloud is still low
detail but it is beginning to
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 5

GPU Pro 5

Wolfgang Engel
GPU Pro 6

GPU Pro 6

Wolfgang Engel
GPU PRO 3

GPU PRO 3

Wolfgang Engel

Publisher Resources

ISBN: 9781498742542