diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2016-09-11 22:41:08 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2016-09-11 22:41:08 +0300 |
commit | 8ffc527b58f5be988879b2d566803111aa846d2d (patch) | |
tree | 61c37807e571c1ca216c5d59108a589ddeda2efe | |
parent | 68f8f2189753c518f9764a97912cdda9b0f850e2 (diff) |
texture Normal_factor divided further
-rw-r--r-- | render_povray/shading.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/render_povray/shading.py b/render_povray/shading.py index 9f38b60e..9ced6000 100644 --- a/render_povray/shading.py +++ b/render_povray/shading.py @@ -761,7 +761,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, t_spec = t if t.use_map_normal: texturesNorm = image_filename - # colvalue = t.normal_factor # UNUSED + # colvalue = t.normal_factor/10 # UNUSED #textNormName=t.texture.image.name + ".normal" #was the above used? --MR t_nor = t @@ -814,7 +814,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, t_spec = t if t.use_map_normal: texturesNorm = image_filename - # colvalue = t.normal_factor # UNUSED + # colvalue = t.normal_factor/10 # UNUSED #textNormName=t.texture.image.name + ".normal" #was the above used? --MR t_nor = t @@ -982,12 +982,12 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, mappingNor =imgMapTransforms(t_nor) if texturesNorm and texturesNorm.startswith("PAT_"): - tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor, mappingNor)) + tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor/10, mappingNor)) else: tabWrite("normal {uv_mapping bump_map " \ "{%s \"%s\" %s bump_size %.4g }%s}\n" % \ (imageFormat(texturesNorm), texturesNorm, imgMap(t_nor), - t_nor.normal_factor, mappingNor)) + t_nor.normal_factor/10, mappingNor)) if texturesSpec != "": tabWrite("]\n") ##################Second index for mapping specular max value############### @@ -1093,11 +1093,11 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, mappingNor =imgMapTransforms(t_nor) if texturesNorm and texturesNorm.startswith("PAT_"): - tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor, mappingNor)) + tabWrite("normal{function{f%s(x,y,z).grey} bump_size %.4g %s}\n" %(texturesNorm, t_nor.normal_factor/10, mappingNor)) else: tabWrite("normal {uv_mapping bump_map {%s \"%s\" %s bump_size %.4g }%s}\n" % \ (imageFormat(texturesNorm), texturesNorm, imgMap(t_nor), - t_nor.normal_factor, mappingNor)) + t_nor.normal_factor/10, mappingNor)) if texturesSpec != "" and mater.pov.replacement_text == "": tabWrite("]\n") @@ -1161,7 +1161,7 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, if image_filename: if t.use_map_normal: texturesNorm = image_filename - # colvalue = t.normal_factor # UNUSED + # colvalue = t.normal_factor/10 # UNUSED #textNormName=t.texture.image.name + ".normal" #was the above used? --MR t_nor = t @@ -1169,13 +1169,13 @@ def writeTextureInfluence(mater, materialNames, LocalMaterialNames, path_image, tabWrite("normal{function" \ "{f%s(x,y,z).grey} bump_size %.4g}\n" % \ (texturesNorm, - t_nor.normal_factor)) + t_nor.normal_factor/10)) else: tabWrite("normal {uv_mapping bump_map " \ "{%s \"%s\" %s bump_size %.4g }%s}\n" % \ (imageFormat(texturesNorm), texturesNorm, imgMap(t_nor), - t_nor.normal_factor, + t_nor.normal_factor/10, mappingNor)) tabWrite("}\n") # THEN IT CAN CLOSE LAST LAYER OF TEXTURE |