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

Improved input precision for chromatic dispersion for more accurate caustics

parent 49cb3894
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,7 @@ def register(): ...@@ -320,7 +320,7 @@ def register():
Mat.pov_photons_dispersion = FloatProperty( Mat.pov_photons_dispersion = FloatProperty(
name="chromatic dispersion", name="chromatic dispersion",
description="Light passing through will be separated according to wavelength. This ratio of refractive indices for violet to red controls how much the colors are spread out 1 = no dispersion, good values are 1.01 to 1.1", description="Light passing through will be separated according to wavelength. This ratio of refractive indices for violet to red controls how much the colors are spread out 1 = no dispersion, good values are 1.01 to 1.1",
min=1.00, max=10.0, soft_min=1.00, soft_max=1.10, default=1.00) min=1.0000, max=10.000, soft_min=1.0000, soft_max=1.1000, precision=4, default=1.0000)
Mat.pov_photons_reflection = BoolProperty( Mat.pov_photons_reflection = BoolProperty(
name="Reflective Photon Caustics", name="Reflective Photon Caustics",
......
...@@ -291,7 +291,7 @@ def write_pov(filename, scene=None, info_callback=None): ...@@ -291,7 +291,7 @@ def write_pov(filename, scene=None, info_callback=None):
if pov_fake_caustics: if pov_fake_caustics:
tabWrite("caustics %.3g\n" % material.pov_fake_caustics_power) tabWrite("caustics %.3g\n" % material.pov_fake_caustics_power)
if pov_photons_refraction: if pov_photons_refraction:
tabWrite("dispersion %.3g\n" % material.pov_photons_dispersion) # Default of 1 means no dispersion tabWrite("dispersion %.6f\n" % material.pov_photons_dispersion) # Default of 1 means no dispersion
#TODO #TODO
# Other interior args # Other interior args
if material.use_transparency and material.transparency_method == 'RAYTRACE': if material.use_transparency and material.transparency_method == 'RAYTRACE':
......
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