Fix subemitted particles not taking parent velocity into account

Co-authored-by: Patrick Exner (FlameLizard) <patrick.exner1@web.de>
This commit is contained in:
Qbieshay
2026-04-01 11:08:48 +02:00
parent 4a919adccf
commit b84b20ae96
@@ -1000,6 +1000,8 @@ void ParticleProcessMaterial::_update_shader() {
code += " }\n";
}
}
code += " } else {\n";
code += " USERDATA1.xyz = VELOCITY.xyz;\n";
code += " }\n\n";
code += " process_display_param(params, 0.0);\n\n";
code += " USERDATA1.xyz = (EMISSION_TRANSFORM * vec4(USERDATA1.xyz, 0.0)).xyz;\n";