mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
fixed pie variation.
This commit is contained in:
parent
e83e67b440
commit
e05d43fc57
@ -327,7 +327,7 @@ var(37, 'pie', """
|
|||||||
float slices = {{px.get('xf.pie_slices')}};
|
float slices = {{px.get('xf.pie_slices')}};
|
||||||
float sl = truncf(mwc_next_01(rctx) * slices + 0.5f);
|
float sl = truncf(mwc_next_01(rctx) * slices + 0.5f);
|
||||||
float a = {{px.get('xf.pie_rotation')}} +
|
float a = {{px.get('xf.pie_rotation')}} +
|
||||||
2.0f * M_PI * (sl + mwc_next_01(rctx) + {{px.get('xf.pie_thickness')}}) / slices;
|
2.0f * M_PI * (sl + mwc_next_01(rctx) * {{px.get('xf.pie_thickness')}}) / slices;
|
||||||
float r = w * mwc_next_01(rctx);
|
float r = w * mwc_next_01(rctx);
|
||||||
ox += r * cosf(a);
|
ox += r * cosf(a);
|
||||||
oy += r * sinf(a);
|
oy += r * sinf(a);
|
||||||
|
Loading…
Reference in New Issue
Block a user