Support Forum G3D Web Page |
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] |
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
#define blurResult gl_FragData[1] |
Referenced by glsl::DepthOfField_blur_pix::main().
#define nearResult gl_FragData[0] |
Referenced by glsl::DepthOfField_blur_pix::main().