Untitled
Loading...
Searching...
No Matches
coc.frag File Reference

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

Macro Definition Documentation

◆ MAX_MESH_NODES

#define MAX_MESH_NODES   1024

Definition at line 58 of file coc.frag.

Function Documentation

◆ layout() [1/2]

layout ( std140 ,
binding = 0 )

Definition at line 4 of file coc.frag.

References layout(), projection, and view.

◆ get_view_pos_from_depth()

vec3 get_view_pos_from_depth ( vec2 uv,
float depth,
mat4 invProjMatrix )

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().

◆ linearize()

float linearize ( float z)

Definition at line 30 of file coc.frag.

References linearize().

Referenced by linearize().

◆ layout() [2/2]

layout ( std430 ,
binding = 15 )

Definition at line 59 of file coc.frag.

References layout(), and MAX_MESH_NODES.

◆ main()

void main ( )

Variable Documentation

◆ vUV

in vec2 vUV

Definition at line 15 of file coc.frag.

◆ fragColor

out vec4 fragColor

Definition at line 17 of file coc.frag.

◆ gDepth

uniform sampler2D gDepth

Definition at line 19 of file coc.frag.

Referenced by main().

◆ uScene

uniform sampler2D uScene

Definition at line 20 of file coc.frag.

◆ uFocalLength

uniform float uFocalLength

Definition at line 37 of file coc.frag.

Referenced by main().

◆ uFStop

uniform float uFStop

Definition at line 38 of file coc.frag.

Referenced by main().

◆ uSensorHeight

uniform float uSensorHeight

Definition at line 39 of file coc.frag.

Referenced by main().

◆ uMaxBlurRadius

uniform float uMaxBlurRadius

Definition at line 40 of file coc.frag.

Referenced by main().