Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-05 23:59:04 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2015-02-18 20:59:54 +0300
commitc44df1049e1a664d261e1f503aba37b2e691aaf3 (patch)
tree013f2abe86eba6ca8e03f36f0ce03e2b190d4b9b
parent017c9f143d13294bbace5ef2e8159e9d96325dad (diff)
Improved blurry reflection roughness scale for faster rendering
-rw-r--r--render_povray/render.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/render_povray/render.py b/render_povray/render.py
index 9ffa4c8b..846edd7a 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