Update leenkx/blender/lnx/write_data.py
This commit is contained in:
parent
db6d786ee4
commit
0979cd976f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user