diff options
author | QbieShay <cislaghi.ilaria@gmail.com> | 2021-03-05 11:33:25 +0100 |
---|---|---|
committer | QbieShay <cislaghi.ilaria@gmail.com> | 2021-03-05 11:37:00 +0100 |
commit | f1bb54d5e5b5c37b977d945e1427e29aa756818f (patch) | |
tree | c84b3b0d07817ceda76bd969e92c5636a993c518 | |
parent | bd9799e9f0a9a9c7d0dd22d5f3f520f450520caf (diff) |
fixed particle rotate y flag
-rw-r--r-- | scene/resources/particles_material.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/particles_material.cpp b/scene/resources/particles_material.cpp index 167540eb77..5eb9398c54 100644 --- a/scene/resources/particles_material.cpp +++ b/scene/resources/particles_material.cpp @@ -601,7 +601,7 @@ void ParticlesMaterial::_update_shader() { } // turn particle by rotation in Y if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) { - code += " TRANSFORM = TRANSFORM * mat4(vec4(cos(CUSTOM.x), 0.0, -sin(CUSTOM.x), 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(sin(CUSTOM.x), 0.0, cos(CUSTOM.x), 0.0), vec4(0.0, 0.0, 0.0, 1.0));\n"; + code += " TRANSFORM = mat4(vec4(cos(CUSTOM.x), 0.0, -sin(CUSTOM.x), 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(sin(CUSTOM.x), 0.0, cos(CUSTOM.x), 0.0), vec4(0.0, 0.0, 0.0, 1.0));\n"; } } //scale by scale |