|
Blender V5.3
|
Classes | |
| struct | Parameters |
| struct | ParametersInstancing |
| struct | Resources |
| struct | VertOut |
| struct | FragOut |
Enumerations | |
| enum | SocketDisplayShape : int { SOCK_DISPLAY_SHAPE_CIRCLE = 0 , SOCK_DISPLAY_SHAPE_SQUARE = 1 , SOCK_DISPLAY_SHAPE_DIAMOND = 2 , SOCK_DISPLAY_SHAPE_CIRCLE_DOT = 3 , SOCK_DISPLAY_SHAPE_SQUARE_DOT = 4 , SOCK_DISPLAY_SHAPE_DIAMOND_DOT = 5 , SOCK_DISPLAY_SHAPE_LINE = 6 , SOCK_DISPLAY_SHAPE_VOLUME_GRID = 7 , SOCK_DISPLAY_SHAPE_LIST = 8 } |
Functions | |
| void | main_vert (const Resources &srt, const Parameters ¶ms, const ParametersInstancing ¶ms_inst, const int vert_id, const int inst_id, float4 &out_pos, VertOut &v_out) |
| float | square_sdf (float2 absCo, float2 half_size) |
| float2 | rotate_45 (float2 co) |
| float2 | calculate_thresholds (float aa_size, float threshold) |
| void | main_frag (const VertOut &v_out, FragOut &frag_out) |
Variables | |
| static constexpr int | MAX_SOCKET_PARAMETERS = 4 |
| static constexpr int | MAX_SOCKET_INSTANCE = 32 |
| enum builtin::socket::SocketDisplayShape : int |
Definition at line 131 of file gpu_shader_node_socket.bsl.hh.
Definition at line 163 of file gpu_shader_node_socket.bsl.hh.
References abs, and calculate_thresholds().
Referenced by calculate_thresholds(), and main_frag().
Definition at line 171 of file gpu_shader_node_socket.bsl.hh.
References abs, calculate_thresholds(), distance_squared(), dot(), fragment, in, M_PI, M_SQRT1_2, main_frag(), max, mix, out, rotate_45(), smoothstep(), SOCK_DISPLAY_SHAPE_CIRCLE, SOCK_DISPLAY_SHAPE_CIRCLE_DOT, SOCK_DISPLAY_SHAPE_DIAMOND, SOCK_DISPLAY_SHAPE_DIAMOND_DOT, SOCK_DISPLAY_SHAPE_LINE, SOCK_DISPLAY_SHAPE_LIST, SOCK_DISPLAY_SHAPE_SQUARE, SOCK_DISPLAY_SHAPE_SQUARE_DOT, SOCK_DISPLAY_SHAPE_VOLUME_GRID, sqrt, square_sdf(), and float2::y.
Referenced by main_frag().
| void builtin::socket::main_vert | ( | const Resources & | srt, |
| const Parameters & | params, | ||
| const ParametersInstancing & | params_inst, | ||
| const int | vert_id, | ||
| const int | inst_id, | ||
| float4 & | out_pos, | ||
| VertOut & | v_out ) |
Definition at line 45 of file gpu_shader_node_socket.bsl.hh.
References condition, instance_id, main_vert(), MAX_SOCKET_PARAMETERS, min, out, position, resource_table, static_branch, vertex, vertex_id, float2::x, float4::x, and float2::y.
Referenced by main_vert().
Definition at line 157 of file gpu_shader_node_socket.bsl.hh.
References from_rotation(), M_PI, and rotate_45().
Referenced by main_frag(), and rotate_45().
Definition at line 144 of file gpu_shader_node_socket.bsl.hh.
References dot(), max, min, square_sdf(), float2::x, and float2::y.
Referenced by main_frag(), and square_sdf().
|
staticconstexpr |
Definition at line 14 of file gpu_shader_node_socket.bsl.hh.
|
staticconstexpr |
Definition at line 13 of file gpu_shader_node_socket.bsl.hh.
Referenced by main_vert().