SpotLight(Light)#

base classes — bpy_struct, ID, Light

class bpy.types.SpotLight(Light)#

Directional cone Light

contact_shadow_bias#

Bias to avoid self shadowing

Type:

float in [0.001, 9999], default 0.03

contact_shadow_distance#

World space distance in which to search for screen space occluder

Type:

float in [0, 9999], default 0.2

contact_shadow_thickness#

Pixel thickness used to detect occlusion

Type:

float in [0, 9999], default 0.2

energy#

The energy this light would emit over its entire area if it wasn’t limited by the spot angle

Type:

float in [-inf, inf], default 10.0

shadow_buffer_bias#

Bias for reducing self shadowing

Type:

float in [0, inf], default 1.0

shadow_buffer_clip_start#

Shadow map clip start, below which objects will not generate shadows

Type:

float in [1e-06, inf], default 0.05

shadow_color#

Color of shadows cast by the light

Type:

mathutils.Color of 3 items in [0, inf], default (0.0, 0.0, 0.0)

shadow_filter_radius#

Blur shadow aliasing using Percentage Closer Filtering

Type:

float in [0, inf], default 1.0

shadow_jitter_overblur#

Apply shadow tracing to each jittered sample to reduce under-sampling artifacts

Type:

float in [0, 100], default 10.0

shadow_maximum_resolution#

Minimum size of a shadow map pixel. Higher values use less memory at the cost of shadow quality

Type:

float in [0, inf], default 0.001

shadow_soft_size#

Light size for ray shadow sampling (Raytraced shadows)

Type:

float in [0, inf], default 0.0

show_cone#

Display transparent cone in 3D view to visualize which objects are contained in it

Type:

boolean, default False

spot_blend#

The softness of the spotlight edge

Type:

float in [0, 1], default 0.15

spot_size#

Angle of the spotlight beam

Type:

float in [0.0174533, 3.14159], default 0.785398

use_absolute_resolution#

Limit the resolution at 1 unit from the light origin instead of relative to the shadowed pixel

Type:

boolean, default False

use_contact_shadow#

Use screen space ray-tracing to have correct shadowing near occluder, or for small features that does not appear in shadow maps

Type:

boolean, default False

use_shadow_jitter#

Enable jittered soft shadows to increase shadow precision (disabled in viewport unless enabled in the render settings). Has a high performance impact

Type:

boolean, default False

use_soft_falloff#

Apply falloff to avoid sharp edges when the light geometry intersects with other objects

Type:

boolean, default True

use_square#

Cast a square spot light shape

Type:

boolean, default False

classmethod bl_rna_get_subclass(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties#

Inherited Functions#