summaryrefslogtreecommitdiffstats
path: root/scene/2d/canvas_item.cpp
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-11-13 18:19:16 +0100
committerJFonS <joan.fonssanchez@gmail.com>2018-11-13 23:25:05 +0100
commitcbfb7bd613a697503fe046428b0fd0fc08829926 (patch)
tree7172e1b4a10c07d254bc83eda66e0e6fe30a0b27 /scene/2d/canvas_item.cpp
parent7f347cc31a121a059e881d4df52add49642dcca3 (diff)
downloadredot-engine-cbfb7bd613a697503fe046428b0fd0fc08829926.tar.gz
Make 2D particles work OOTB (again)
Diffstat (limited to 'scene/2d/canvas_item.cpp')
-rw-r--r--scene/2d/canvas_item.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp
index 7c734d6af5..26ad3d0cdd 100644
--- a/scene/2d/canvas_item.cpp
+++ b/scene/2d/canvas_item.cpp
@@ -123,8 +123,6 @@ void CanvasItemMaterial::_update_shader() {
code += "\tfloat h_frames = float(particles_anim_h_frames);\n";
code += "\tfloat v_frames = float(particles_anim_v_frames);\n";
- code += "\tVERTEX.xy /= TEXTURE_PIXEL_SIZE * vec2(h_frames, v_frames);\n";
-
code += "\tint total_frames = particles_anim_h_frames * particles_anim_v_frames;\n";
code += "\tint frame = int(float(total_frames) * INSTANCE_CUSTOM.z);\n";
code += "\tif (particles_anim_loop) {\n";