|
Blender V5.3
|
Classes | |
| struct | Line |
| struct | TexelData |
| struct | Resources |
| struct | FragOut |
Functions | |
| TexelData | furthest_texel (TexelData center, TexelData neighbors[4], bool do_background_fetch) |
| void | center_kernel (TexelData &target, const TexelData background, float kernel_size, bool do_smooth_lines) |
| void | neighbor_kernel (TexelData &target, TexelData neighbor, TexelData background, float kernel_size, bool do_smooth_lines) |
| void | vert_main (const int &vert_id, float4 &vert) |
| void | frag_main (const float4 &frag_coord, Resources &srt, const Uniform &uni, FragOut &frag) |
Variables | |
| PipelineGraphic | pipeline (vert_main, frag_main) |
Overlay anti-aliasing:
Single sample per pixel screen-space AA pass for wires and wireframe overlays, refer to overlay_antialiasing.hh for a breakdown. This can be toggled in Settings > Viewport > Smooth Wires > Overlay.
| void overlay::antialiasing::center_kernel | ( | TexelData & | target, |
| const TexelData | background, | ||
| float | kernel_size, | ||
| bool | do_smooth_lines ) |
Compute the center pixel's line coverage, and blend it over the current background.
Definition at line 142 of file overlay_antialiasing.bsl.hh.
References center_kernel(), overlay::antialiasing::TexelData::color, overlay::antialiasing::Line::coverage(), overlay::antialiasing::Line::is_valid(), overlay::antialiasing::TexelData::line, and mix.
Referenced by center_kernel(), and frag_main().
| void overlay::antialiasing::frag_main | ( | const float4 & | frag_coord, |
| Resources & | srt, | ||
| const Uniform & | uni, | ||
| FragOut & | frag ) |
Definition at line 206 of file overlay_antialiasing.bsl.hh.
References center_kernel(), clamp(), overlay::antialiasing::TexelData::color, overlay::antialiasing::Line::dist, overlay::antialiasing::Line::dist_raw, dot(), frag_coord, frag_main(), fragment, furthest_texel(), overlay::antialiasing::Line::is_valid(), overlay::antialiasing::TexelData::line, mix, neighbor_kernel(), out, resource_table, and step.
Referenced by frag_main().
| TexelData overlay::antialiasing::furthest_texel | ( | TexelData | center, |
| TexelData | neighbors[4], | ||
| bool | do_background_fetch ) |
Return the furthest non-line texel in the neighboring crosshair, or the center if there is none.
Definition at line 124 of file overlay_antialiasing.bsl.hh.
References overlay::antialiasing::TexelData::depth, furthest_texel(), unroll, and overlay::antialiasing::TexelData::zero().
Referenced by frag_main(), and furthest_texel().
| void overlay::antialiasing::neighbor_kernel | ( | TexelData & | target, |
| TexelData | neighbor, | ||
| TexelData | background, | ||
| float | kernel_size, | ||
| bool | do_smooth_lines ) |
Compute a neighbor pixel's line coverage, and alpha-over/alpha-under blend it with current center. The target pixel tracks the closest depth of center/neighbor.
Definition at line 159 of file overlay_antialiasing.bsl.hh.
References overlay::antialiasing::TexelData::color, overlay::antialiasing::Line::coverage(), overlay::antialiasing::TexelData::depth, overlay::antialiasing::Line::is_valid(), overlay::antialiasing::TexelData::line, mix, and neighbor_kernel().
Referenced by frag_main(), and neighbor_kernel().
| void overlay::antialiasing::vert_main | ( | const int & | vert_id, |
| float4 & | vert ) |
Definition at line 197 of file overlay_antialiasing.bsl.hh.
References fullscreen_vertex(), position, vert_main(), vertex, and vertex_id.
Referenced by vert_main().
| PipelineGraphic overlay::antialiasing::pipeline(vert_main, frag_main) | ( | vert_main | , |
| frag_main | ) |