diff options
-rw-r--r-- | render_povray/__init__.py | 2 | ||||
-rw-r--r-- | render_povray/render.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py index 678fc499..7eb3d92e 100644 --- a/render_povray/__init__.py +++ b/render_povray/__init__.py @@ -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") diff --git a/render_povray/render.py b/render_povray/render.py index e9f3d457..06ccfe73 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -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) |