|
Untitled
|
Go to the source code of this file.
Functions | |
| layout (std140, binding=0) uniform CameraData | |
| vec3 | get_view_pos (vec2 uv) |
| vec3 | reconstruct_normal (vec2 uv, vec3 view_pos) |
| void | main () |
Variables | |
| in vec2 | vUV |
| uniform sampler2D | uDepth |
| uniform sampler2D | uNoise |
| uniform ivec2 | uSSAOResolution |
| out float | fragColor |
| layout | ( | std140 | , |
| binding | = 0 ) |
Definition at line 6 of file ssao.frag.
References layout(), projection, and view.
Definition at line 50 of file ssao.frag.
References get_view_pos(), uDepth, uv, and vec4::w.
Referenced by get_view_pos(), main(), and reconstruct_normal().
Definition at line 59 of file ssao.frag.
References get_view_pos(), reconstruct_normal(), uSSAOResolution, uTexelSize, uv, vec2::x, and vec2::y.
Referenced by main(), and reconstruct_normal().
| void main | ( | ) |
Definition at line 74 of file ssao.frag.
References fragColor, get_view_pos(), main(), reconstruct_normal(), samples, smoothstep(), TBN, uNoise, uSSAOResolution, vUV, vec4::w, and vec3::z.
| uniform ivec2 uSSAOResolution |
Definition at line 46 of file ssao.frag.
Referenced by main(), and reconstruct_normal().