Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Frag::Dof_coc Class Reference

Dof coc fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform vec2 projParams
 Projection depth-related coefficients.
 
uniform float focusDist
 Distance to the focal plane (in view space).
 
uniform float focusScale
 Inverse width of the in-focus region.
 
out vec3 downscaledColor
 Scene color.
 
out vec2 cocDepth
 Circle of confusion and depth.
 

Detailed Description

Dof coc fragment shader.

See also
GPUShaders::Common::Utils, GPUShaders::Common::Samplers

Member Function Documentation

◆ main()

void GPUShaders::Frag::Dof_coc::main ( )
inline

Compute view-space depth and a circle of confusion radius, for depth of field.


The documentation for this class was generated from the following file: