mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix: Mass property particle shader error
This commit is contained in:
@@ -342,7 +342,7 @@ void main() {
|
||||
mediump float attractor_attenuation = attractors[i].attenuation;
|
||||
amount = pow(amount, attractor_attenuation);
|
||||
dir = safe_normalize(mix(dir, attractors[i].transform[2].xyz, attractors[i].directionality));
|
||||
attractor_force -= amount * dir * attractors[i].strength;
|
||||
attractor_force -= mass * amount * dir * attractors[i].strength;
|
||||
}
|
||||
|
||||
float particle_size = particle_size;
|
||||
|
||||
@@ -1392,7 +1392,7 @@ MaterialStorage::MaterialStorage() {
|
||||
|
||||
actions.renames["COLOR"] = "out_color";
|
||||
actions.renames["VELOCITY"] = "out_velocity_flags.xyz";
|
||||
//actions.renames["MASS"] = "mass"; ?
|
||||
actions.renames["MASS"] = "mass";
|
||||
actions.renames["ACTIVE"] = "particle_active";
|
||||
actions.renames["RESTART"] = "restart";
|
||||
actions.renames["CUSTOM"] = "out_custom";
|
||||
|
||||
Reference in New Issue
Block a user