Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_volumes.c
| Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | if (((ob->base_flag & BASE_FROMDUPLI) == 0) && | ||||
| SmokeModifierData *smd = (SmokeModifierData *)md; | SmokeModifierData *smd = (SmokeModifierData *)md; | ||||
| SmokeDomainSettings *sds = smd->domain; | SmokeDomainSettings *sds = smd->domain; | ||||
| if (sds == NULL) { | if (sds == NULL) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* Don't show smoke before simulation starts, this could be made an option in the future. */ | /* Don't show smoke before simulation starts, this could be made an option in the future. */ | ||||
| const bool show_smoke = ((int)DEG_get_ctime(draw_ctx->depsgraph) >= sds->point_cache[0]->startframe); | /* (sebbas): Always show smoke for manta */ | ||||
| /* const bool show_smoke = ((int)DEG_get_ctime(draw_ctx->depsgraph) >= sds->point_cache[0]->startframe); */ | |||||
| if (sds->fluid && show_smoke) { | if (sds->fluid && (sds->type == FLUID_DOMAIN_TYPE_GAS) /* && show_smoke */ ) { | ||||
| if (!sds->wt || !(sds->viewsettings & MOD_SMOKE_VIEW_SHOWBIG)) { | if (!(sds->flags & FLUID_DOMAIN_USE_NOISE)) { | ||||
| GPU_create_smoke(smd, 0); | GPU_create_smoke(smd, 0); | ||||
| } | } | ||||
| else if (sds->wt && (sds->viewsettings & MOD_SMOKE_VIEW_SHOWBIG)) { | else if (sds->flags & FLUID_DOMAIN_USE_NOISE) { | ||||
| GPU_create_smoke(smd, 1); | GPU_create_smoke(smd, 1); | ||||
| } | } | ||||
| BLI_addtail(&e_data.smoke_domains, BLI_genericNodeN(smd)); | BLI_addtail(&e_data.smoke_domains, BLI_genericNodeN(smd)); | ||||
| } | } | ||||
| if (sds->tex != NULL) { | if (sds->tex != NULL) { | ||||
| DRW_shgroup_uniform_texture_ref(grp, "sampdensity", &sds->tex); | DRW_shgroup_uniform_texture_ref(grp, "sampdensity", &sds->tex); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||