renderer: moved all shader code into one solidified function

Makes texture-based optimizations easier when they're all in one place.
This commit is contained in:
itsmattkc
2020-06-10 01:54:02 +10:00
parent 29537fea3c
commit 71ec148e76
35 changed files with 274 additions and 191 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ void NodeView::mouseMoveEvent(QMouseEvent *event)
if (param->type() == NodeParam::kInput) {
NodeInput* input = static_cast<NodeInput*>(param);
if (input->IsConnectable()) {
if (input->is_connectable()) {
if (input->data_type() & new_drop_edge->edge()->input()->data_type()) {
drop_input_ = input;
break;
+1 -1
View File
@@ -177,7 +177,7 @@ void NodeViewItem::SetNode(Node *n)
if (p->type() == NodeParam::kInput) {
NodeInput* input = static_cast<NodeInput*>(p);
if (input->IsConnectable()) {
if (input->is_connectable()) {
node_inputs_.append(input);
}
}