mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 18:00:55 -05:00 
			
		
		
		
	Eliminate needless pre_ var separation
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user