The previous code only handled the RGBA socket case. For vectors, we simply use the average of the 3 compoments. This is done using a temp Vector Math node using the dot operation.
35 KiB
35 KiB