|
Untitled
|
Go to the source code of this file.
Data Structures | |
| struct | MeshNode |
| MeshNodes that describe the position of Meshes, GLTF nodes for GLTFAnimations, or hold references to other MeshNodes. More... | |
Macros | |
| #define | MAX_MESH_NODES 1024 |
Functions | |
| layout (std140, binding=0) uniform CameraData | |
| vec3 | get_view_pos_from_depth (vec2 uv, float depth, mat4 invProjMatrix) |
| float | linearize (float z) |
| layout (std430, binding=15) buffer MeshNodeData | |
| void | main () |
Variables | |
| in vec2 | vUV |
| out vec4 | fragColor |
| uniform sampler2D | gDepth |
| uniform sampler2D | uScene |
| uniform float | uFocalLength |
| uniform float | uFStop |
| uniform float | uSensorHeight |
| uniform float | uMaxBlurRadius |
| layout | ( | std140 | , |
| binding | = 0 ) |
Definition at line 4 of file coc.frag.
References layout(), projection, and view.
Definition at line 22 of file coc.frag.
References get_view_pos_from_depth(), uv, and vec4::w.
Referenced by get_view_pos_from_depth(), and main().
| float linearize | ( | float | z | ) |
| layout | ( | std430 | , |
| binding | = 15 ) |
Definition at line 59 of file coc.frag.
References layout(), and MAX_MESH_NODES.
| void main | ( | ) |
Definition at line 69 of file coc.frag.
References clamp(), fragColor, gDepth, get_view_pos_from_depth(), main(), uFocalLength, uFStop, uMaxBlurRadius, uScene, uSensorHeight, vUV, and vec3::z.