From 0036a41a102204e97d36d50dd4dcd3a5af1ded2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 1 Mar 2022 20:16:10 +0100 Subject: [PATCH] Revert "Fix particle trail glitch" --- servers/rendering/renderer_rd/shaders/particles_copy.glsl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/servers/rendering/renderer_rd/shaders/particles_copy.glsl b/servers/rendering/renderer_rd/shaders/particles_copy.glsl index 1cd8174e9d4..afbd5a9caa2 100644 --- a/servers/rendering/renderer_rd/shaders/particles_copy.glsl +++ b/servers/rendering/renderer_rd/shaders/particles_copy.glsl @@ -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) {