I use your new point shader to draw the node's soket
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
set up VertexFormat
bind shader program
/* socket inputs, buttons */
for (sock = node->inputs.first; sock; sock = sock->next) {
if (nodeSocketIsHidden(sock))
continue;
node_socket_circle_draw(C, ntree, node, sock, NODE_SOCKSIZE, sock->flag & SELECT);
}
/* socket outputs */
for (sock = node->outputs.first; sock; sock = sock->next) {
if (nodeSocketIsHidden(sock))
continue;
node_socket_circle_draw(C, ntree, node, sock, NODE_SOCKSIZE, sock->flag & SELECT);
}unbind shader program
You'll have to pass pos into this function.
| source/blender/editors/space_node/node_draw.c | ||
|---|---|---|
| 627 | 2.0f * size Guess this is a radius --> diameter conversion | |