Fractal Softworks Forum

Starsector => Bug Reports & Support => Topic started by: Avan on March 17, 2012, 02:52:52 PM

Title: Darker core color over-ridden by lighter fringe color even at 255 alpha
Post by: Avan on March 17, 2012, 02:52:52 PM
This is regarding beam projectiles btw.

At an alpha of 255, a darker core color should over-ride the fringe color, resulting in a dark center with a lighter area around it, as opposed to just a flat light area color.

ie, core [0,0,0,255] and fringe [0,0,255,150] comes out looking solid dark blue, not dark blue with a black center
Title: Re: Darker core color over-ridden by lighter fringe color even at 255 alpha
Post by: Alex on March 17, 2012, 03:08:10 PM
The core and the fringe are additively blended to get the glow effect - not a bug.
Title: Re: Darker core color over-ridden by lighter fringe color even at 255 alpha
Post by: Avan on March 17, 2012, 03:11:01 PM
So it always additively blends things? even against the background? Then what's the point of the alpha channel then?
Title: Re: Darker core color over-ridden by lighter fringe color even at 255 alpha
Post by: Alex on March 17, 2012, 05:48:46 PM
The rgb values are multiplied by the alpha. Think of it as a "brightness" setting for this use case, not transparency.