mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
added support for pre_blur. all variations that start with 'pre_' will be applied to the
output of the affine transform before the other variation contributions are calculated.
This commit is contained in:
parent
c66cb463d4
commit
746185ce4d
@ -31,16 +31,28 @@ __shared__ iter_info info;
|
|||||||
__device__
|
__device__
|
||||||
void apply_xf{{xfid}}(float *ix, float *iy, float *icolor, mwc_st *rctx) {
|
void apply_xf{{xfid}}(float *ix, float *iy, float *icolor, mwc_st *rctx) {
|
||||||
float tx, ty, ox = *ix, oy = *iy;
|
float tx, ty, ox = *ix, oy = *iy;
|
||||||
|
|
||||||
{{apply_affine_flam3('ox', 'oy', 'tx', 'ty', px, 'xf.c', 'pre')}}
|
{{apply_affine_flam3('ox', 'oy', 'tx', 'ty', px, 'xf.c', 'pre')}}
|
||||||
|
|
||||||
ox = 0;
|
ox = 0;
|
||||||
oy = 0;
|
oy = 0;
|
||||||
|
|
||||||
{{for v in xform.vars}}
|
{{for v in xform.vars}}
|
||||||
|
{{if variations.var_nos[v].startswith('pre_')}}
|
||||||
if (1) {
|
if (1) {
|
||||||
float w = {{px.get('xf.var[%d]' % v)}};
|
float w = {{px.get('xf.var[%d]' % v)}};
|
||||||
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
|
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
|
||||||
}
|
}
|
||||||
|
{{endif}}
|
||||||
|
{{endfor}}
|
||||||
|
|
||||||
|
{{for v in xform.vars}}
|
||||||
|
{{if not variations.var_nos[v].startswith('pre_')}}
|
||||||
|
if (1) {
|
||||||
|
float w = {{px.get('xf.var[%d]' % v)}};
|
||||||
|
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
|
||||||
|
}
|
||||||
|
{{endif}}
|
||||||
{{endfor}}
|
{{endfor}}
|
||||||
|
|
||||||
*ix = ox;
|
*ix = ox;
|
||||||
|
Loading…
Reference in New Issue
Block a user