Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lightprobe.c
| Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | case LIGHTPROBE_TYPE_PLANAR: | ||||
| probe->distinf = 0.1f; | probe->distinf = 0.1f; | ||||
| probe->falloff = 0.5f; | probe->falloff = 0.5f; | ||||
| probe->clipsta = 0.001f; | probe->clipsta = 0.001f; | ||||
| break; | break; | ||||
| case LIGHTPROBE_TYPE_CUBE: | case LIGHTPROBE_TYPE_CUBE: | ||||
| probe->attenuation_type = LIGHTPROBE_SHAPE_ELIPSOID; | probe->attenuation_type = LIGHTPROBE_SHAPE_ELIPSOID; | ||||
| break; | break; | ||||
| default: | default: | ||||
| BLI_assert(!"LightProbe type not configured."); | BLI_assert_msg(0, "LightProbe type not configured."); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| void *BKE_lightprobe_add(Main *bmain, const char *name) | void *BKE_lightprobe_add(Main *bmain, const char *name) | ||||
| { | { | ||||
| LightProbe *probe; | LightProbe *probe; | ||||
| probe = BKE_id_new(bmain, ID_LP, name); | probe = BKE_id_new(bmain, ID_LP, name); | ||||
| return probe; | return probe; | ||||
| } | } | ||||