forked from LeenkxTeam/LNXSDK
		
	Update leenkx/blender/lnx/write_data.py
This commit is contained in:
		| @ -490,7 +490,10 @@ class Main { | ||||
|             public static inline var voxelgiVoxelSize = """ + str(round(rpdat.lnx_voxelgi_size * 100) / 100) + """;""") | ||||
|  | ||||
|         if rpdat.rp_bloom: | ||||
|             f.write(f"public static var bloomRadius = {bpy.context.scene.eevee.bloom_radius if rpdat.lnx_bloom_follow_blender else rpdat.lnx_bloom_radius};") | ||||
|             if bpy.app.version <= (4, 2, 4): | ||||
|                 f.write(f"public static var bloomRadius = {bpy.context.scene.eevee.bloom_radius if rpdat.lnx_bloom_follow_blender else rpdat.lnx_bloom_radius};") | ||||
|             else: | ||||
|                 f.write(f"public static var bloomRadius = {rpdat.lnx_bloom_radius};") | ||||
|  | ||||
|         if rpdat.lnx_rp_resolution == 'Custom': | ||||
|             f.write(""" | ||||
| @ -664,10 +667,14 @@ const float ssgiStrength = """ + str(round(rpdat.lnx_ssgi_strength * 100) / 100) | ||||
|         if rpdat.rp_bloom: | ||||
|             follow_blender = rpdat.lnx_bloom_follow_blender | ||||
|             eevee_settings = bpy.context.scene.eevee | ||||
|  | ||||
|             threshold = eevee_settings.bloom_threshold if follow_blender else rpdat.lnx_bloom_threshold | ||||
|             strength = eevee_settings.bloom_intensity if follow_blender else rpdat.lnx_bloom_strength | ||||
|             knee = eevee_settings.bloom_knee if follow_blender else rpdat.lnx_bloom_knee | ||||
|             if bpy.app.version <= (4, 2, 4): | ||||
|                 threshold = eevee_settings.bloom_threshold if follow_blender else rpdat.lnx_bloom_threshold | ||||
|                 strength = eevee_settings.bloom_intensity if follow_blender else rpdat.lnx_bloom_strength | ||||
|                 knee = eevee_settings.bloom_knee if follow_blender else rpdat.lnx_bloom_knee | ||||
|             else: | ||||
|                 threshold = rpdat.lnx_bloom_threshold | ||||
|                 strength = rpdat.lnx_bloom_strength | ||||
|                 knee = rpdat.lnx_bloom_knee | ||||
|  | ||||
|             f.write( | ||||
| """const float bloomThreshold = """ + str(round(threshold * 100) / 100) + """; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user