Improved blurry reflection roughness scale for faster rendering

This commit is contained in:
Maurice Raybaud 2015-02-05 21:59:04 +01:00
parent 017c9f143d
commit c44df1049e
1 changed files with 2 additions and 2 deletions

View File

@ -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