[Material] Is there a way to do calculations based on light color?

Thanks.
I went with the matrix approach. I can manage without loops since there are only 4 items max. Still support for loops in material editor will be a nice addition (both HLSL and GLSL supports loops)