forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import glob
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
@ -623,7 +624,8 @@ def write_compiledglsl(defs, make_variants):
|
||||
rpdat = lnx.utils.get_rp()
|
||||
wrd = bpy.data.worlds['Lnx']
|
||||
shadowmap_size = lnx.utils.get_cascade_size(rpdat) if rpdat.rp_shadows else 0
|
||||
with open(lnx.utils.build_dir() + '/compiled/Shaders/compiled.inc', 'w') as f:
|
||||
inc_path = lnx.utils.build_dir() + '/compiled/Shaders/compiled.inc'
|
||||
with io.StringIO() as f:
|
||||
f.write(
|
||||
"""#ifndef _COMPILED_GLSL_
|
||||
#define _COMPILED_GLSL_
|
||||
@ -883,6 +885,7 @@ const float clusterNear = 3.0;
|
||||
|
||||
f.write("""#endif // _COMPILED_GLSL_
|
||||
""")
|
||||
return lnx.utils.write_if_changed(inc_path, f.getvalue())
|
||||
|
||||
def write_traithx(class_path):
|
||||
wrd = bpy.data.worlds['Lnx']
|
||||
|
||||
Reference in New Issue
Block a user