LuaRendering blend mode (currently additive?)

Place to get help with not working mods / modding interface.
Post Reply
tubs
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jan 06, 2015 7:29 pm
Contact:

LuaRendering blend mode (currently additive?)

Post 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?
bubbels (sic)

User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: LuaRendering blend mode (currently additive?)

Post 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.

Post Reply

Return to “Modding help”