diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-09-20 01:47:16 +0400 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2011-09-20 01:47:16 +0400 |
commit | 8bcdc221d9214474d55d884c12b43f9b3d6d315f (patch) | |
tree | 797b2608c816c6508df52e19dff1b7c33c8368a7 /render_povray | |
parent | 1d1482044b46c98f86c33945a1bd1cf4edc7bb36 (diff) |
rectangular area lights had wrong coordinates (probably achievable with proper matrix but swapping and negating axis seems ok for now)
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/render.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 24e333d6..6d2a4746 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -629,8 +629,8 @@ def write_pov(filename, scene=None, info_callback=None): size_y = lamp.size_y samples_y = lamp.shadow_ray_samples_y - tabWrite("area_light <%.6f,0,0>,<0,0,%.6f> %d, %d\n" % \ - (size_x, size_y, samples_x, samples_y)) + tabWrite("area_light <%.6f,0,0>,<0,%.6f,0> %d, %d\n" % \ + (size_x, -size_y, samples_x, samples_y)) if lamp.shadow_ray_sample_method == 'CONSTANT_JITTERED': if lamp.jitter: tabWrite("jitter\n") @@ -651,7 +651,7 @@ def write_pov(filename, scene=None, info_callback=None): tabWrite("fade_power %d\n" % 2) # Use blenders lamp quad equivalent elif lamp.falloff_type == 'INVERSE_LINEAR': tabWrite("fade_power %d\n" % 1) # Use blenders lamp linear - # upposing using no fade power keyword would default to constant, no attenuation. + # supposing using no fade power keyword would default to constant, no attenuation. elif lamp.falloff_type == 'CONSTANT': pass # Using Custom curve for fade power 3 for now. |