LookDev: Use black background color if world is not present

This commit is contained in:
Clément Foucault 2018-09-18 16:05:10 +02:00
parent 32e6d5cd6f
commit 5aa3e33565
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ void EEVEE_lookdev_cache_init(
if (world) {
DRW_shgroup_uniform_vec3(*grp, "color", &world->horr, 1);
} else {
static float col[4] = {0.0f};
DRW_shgroup_uniform_vec3(*grp, "color", col, 1);
}
DRW_shgroup_uniform_float(*grp, "backgroundAlpha", &stl->g_data->background_alpha, 1);
DRW_shgroup_call_add(*grp, geom, NULL);