If struggling with the documentation. Is there an actual example of using multiple outputs in a custom material expression node? eg.
out.a = 12;
out.b = 14;
out.c = 45;
return out;
thanks!
If struggling with the documentation. Is there an actual example of using multiple outputs in a custom material expression node? eg.
out.a = 12;
out.b = 14;
out.c = 45;
return out;
thanks!
Hi, It’s pretty straight forward - the name you assign in the “Additional Outputs” is the variable name - so if your output variable is called “mycolor” - use it with “mycolor=0.0;”
thanks!
this worked:
// these are custom output pins
out_uv_base = uv_base;
out_uv_up = uv_up;
out_uv_right = uv_right;
out_uv_up_right = uv_up_right;
//still requires base output
return 0;