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


7-tap 1D cross-bilateral blur using a packed depth key More...

Public Member Functions

float calculateBilateralWeight (float key, float tapKey, ivec2 tapLoc, vec3 n_C, vec3 tapN_C, vec3 C)
 
void getTapInformation (ivec2 tapLoc, out float tapKey, out float value, out vec3 tapN_C)
 
void main ()
 
vec3 positionFromKey (float key, ivec2 ssC, ProjInfo pInfo)
 
float unpackKey (float p)
 Returns a number on (0, 1) More...
 

Public Attributes

uniform ivec2 axis
 (1, 0) or (0, 1) More...
 
uniform float invRadius
 Used to make the blur/reconstruction relatively scale-invariant by adjusting "epsilon" values and weights to the scale of the scene. More...
 
uniform ProjInfo projInfo
 
uniform sampler2D source
 
out vec3 valueAndKey
 

Detailed Description


7-tap 1D cross-bilateral blur using a packed depth key

DX11 HLSL port by Leonardo Zide, Treyarch

Open Source under the "BSD" license: http://www.opensource.org/licenses/bsd-license.php

Copyright (c) 2011-2012, NVIDIA All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Member Function Documentation

◆ calculateBilateralWeight()

float glsl::AmbientOcclusion_blur_pix::calculateBilateralWeight ( float  key,
float  tapKey,
ivec2  tapLoc,
vec3  n_C,
vec3  tapN_C,
vec3  C 
)
inline

◆ getTapInformation()

void glsl::AmbientOcclusion_blur_pix::getTapInformation ( ivec2  tapLoc,
out float  tapKey,
out float  value,
out vec3  tapN_C 
)
inline

◆ main()

void glsl::AmbientOcclusion_blur_pix::main ( )
inline

◆ positionFromKey()

vec3 glsl::AmbientOcclusion_blur_pix::positionFromKey ( float  key,
ivec2  ssC,
ProjInfo  pInfo 
)
inline

◆ unpackKey()

float glsl::AmbientOcclusion_blur_pix::unpackKey ( float  p)
inline

Returns a number on (0, 1)

Member Data Documentation

◆ axis

uniform ivec2 glsl::AmbientOcclusion_blur_pix::axis

(1, 0) or (0, 1)

◆ invRadius

uniform float glsl::AmbientOcclusion_blur_pix::invRadius

Used to make the blur/reconstruction relatively scale-invariant by adjusting "epsilon" values and weights to the scale of the scene.

◆ projInfo

uniform ProjInfo glsl::AmbientOcclusion_blur_pix::projInfo

◆ source

uniform sampler2D glsl::AmbientOcclusion_blur_pix::source

◆ valueAndKey

out vec3 glsl::AmbientOcclusion_blur_pix::valueAndKey

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