Support Forum       G3D Web Page     
Classes | Namespaces | Macros
DepthOfField_blur.pix File Reference

Computes the near field blur. More...

Classes

class  glsl::DepthOfField_blur_pix
 
Computes the near field blur. More...
 

Namespaces

 glsl
 

Macros

#define blurResult   gl_FragData[1]
 
#define nearResult   gl_FragData[0]
 

Detailed Description

Computes the near field blur.

This is included by both the horizontal (first) and vertical (second) passes.

The shader produces two outputs:

blurResult

A buffer that is the scene blurred with a spatially varying kernel kernel that attempts to make the point-spread function at each pixel equal to its circle of confusion radius.

blurResult.rgb = color blurResult.a = normalized coc radius

nearResult

A buffer that contains only near field, blurred with premultiplied alpha. The point spread function is a fixed RADIUS in this region.

nearResult.rgb = coverage * color nearResult.a = coverage

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License

Macro Definition Documentation

◆ blurResult

#define blurResult   gl_FragData[1]

◆ nearResult

#define nearResult   gl_FragData[0]

documentation generated on Wed Nov 24 2021 08:01:50 using doxygen 1.8.15