|
Blender V5.3
|
Classes | |
| struct | DepthOfField |
| struct | Prepare |
| struct | PrepareOut |
| struct | DownSample |
| struct | DownSampleOut |
| struct | Blur1 |
| struct | Blur1Out |
| struct | Blur2 |
| struct | Blur2Out |
| struct | Resolve |
| struct | ResolveOut |
Variables | |
| static constexpr int | dof_sample_count = 49 |
Separable Hexagonal Bokeh Blur by Colin Barré-Brisebois https://colinbarrebrisebois.com/2017/04/18/hexagonal-bokeh-blur-revisited-part-1-basic-3-pass-version/ Converted and adapted from HLSL to GLSL by Clément Foucault
| void workbench::dof::blur1 | ( | DepthOfField & | dof, |
| Blur1 & | srt, | ||
| Blur1Out & | out, | ||
| const float4 | frag_co ) |
Definition at line 222 of file workbench_fx_dof.bsl.hh.
References abs, blur1(), clamp(), dof_decode_coc(), dof_decode_signed_coc(), dof_sample_count, frag_coord, fragment, log2, min, noise(), out, resource_table, smoothstep(), texelFetch(), texture(), textureLod(), and textureSize().
Referenced by blur1().
Definition at line 332 of file workbench_fx_dof.bsl.hh.
References blur2(), clamp(), dof_decode_coc(), frag_coord, fragment, mnmx3(), mnmx4(), mnmx5(), mnmx6(), out, resource_table, texture(), textureSize(), and unroll.
Referenced by blur2().
Definition at line 32 of file workbench_fx_dof.bsl.hh.
References dof_decode_coc(), max, MAX_COC_SIZE, float2::x, and float2::y.
Referenced by blur1(), blur2(), and dof_decode_coc().
Definition at line 36 of file workbench_fx_dof.bsl.hh.
References dof_decode_signed_coc(), MAX_COC_SIZE, float2::x, and float2::y.
Referenced by blur1(), and dof_decode_signed_coc().
Definition at line 28 of file workbench_fx_dof.bsl.hh.
References dof_encode_coc(), and MAX_COC_SIZE.
Referenced by dof_encode_coc(), downsample(), and prepare().
| void workbench::dof::downsample | ( | DownSample & | srt, |
| DownSampleOut & | out, | ||
| const float4 | frag_co ) |
Definition at line 153 of file workbench_fx_dof.bsl.hh.
References abs, any(), clamp(), dof_encode_coc(), downsample(), frag_coord, fragment, MAX_COC_SIZE, notEqual, out, reduce_max(), resource_table, step, sum_weighted(), textureLod(), textureSize(), and w().
Referenced by downsample().
Definition at line 289 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mn3(), and s2().
Definition at line 301 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mnmx3(), mx3(), and s2().
Definition at line 307 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mnmx4(), and s2().
Definition at line 315 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mn3(), mnmx5(), mx3(), and s2().
| void workbench::dof::mnmx6 | ( | float4 & | a, |
| float4 & | b, | ||
| float4 & | c, | ||
| float4 & | d, | ||
| float4 & | e, | ||
| float4 & | f ) |
Definition at line 323 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mn3(), mnmx6(), mx3(), and s2().
Definition at line 295 of file workbench_fx_dof.bsl.hh.
References b, force_inline, mx3(), and s2().
| void workbench::dof::prepare | ( | DepthOfField & | dof, |
| Prepare & | srt, | ||
| draw::View & | views, | ||
| PrepareOut & | out, | ||
| const float4 | frag_co ) |
Definition at line 92 of file workbench_fx_dof.bsl.hh.
References abs, any(), clamp(), ViewMatrices::depth_screen_to_view(), dof_encode_coc(), frag_coord, fragment, max, notEqual, out, prepare(), reduce_max(), resource_table, step, sum_weighted(), texelFetch(), float4::w, w(), float4::x, float4::y, and float4::z.
Referenced by prepare().
| void workbench::dof::resolve | ( | DepthOfField & | dof, |
| Resolve & | srt, | ||
| draw::View & | views, | ||
| ResolveOut & | out, | ||
| const float4 | frag_co ) |
Definition at line 380 of file workbench_fx_dof.bsl.hh.
References abs, ViewMatrices::depth_screen_to_view(), frag_coord, fragment, out, resolve(), resource_table, smoothstep(), texelFetch(), texture(), and textureSize().
Referenced by resolve().
| float4 workbench::dof::sum_weighted | ( | float4 | val0, |
| float4 | val1, | ||
| float4 | val2, | ||
| float4 | val3, | ||
| float4 | weights ) |
Definition at line 41 of file workbench_fx_dof.bsl.hh.
References safe_rcp(), and sum_weighted().
Referenced by downsample(), prepare(), and sum_weighted().
| void workbench::dof::vert | ( | const int | vert_id, |
| float4 & | position ) |
Definition at line 21 of file workbench_fx_dof.bsl.hh.
References fullscreen_vertex(), position, vert(), and vertex_id.
Referenced by vert().
|
staticconstexpr |
--------------— STEP 2 ---------------— Blur vertically and diagonally. Outputs vertical blur and combined blur in MRT
Definition at line 198 of file workbench_fx_dof.bsl.hh.
Referenced by blur1().