Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_lightprobes.c
| Show First 20 Lines • Show All 331 Lines • ▼ Show 20 Lines | pinfo->do_cube_update = false; | ||||
| DRWShadingGroup *grp = NULL; | DRWShadingGroup *grp = NULL; | ||||
| Scene *scene = draw_ctx->scene; | Scene *scene = draw_ctx->scene; | ||||
| World *wo = scene->world; | World *wo = scene->world; | ||||
| const float *col = G_draw.block.colorBackground; | const float *col = G_draw.block.colorBackground; | ||||
| /* LookDev */ | /* LookDev */ | ||||
| EEVEE_lookdev_cache_init(vedata, &grp, psl->probe_background, 1.0f, wo, pinfo); | EEVEE_lookdev_cache_init(vedata, sldata, &grp, psl->probe_background, wo, pinfo); | ||||
| /* END */ | /* END */ | ||||
| if (!grp && wo) { | if (!grp && wo) { | ||||
| col = &wo->horr; | col = &wo->horr; | ||||
| if (wo->use_nodes && wo->nodetree) { | if (wo->use_nodes && wo->nodetree) { | ||||
| static float error_col[3] = {1.0f, 0.0f, 1.0f}; | static float error_col[3] = {1.0f, 0.0f, 1.0f}; | ||||
| static float queue_col[3] = {0.5f, 0.5f, 0.5f}; | static float queue_col[3] = {0.5f, 0.5f, 0.5f}; | ||||
| struct GPUMaterial *gpumat = EEVEE_material_world_lightprobe_get(scene, wo); | struct GPUMaterial *gpumat = EEVEE_material_world_lightprobe_get(scene, wo); | ||||
| ▲ Show 20 Lines • Show All 974 Lines • Show Last 20 Lines | |||||