Update leenkx/blender/lnx/write_data.py

This commit is contained in:
LeenkxTeam 2025-04-07 21:19:28 +00:00
parent 8765e894f5
commit c3435b9533

View File

@ -677,6 +677,12 @@ const float waterDensity = """ + str(round(rpdat.lnx_water_density * 100) / 100)
const float waterRefract = """ + str(round(rpdat.lnx_water_refract * 100) / 100) + """;
const float waterReflect = """ + str(round(rpdat.lnx_water_reflect * 100) / 100) + """;
""")
if '_CDitheringStrength' in defs:
f.write(
f'const float ditherStrengthValue = {rpdat.lnx_dithering_strength};\n'
)
if rpdat.rp_ssgi == 'SSAO' or rpdat.rp_ssgi == 'RTAO' or rpdat.rp_volumetriclight:
f.write(
"""const float ssaoRadius = """ + str(round(rpdat.lnx_ssgi_radius * 100) / 100) + """;