mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 19:50:04 -05:00
A few trivial syntax corrections in the vars
This commit is contained in:
parent
8d237d62b0
commit
78835085e8
@ -102,7 +102,7 @@ var(12, 'ex', """
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
var(13, 'julia', """
|
var(13, 'julia', """
|
||||||
float a = 0.5f * atan2f(tx, ty)
|
float a = 0.5f * atan2f(tx, ty);
|
||||||
if (mwc_next(rctx) & 1) a += M_PI;
|
if (mwc_next(rctx) & 1) a += M_PI;
|
||||||
float r = w * sqrtf(tx*tx + ty*ty);
|
float r = w * sqrtf(tx*tx + ty*ty);
|
||||||
ox += r * cosf(a);
|
ox += r * cosf(a);
|
||||||
@ -299,7 +299,7 @@ var(34, 'blur', """
|
|||||||
|
|
||||||
var(35, 'gaussian', """
|
var(35, 'gaussian', """
|
||||||
float ang = mwc_next_01(rctx) * 2.0f * M_PI;
|
float ang = mwc_next_01(rctx) * 2.0f * M_PI;
|
||||||
float r = weight * ( mwc_next_01(rctx) + mwc_next_01(rctx)
|
float r = w * ( mwc_next_01(rctx) + mwc_next_01(rctx)
|
||||||
+ mwc_next_01(rctx) + mwc_next_01(rctx) - 2.0f );
|
+ mwc_next_01(rctx) + mwc_next_01(rctx) - 2.0f );
|
||||||
ox += r * cosf(ang);
|
ox += r * cosf(ang);
|
||||||
oy += r * sinf(ang);
|
oy += r * sinf(ang);
|
||||||
@ -342,7 +342,7 @@ var(38, 'ngon', """
|
|||||||
|
|
||||||
ox += w * tx * amp;
|
ox += w * tx * amp;
|
||||||
oy += w * ty * amp;
|
oy += w * ty * amp;
|
||||||
"""}
|
""")
|
||||||
|
|
||||||
var(39, 'curl', """
|
var(39, 'curl', """
|
||||||
float c1 = {{px.get('xf.curl_c1')}};
|
float c1 = {{px.get('xf.curl_c1')}};
|
||||||
|
Loading…
Reference in New Issue
Block a user