diff options
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/render.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index a92aafb8..2d58b0f1 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1697,15 +1697,16 @@ def write_pov(filename, scene=None, info_callback=None): if not world.use_sky_blend: # Non fully transparent background could premultiply alpha and avoid anti-aliasing # display issue: - if render.alpha_mode == 'PREMUL': + if render.alpha_mode == 'TRANSPARENT': tabWrite("background {rgbt<%.3g, %.3g, %.3g, 0.75>}\n" % \ (world.horizon_color[:])) #Currently using no alpha with Sky option: elif render.alpha_mode == 'SKY': tabWrite("background {rgbt<%.3g, %.3g, %.3g, 0>}\n" % (world.horizon_color[:])) #StraightAlpha: - else: - tabWrite("background {rgbt<%.3g, %.3g, %.3g, 1>}\n" % (world.horizon_color[:])) + # XXX Does not exists anymore + #else: + #tabWrite("background {rgbt<%.3g, %.3g, %.3g, 1>}\n" % (world.horizon_color[:])) worldTexCount = 0 #For Background image textures @@ -1776,10 +1777,11 @@ def write_pov(filename, scene=None, info_callback=None): # for skysphere..5.5 tabWrite("gradient y\n") tabWrite("color_map {\n") - if render.alpha_mode == 'STRAIGHT': - tabWrite("[0.0 rgbt<%.3g, %.3g, %.3g, 1>]\n" % (world.horizon_color[:])) - tabWrite("[1.0 rgbt<%.3g, %.3g, %.3g, 1>]\n" % (world.zenith_color[:])) - elif render.alpha_mode == 'PREMUL': + # XXX Does not exists anymore + #if render.alpha_mode == 'STRAIGHT': + #tabWrite("[0.0 rgbt<%.3g, %.3g, %.3g, 1>]\n" % (world.horizon_color[:])) + #tabWrite("[1.0 rgbt<%.3g, %.3g, %.3g, 1>]\n" % (world.zenith_color[:])) + elif render.alpha_mode == 'TRANSPARENT': tabWrite("[0.0 rgbt<%.3g, %.3g, %.3g, 0.99>]\n" % (world.horizon_color[:])) # aa premult not solved with transmit 1 tabWrite("[1.0 rgbt<%.3g, %.3g, %.3g, 0.99>]\n" % (world.zenith_color[:])) |