SunLamp(Lamp)

base classes — bpy_struct, ID, Lamp

class bpy.types.SunLamp(Lamp)

Constant direction parallel ray lamp

shadow_adaptive_threshold

Threshold for Adaptive Sampling (Raytraced shadows)

Type :float in [0, 1], default 0.0
shadow_color

Color of shadows cast by the lamp

Type :float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)
shadow_method

Method to compute lamp shadow with

Type :enum in [‘NOSHADOW’, ‘RAY_SHADOW’], default ‘NOSHADOW’
shadow_ray_sample_method

Method for generating shadow samples: Adaptive QMC is fastest, Constant QMC is less noisy but slower

Type :enum in [‘ADAPTIVE_QMC’, ‘CONSTANT_QMC’], default ‘ADAPTIVE_QMC’
shadow_ray_samples

Amount of samples taken extra (samples x samples)

Type :int in [1, 64], default 0
shadow_soft_size

Light size for ray shadow sampling (Raytraced shadows)

Type :float in [-inf, inf], default 0.0
sky

Sky related settings for sun lamps

Type :LampSkySettings, (readonly, never None)
use_only_shadow

Causes light to cast shadows only without illuminating objects

Type :boolean, default False
use_shadow_layer

Causes only objects on the same layer to cast shadows

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

SubsurfModifier(Modifier)

Next topic

SurfaceCurve(Curve)