Update leenkx/blender/lnx/write_data.py
This commit is contained in:
		@ -627,6 +627,11 @@ def write_compiledglsl(defs, make_variants):
 | 
			
		||||
            idx_emission = 2
 | 
			
		||||
            idx_refraction = 2
 | 
			
		||||
            
 | 
			
		||||
            if '_gbuffer2' in wrd.world_defs:
 | 
			
		||||
                f.write('#define GBUF_IDX_2 2\n')
 | 
			
		||||
                idx_emission += 1
 | 
			
		||||
                idx_refraction += 1
 | 
			
		||||
 | 
			
		||||
            if '_EmissionShaded' in wrd.world_defs:
 | 
			
		||||
                f.write(f'#define GBUF_IDX_EMISSION {idx_emission}\n')
 | 
			
		||||
                idx_refraction += 1
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user