Support Forum       G3D Web Page     
Public Member Functions | List of all members
glsl::AmbientOcclusion_sample_glsl Class Reference


More...

Public Member Functions

float sampleAO (vec2 coord, sampler2D ambientOcclusion_buffer, ivec2 ambientOcclusion_offset, ivec2 ambientOcclusion_size, sampler2D depthBuffer, Point3 csPosition, float3 clipInfo, vec2 coverageGradient, const bool unblendedPass, const bool inferAmbientOcclusionAtTransparentPixels, const bool hasTransmissive)
 
float2 sampleNeighborAO (ivec2 coord, sampler2D ambientOcclusion_buffer, ivec2 ambientOcclusion_offset, ivec2 ambientOcclusion_size, sampler2D depthBuffer, float myZ, float3 clipInfo)
 Used for inferred AO. More...
 

Detailed Description


Referenced Code: Implements the inferred AO sampling algorithm from McGuire and Mara,
Referenced Code: Phenomenological Transparency, IEEE Transactions on Visualiation and Computer Graphics, 14 pages, 2017

Member Function Documentation

◆ sampleAO()

float glsl::AmbientOcclusion_sample_glsl::sampleAO ( vec2  coord,
sampler2D  ambientOcclusion_buffer,
ivec2  ambientOcclusion_offset,
ivec2  ambientOcclusion_size,
sampler2D  depthBuffer,
Point3  csPosition,
float3  clipInfo,
vec2  coverageGradient,
const bool  unblendedPass,
const bool  inferAmbientOcclusionAtTransparentPixels,
const bool  hasTransmissive 
)
inline

◆ sampleNeighborAO()

float2 glsl::AmbientOcclusion_sample_glsl::sampleNeighborAO ( ivec2  coord,
sampler2D  ambientOcclusion_buffer,
ivec2  ambientOcclusion_offset,
ivec2  ambientOcclusion_size,
sampler2D  depthBuffer,
float  myZ,
float3  clipInfo 
)
inline

Used for inferred AO.

Returns weighted AO, weight based on depth locality


documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15