render_povray: more transparency fixing
This commit is contained in:
parent
38b0586432
commit
cc015d5889
|
@ -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")
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue