From c44df1049e1a664d261e1f503aba37b2e691aaf3 Mon Sep 17 00:00:00 2001 From: Maurice Raybaud <mauriceraybaud@hotmail.fr> Date: Thu, 5 Feb 2015 21:59:04 +0100 Subject: [PATCH] Improved blurry reflection roughness scale for faster rendering --- render_povray/render.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render_povray/render.py b/render_povray/render.py index 9ffa4c8b3..846edd7a2 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -980,8 +980,8 @@ def write_pov(filename, scene=None, info_callback=None): # Blurry reflections for UberPOV if using_uberpov and raytrace_mirror.gloss_factor < 1.0: #tabWrite("#ifdef(unofficial) #if(unofficial = \"patch\") #if(patch(\"upov-reflection-roughness\") > 0)\n") - tabWrite("roughness %.3g\n" % \ - (1.0/raytrace_mirror.gloss_factor)) + tabWrite("roughness %.6f\n" % \ + (0.00001/raytrace_mirror.gloss_factor)) #tabWrite("#end #end #end\n") # This and previous comment for backward compatibility, messier pov code if material.pov.mirror_use_IOR: # WORKING ? # Removed from the line below: gives a more physically correct -- GitLab