Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Darker core color over-ridden by lighter fringe color even at 255 alpha  (Read 2048 times)

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums

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

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile

The core and the fringe are additively blended to get the glow effect - not a bug.
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums

So it always additively blends things? even against the background? Then what's the point of the alpha channel then?

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile

The rgb values are multiplied by the alpha. Think of it as a "brightness" setting for this use case, not transparency.
Logged