summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-09-06 08:31:11 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-09-06 08:31:11 -0300
commitddadc782ba4f0c07ab2f742bae648675b527bdf5 (patch)
tree1bddd2e2e59c2e6ddb04d9fa6acd2f8aff73a900 /drivers/gles3
parent316ba650b22d2c32502946ef64e8de8059014517 (diff)
Fix frame selection in 2D particles, closes #10668
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/canvas.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl
index df75191b5f..bf8eaf601d 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