diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-06 08:31:11 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-06 08:31:11 -0300 |
commit | ddadc782ba4f0c07ab2f742bae648675b527bdf5 (patch) | |
tree | 1bddd2e2e59c2e6ddb04d9fa6acd2f8aff73a900 /drivers/gles3 | |
parent | 316ba650b22d2c32502946ef64e8de8059014517 (diff) |
Fix frame selection in 2D particles, closes #10668
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/shaders/canvas.glsl | 2 |
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 |