|
Rendu
A lightweight rendering engine for experimentations
|
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. | |
Dof coc fragment shader.
|
inline |
Compute view-space depth and a circle of confusion radius, for depth of field.