[2.1.16] CircuitConnectorSprites rendering

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.1.16] CircuitConnectorSprites rendering

Post by hgschmie »

First thank you for adding this to 2.1.15! For the first time, I am able to draw the connectors for my miniloaders correctly by moving the connectors to the right layer!

However, it seems that the shadows don't move with them.
Screenshot 2026-08-25 at 13.52.03.png
Screenshot 2026-08-25 at 13.52.03.png (383.38 KiB) Viewed 167 times

Code: Select all

local inserter_connector_definitions = circuit_connector_definitions.create_vector(
    universal_connector_template,
    {
        { variation = 0, main_offset = util.by_pixel(5, -3),  shadow_offset = util.by_pixel(9, 1),  show_shadow = true, render_layer = 'higher-object-under', },
        { variation = 6, main_offset = util.by_pixel(0, -2),  shadow_offset = util.by_pixel(4, 3),  show_shadow = true, render_layer = 'higher-object-under', },
        { variation = 4, main_offset = util.by_pixel(-4, -5), shadow_offset = util.by_pixel(0, -1), show_shadow = true, render_layer = 'higher-object-under , },
        { variation = 2, main_offset = util.by_pixel(1, -10), shadow_offset = util.by_pixel(5, -6), show_shadow = true, render_layer = 'higher-object-under', },
    }
)
How can I bring the shadows to the same layer as the connectors? Or does that require another setting (shadow_render_layer = ...) ?
Post Reply

Return to “Modding interface requests”