Update leenkx/blender/lnx/write_data.py

This commit is contained in:
LeenkxTeam 2025-04-11 22:20:24 +00:00
parent db6d786ee4
commit 0979cd976f

View File

@ -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