From ddadc782ba4f0c07ab2f742bae648675b527bdf5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 6 Sep 2017 08:31:11 -0300 Subject: [PATCH] Fix frame selection in 2D particles, closes #10668 --- drivers/gles3/shaders/canvas.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl index df75191b5fb..bf8eaf601df 100644 --- a/drivers/gles3/shaders/canvas.glsl +++ b/drivers/gles3/shaders/canvas.glsl @@ -139,7 +139,7 @@ void main() { float frame_w = 1.0/float(h_frames); float frame_h = 1.0/float(v_frames); uv_interp.x = uv_interp.x * frame_w + frame_w * float(frame % h_frames); - uv_interp.y = uv_interp.y * frame_h + frame_h * float(frame / v_frames); + uv_interp.y = uv_interp.y * frame_h + frame_h * float(frame / h_frames); #endif