part_color ignores alpha component
Brought to you by:
zmoelnig
Using Gem 0.93.3 on Windows 7 32bit.
I noticed that when using a part_color, the 4th value (alpha component) is ignored. I looked at the code, and I think it is line 56 of part_color.cpp. When rendering, the color is not passed into the function.
Anonymous
afaict, this is a limitation of the "particle API" used by Gem.
while the
pColor()function (as used inpart_color.cpp:56) has indeed an "alpha" value, this is only a scalar, and not part of the 3D(sic! there's now 4th dimension for the alpha) space that forms a domain.Sorry, not sure I understand you. Surely if the line changed from this:
to this:
it would at least pay attention to the alpha value of color1?
Well yes.
the question is, whether this is actually useful behaviour...
e.g. using a linear domain between (1,0,0,0) and (1,1,0,1) will "interpolate" between red and yellow, but the alpha value will be fixed to 0.