Skip to content
Snippets Groups Projects
Commit d9faf589 authored by Maurice Raybaud's avatar Maurice Raybaud
Browse files

Added HEMI lamps to shadow and attenuation exceptions since they don't have such arguments.

parent 106b09e2
No related branches found
No related tags found
No related merge requests found
......@@ -577,10 +577,12 @@ def write_pov(filename, scene=None, info_callback=None):
file.write('\tadaptive 1\n')
file.write('\tjitter\n')
if lamp.shadow_method == 'NOSHADOW':
if lamp.type == 'HEMI':#HEMI never has any shadow attribute
file.write('\tshadowless\n')
elif lamp.shadow_method == 'NOSHADOW':
file.write('\tshadowless\n')
if lamp.type != 'SUN' and lamp.type!='AREA':#Sun shouldn't be attenuated. and area lights have no falloff attribute so they are put to type 2 attenuation a little higher above.
if lamp.type != 'SUN' and lamp.type!='AREA' and lamp.type!='HEMI':#Sun shouldn't be attenuated. Hemi and area lights have no falloff attribute so they are put to type 2 attenuation a little higher above.
file.write('\tfade_distance %.6f\n' % (lamp.distance / 5) )
if lamp.falloff_type == 'INVERSE_SQUARE':
file.write('\tfade_power %d\n' % 2) # Use blenders lamp quad equivalent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment