|
Blender V5.3
|
Classes | |
| struct | NodeLinkVertIn |
| struct | NodeLinkVertOut |
| struct | NodeLinkFragOut |
| struct | NodeLinkSRT |
Functions | |
| void | vert (const int gl_VertexID, const int gpu_InstanceIndex, const NodeLinkSRT &srt, const NodeLinkVertIn &v_in, float4 &gl_Position, NodeLinkVertOut &interp) |
| float | get_line_alpha (float2 line_uv, float line_thickness, float center, float relative_radius) |
| void | frag (const NodeLinkVertOut &interp, NodeLinkFragOut &frag_out) |
2D Cubic Bezier thick line drawing uv.x is position along the curve, defining the tangent space. uv.y is "signed" distance (compressed to [0..1] range) from the pos in expand direction pos is the verts position in the curve tangent space
| void builtin::nodelink::frag | ( | const NodeLinkVertOut & | interp, |
| NodeLinkFragOut & | frag_out ) |
| float builtin::nodelink::get_line_alpha | ( | float2 | line_uv, |
| float | line_thickness, | ||
| float | center, | ||
| float | relative_radius ) |
Definition at line 171 of file gpu_shader_nodelink.bsl.hh.
References abs, ANTIALIAS, get_line_alpha(), smoothstep(), and float2::y.
Referenced by frag(), and get_line_alpha().
| void builtin::nodelink::vert | ( | const int | gl_VertexID, |
| const int | gpu_InstanceIndex, | ||
| const NodeLinkSRT & | srt, | ||
| const NodeLinkVertIn & | v_in, | ||
| float4 & | gl_Position, | ||
| NodeLinkVertOut & | interp ) |
Definition at line 55 of file gpu_shader_nodelink.bsl.hh.
References NodeLinkData::bezier_P0, NodeLinkData::bezier_P1, NodeLinkData::bezier_P2, NodeLinkData::bezier_P3, NodeLinkData::color_ids, NodeLinkData::dash_alpha, NodeLinkData::dash_factor, NodeLinkData::dash_length, NodeLinkData::dim_factor, distance(), NodeLinkData::do_arrow, NodeLinkData::do_muted, NodeLinkData::end_color, gpu_attr_decode_uchar4_to_uint4(), NodeLinkData::has_back_link, in, instance_index, interp(), is_zero(), mix, normalize, out, position, resource_table, NodeLinkData::start_color, NodeLinkData::thickness, vert(), vertex, vertex_id, float2::x, and float2::y.
Referenced by vert().