This is getting to really silly levels of OCD now - but I can't decide whether this is a minor bug or I'm just doing it wrong. And there's no docs for optimised particles yet ...
I'm convinced that the shadows are drawn on top of the particles when they come to rest on the ground:
I've searched through the base mod's Lua and couldn't find many particles that are using shadows. Mostly they are mining particles and stuff related to trees - stuff that doesn't rest on the ground for long anyway.
I'm defining the particles like this:
Code: Select all
{
name = "bronze-particle",
type = "optimized-particle",
life_time = 1800,
movement_modifier_when_on_ground = 0,
pictures = {
sheet = {
filename = DIR.particles_path.."/bronze-particle.png",
frame_count = 64,
line_length = 64,
height = 16,
width = 16,
scale = 0.5,
variation_count = 4,
}
},
shadows = {
sheet = {
filename = DIR.particles_path.."/shadow-particle.png",
frame_count = 64,
line_length = 64,
height = 16,
width = 32,
scale = 0.5,
variation_count = 4,
shift = {2/32,1/32},
tint = {a=0.5},
}
},
render_layer = "air-object",
render_layer_when_on_ground = "corpse",
},
Is it because the render_layer_when_on_ground specified is setting both the pictures and the shadow to the same layer?
Anyone have any insights? I mean it's pixel-level shiz but I like things to be right.