Point lamp is always omni

This commit is contained in:
unknown 2018-03-31 23:23:58 +02:00
parent 15bddf92b1
commit 84853afd40
3 changed files with 1 additions and 6 deletions

View file

@ -1585,7 +1585,7 @@ class ArmoryExporter:
o['lamp_size'] = objref.shadow_soft_size * 10 # Match to Cycles
gapi = arm.utils.get_gapi()
mobile_mat = rpdat.arm_material_model == 'Mobile' or rpdat.arm_material_model == 'Solid'
if objtype == 'POINT' and objref.arm_omni_shadows and not mobile_mat:
if objtype == 'POINT' and not mobile_mat:
o['fov'] = 1.5708 # 90 deg
o['shadowmap_cube'] = True
o['shadows_bias'] *= 2.0

View file

@ -291,7 +291,6 @@ def init_properties():
bpy.types.Lamp.arm_clip_end = FloatProperty(name="Clip End", default=50.0)
bpy.types.Lamp.arm_fov = FloatProperty(name="Field of View", default=0.84)
bpy.types.Lamp.arm_shadows_bias = FloatProperty(name="Bias", description="Depth offset to fight shadow acne", default=1.0)
bpy.types.Lamp.arm_omni_shadows = BoolProperty(name="Omni-Shadows", description="Draw shadows to all faces of the cube map", default=True)
bpy.types.World.arm_lamp_texture = StringProperty(name="Mask Texture", default="")
bpy.types.World.arm_lamp_ies_texture = StringProperty(name="IES Texture", default="")
bpy.types.World.arm_lamp_clouds_texture = StringProperty(name="Clouds Texture", default="")

View file

@ -156,10 +156,6 @@ class DataPropsPanel(bpy.types.Panel):
col = row.column()
col.prop(obj.data, 'arm_fov')
col.prop(obj.data, 'arm_shadows_bias')
if obj.data.type == 'POINT':
layout.prop(obj.data, 'arm_omni_shadows')
col = layout.column()
col.enabled = obj.data.arm_omni_shadows
layout.prop(wrd, 'arm_lamp_texture')
layout.prop(wrd, 'arm_lamp_ies_texture')
layout.prop(wrd, 'arm_lamp_clouds_texture')