Merge pull request #58549 from floppyhammer/fix-particle-trail

Fix particle trail glitch
This commit is contained in:
Rémi Verschelde 2022-02-28 07:17:59 +01:00 committed by GitHub
commit babac6e08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,13 @@ void main() {
txform = transpose(txform);
} else {
txform = mat4(vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0)); //zero scale, becomes invisible
// Even being inactive, its position still needs to preserved as it might be used by trails.
txform = particles.data[particle].xform;
// Set scale zero to make it invisible.
txform[0].xyz = vec3(0);
txform = transpose(txform);
}
if (params.copy_mode_2d) {