mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Eliminate needless pre_ var separation
This commit is contained in:
parent
9bafbda81a
commit
5111a0f05c
@ -112,22 +112,13 @@ void apply_xf{{xfid}}(float &ox, float &oy, float &color, mwc_st &rctx) {
|
||||
oy = 0;
|
||||
|
||||
{{for v in xform.vars}}
|
||||
{{if 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}}
|
||||
|
||||
{{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}}
|
||||
|
||||
float csp = {{px.get('xf.color_speed')}};
|
||||
color = color * (1.0f - csp) + {{px.get('xf.color')}} * csp;
|
||||
|
Loading…
Reference in New Issue
Block a user