Page 1 of 1

LuaRendering blend mode (currently additive?)

Posted: Sat May 02, 2020 2:53 pm
by tubs
LuaRendering.draw_circle appears to ignore color.alpha and blends using additive mode, so overlapping circles end up saturating.

Is there a way to change blend mode / force use of alpha?

Re: LuaRendering blend mode (currently additive?)

Posted: Fri May 08, 2020 6:27 am
by moon69
Does this help?
Friday Facts #172 - Blending and Rendering

I was reminded recently that in general Factorio expects a premultiplied alpha colour - there is a pre-mult function in core/lualib/util.lua I often use.