Object Occlusion Culling

This commit is contained in:
2026-10-15 02:41:03 -07:00
parent 3273054766
commit 612a3d0a09
33 changed files with 3629 additions and 84 deletions

View File

@ -190,6 +190,9 @@ def build():
rpdat = lnx.utils.get_rp()
project_path = lnx.utils.get_fp()
if rpdat.lnx_frustum_culling:
assets.add_khafile_def('lnx_frustum_culling')
if rpdat.rp_driver != 'Leenkx' and lnx.api.drivers[rpdat.rp_driver]['make_rpath'] != None:
lnx.api.drivers[rpdat.rp_driver]['make_rpath']()
return
@ -210,6 +213,9 @@ def build():
if rpdat.rp_hdr:
assets.add_khafile_def('rp_hdr')
if rpdat.lnx_occlusion_culling:
assets.add_khafile_def('lnx_occlusion_culling')
assets.add_khafile_def('rp_renderer={0}'.format(rpdat.rp_renderer))
if rpdat.rp_depthprepass:
assets.add_khafile_def('rp_depthprepass')