1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Revert "Fix particle trail glitch"

This commit is contained in:
Rémi Verschelde
2022-03-01 20:16:10 +01:00
committed by GitHub
parent 3f9a6011fe
commit 0036a41a10

View File

@@ -209,13 +209,7 @@ void main() {
txform = transpose(txform);
} else {
// 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);
txform = mat4(vec4(0.0), vec4(0.0), vec4(0.0), vec4(0.0)); //zero scale, becomes invisible
}
if (params.copy_mode_2d) {