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
+4 -4
View File
@@ -88,17 +88,17 @@ int NodeParam::index()
return parentNode()->IndexOfParameter(this);
}
bool NodeParam::IsConnected() const
bool NodeParam::is_connected() const
{
return !edges_.isEmpty();
}
bool NodeParam::IsConnectable() const
bool NodeParam::is_connectable() const
{
return connectable_;
}
void NodeParam::SetConnectable(bool connectable)
void NodeParam::set_connectable(bool connectable)
{
connectable_ = connectable;
}
@@ -117,7 +117,7 @@ void NodeParam::DisconnectAll()
NodeEdgePtr NodeParam::ConnectEdge(NodeOutput *output, NodeInput *input)
{
if (!input->IsConnectable()) {
if (!input->is_connectable()) {
return nullptr;
}