|
@@ -41,13 +41,15 @@ class Combine extends ShaderNode {
|
|
|
}
|
|
|
|
|
|
override public function computeOutputs() {
|
|
|
- numberOutputs = 1;
|
|
|
+ numberOutputs = 0;
|
|
|
if (a != null && !a.isEmpty()) {
|
|
|
numberOutputs = 4;
|
|
|
} else if (b != null && !b.isEmpty()) {
|
|
|
numberOutputs = 3;
|
|
|
} else if (g != null && !g.isEmpty()) {
|
|
|
numberOutputs = 2;
|
|
|
+ } else if (r != null && !r.isEmpty()) {
|
|
|
+ numberOutputs = 1;
|
|
|
}
|
|
|
if (numberOutputs == 1) {
|
|
|
addOutput("output", TFloat);
|