|
Blender V5.3
|
Classes | |
| struct | Resource |
| struct | VertOut |
| struct | VertIn |
| struct | FragOut |
Functions | |
| void | main_vert (const Resource &srt, const int inst_id, float4 &out_pos, const VertIn &v_in, VertOut &v_out) |
| void | main_frag (const Resource &srt, const VertOut &v_out, FragOut &frag_out) |
Draw the icons, leaving a semi-transparent rectangle on top of the icon.
The top-left corner of the rectangle is rounded and drawn with anti-alias. The anti-alias is done by transitioning from the outer to the inner radius of the rounded corner, and the rectangle sides.
Definition at line 82 of file gpu_shader_icon.bsl.hh.
References fragment, in, main_frag(), out, resource_table, and texture().
Referenced by main_frag().
| void builtin::icon::main_vert | ( | const Resource & | srt, |
| const int | inst_id, | ||
| float4 & | out_pos, | ||
| const VertIn & | v_in, | ||
| VertOut & | v_out ) |
Simple shader that just draw multiple icons at the specified locations does not need any vertex input (producing less call to immBegin/End)
Definition at line 38 of file gpu_shader_icon.bsl.hh.
References all(), equal, in, instance_index, main_vert(), out, position, resource_table, and vertex.
Referenced by main_vert().