CPUParticles2D - non-interpolated global mode use global space

Changes the implementation of non-interpolated global mode particles so that the vertices are specified in proper global space instead of local space (vertices were previously back transformed by the inverse of the parent transform).
This commit is contained in:
lawnjelly 2023-08-23 12:33:33 +01:00
parent 1b4bae595e
commit bc1426dd70

View file

@ -35,7 +35,7 @@
#include "scene/2d/node_2d.h"
#include "scene/resources/texture.h"
#define GODOT_CPU_PARTICLES_2D_LEGACY_COMPATIBILITY
// #define GODOT_CPU_PARTICLES_2D_LEGACY_COMPATIBILITY
class CPUParticles2D : public Node2D {
private: