Skip to content
Snippets Groups Projects
Commit a040c80b authored by Maurice Raybaud's avatar Maurice Raybaud
Browse files

Removed some lines for caustics that turned fake caustics off when photons...

Removed some lines for caustics that turned fake caustics off when photons were on, thereby changing the scene data, which is to be avoided. It seems P.O.V.ray takes care of the override all by itself so the lines were useless anyway.  
parent d9faf589
No related branches found
No related tags found
No related merge requests found
...@@ -188,14 +188,9 @@ def write_pov(filename, scene=None, info_callback=None): ...@@ -188,14 +188,9 @@ def write_pov(filename, scene=None, info_callback=None):
if material.pov_caustics_enable: if material.pov_caustics_enable:
if material.pov_fake_caustics: if material.pov_fake_caustics:
file.write('\tcaustics %.3g\n' % material.pov_fake_caustics_power) file.write('\tcaustics %.3g\n' % material.pov_fake_caustics_power)
#material.pov_photons_refraction=0
if material.pov_photons_refraction: if material.pov_photons_refraction:
material.pov_fake_caustics=0 #How to deactivate fake caustics when refr photons on?
file.write('\tdispersion %.3g\n' % material.pov_photons_dispersion) #Default of 1 means no dispersion file.write('\tdispersion %.3g\n' % material.pov_photons_dispersion) #Default of 1 means no dispersion
#TODO
#bpy.types.MATERIAL_PT_povray_caustics.Display = 1 - bpy.types.MATERIAL_PT_povray_caustics.Display
#mat = context.material
# Other interior args # Other interior args
# fade_distance 2 # fade_distance 2
# fade_power [Value] # fade_power [Value]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment