old style roughness without paranthesis v07x v071
authorJens Verwiebe
Wed Sep 29 19:33:53 2010 +0200 (19 months ago)
branchv07x
changeset 602f93faf8189c1
parent 601 558972497721
child 603 9ab55a2f5155
old style roughness without paranthesis
LuxBlend_0.1.py
     1.1 --- a/LuxBlend_0.1.py	Wed Sep 29 19:11:11 2010 +0200
     1.2 +++ b/LuxBlend_0.1.py	Wed Sep 29 19:33:53 2010 +0200
     1.3 @@ -7279,7 +7279,7 @@
     1.4              if mat.spec > 0.0: makeGlossy(mirror0name, math.sqrt(2.0/(mat.hard+2.0)))
     1.5              else: makeMatte(mirror0name)
     1.6      if alpha < 1.0:
     1.7 -        if mat.glossTra < 0.97: makeRoughglass(alpha0name, (1.0-mat.glossTra)**2)
     1.8 +        if mat.glossTra < 0.97: makeRoughglass(alpha0name, 1.0-mat.glossTra**2)
     1.9          else: makeGlass(alpha0name)
    1.10  
    1.11  def convertAllMaterials():