example code for multiple node outputs


can anyone put here some example code for a node with multiple outputs?

I can create the outputs on the node, but when it comes to passing the values from the shader code to the outputs I have no clue

the example specular_node.c only uses one output

outputfuncs->setValue( Value, final_color );

I can't work out from this or the sdk how to set the value of more than one


If I recall correctly.

When you create the output, store the NodeOutputID somewhere.

NodeOutputID test = ......
test->setValue( Value, final_color );

But I could be wrong.

Top Bottom