Fix frame selection in 2D particles, closes #10668

This commit is contained in:
Juan Linietsky 2017-09-06 08:31:11 -03:00
parent 316ba650b2
commit ddadc782ba

View file

@ -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