Skip to Content
GPU Pro 6
book

GPU Pro 6

by Wolfgang Engel
July 2015
Intermediate to advanced
586 pages
17h 21m
English
A K Peters/CRC Press
Content preview from GPU Pro 6
1. Block-Wise Linear Binary Grids for Fast Ray-Casting Operations 499
float3 f3CPos = f3CPosOrg ;
adr . z =0;
adr . y = int ( tc . y g_vRSMDimensions . y +(LFS )+i2Off . y );
// Loop over sparse VPL kernel
for ( float row = LFS ; row <= LFS ; row += 6 . 0 f , adr . y += 6 )
{
adr . x = int ( tc . x g_vRSMDimensions . x +(LFS )+i2Off . x );
for( float col = LFS ; col <= LFS ; col += 6 . 0 f , adr . x += 6 )
{
float3 f3Pos , f3Col , f3N ;
// Unpack Gbuffer data
float3 f3Col , f3Pos , f3N ;
GetGBufferData ( f3Col , f3Pos , f3N );
// Compute indirect light contribution
float3 f3D = f3Pos . xyz f3CPosOrg . xyz ;
float fLen = length( f3D );
float fInvLen
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 7

GPU Pro 7

Wolfgang Engel
GPU PRO 3

GPU PRO 3

Wolfgang Engel

Publisher Resources

ISBN: 9781482264623