Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_volumes.c
| Show First 20 Lines • Show All 495 Lines • ▼ Show 20 Lines | #endif | ||||
| return true; | return true; | ||||
| } | } | ||||
| void EEVEE_volumes_cache_object_add(EEVEE_ViewLayerData *sldata, | void EEVEE_volumes_cache_object_add(EEVEE_ViewLayerData *sldata, | ||||
| EEVEE_Data *vedata, | EEVEE_Data *vedata, | ||||
| Scene *scene, | Scene *scene, | ||||
| Object *ob) | Object *ob) | ||||
| { | { | ||||
| Material *ma = BKE_object_material_get(ob, 1); | Material *ma = BKE_object_material_get_eval(ob, 1); | ||||
| if (ma == NULL) { | if (ma == NULL) { | ||||
| if (ob->type == OB_VOLUME) { | if (ob->type == OB_VOLUME) { | ||||
| ma = BKE_material_default_volume(); | ma = BKE_material_default_volume(); | ||||
| } | } | ||||
| else { | else { | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines | |||||