Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lamp.c
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
| void BKE_lamp_init(Lamp *la) | void BKE_lamp_init(Lamp *la) | ||||
| { | { | ||||
| BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(la, id)); | BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(la, id)); | ||||
| la->r = la->g = la->b = la->k = 1.0f; | la->r = la->g = la->b = la->k = 1.0f; | ||||
| la->energy = 10.0f; | la->energy = 10.0f; | ||||
| la->dist = 25.0f; | la->dist = 25.0f; | ||||
| la->spotsize = DEG2RADF(45.0f); | la->spotsize = DEG2RADF(45.0f); | ||||
| la->sunangle = DEG2RADF(0.526f); | |||||
| la->spotblend = 0.15f; | la->spotblend = 0.15f; | ||||
| la->att2 = 1.0f; | la->att2 = 1.0f; | ||||
| la->mode = LA_SHADOW; | la->mode = LA_SHADOW; | ||||
| la->bufsize = 512; | la->bufsize = 512; | ||||
| la->clipsta = 0.5f; | la->clipsta = 0.5f; | ||||
| la->clipend = 40.0f; | la->clipend = 40.0f; | ||||
| la->bleedexp = 2.5f; | la->bleedexp = 2.5f; | ||||
| la->samp = 3; | la->samp = 3; | ||||
| ▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines | |||||