[Bf-extensions-cvs] [c44df10] master: Improved blurry reflection roughness scale for faster rendering

Maurice Raybaud noreply at git.blender.org
Wed Feb 18 19:01:19 CET 2015


Commit: c44df1049e1a664d261e1f503aba37b2e691aaf3
Author: Maurice Raybaud
Date:   Thu Feb 5 21:59:04 2015 +0100
Branches: master
https://developer.blender.org/rBAc44df1049e1a664d261e1f503aba37b2e691aaf3

Improved blurry reflection roughness scale for faster rendering

===================================================================

M	render_povray/render.py

===================================================================

diff --git a/render_povray/render.py b/render_povray/render.py
index 9ffa4c8..846edd7 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



More information about the Bf-extensions-cvs mailing list