mirror of
https://github.com/godotengine/godot.git
synced 2025-01-16 23:12:08 +00:00
Fix frame selection in 2D particles, closes #10668
This commit is contained in:
parent
316ba650b2
commit
ddadc782ba
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user