render_povray: more transparency fixing

This commit is contained in:
Maurice Raybaud 2019-09-08 00:00:37 +02:00
parent 38b0586432
commit cc015d5889
2 changed files with 4 additions and 1 deletions

View File

@ -978,7 +978,7 @@ class RenderPovSettingsMaterial(PropertyGroup):
name="Specular Shader Model",
description="Method to use for rendering transparency",
items=(("MASK", "Mask", "Mask the background"),
("Z_TRANSPARENCY", "Z Transparency", "Use alpha buffer for transparent faces"),#TO DEPRECATE
("Z_TRANSPARENCY", "Z Transparency", "Use alpha buffer for transparent faces"),
("RAYTRACE", "Raytrace", "Use raytracing for transparent refraction rendering")),
default="MASK")

View File

@ -452,6 +452,9 @@ def write_pov(filename, scene=None, info_callback=None):
elif material.pov.mirror_use_IOR:
tabWrite("interior {\n")
tabWrite("ior %.6f\n" % material.pov_raytrace_transparency.ior)
elif material.pov.transparency_method=='Z_TRANSPARENCY':
tabWrite("interior {\n")
tabWrite("ior 1.0\n")
else:
tabWrite("interior {\n")
tabWrite("ior %.6f\n" % material.pov_raytrace_transparency.ior)