Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_materials.c
| Show First 20 Lines • Show All 925 Lines • ▼ Show 20 Lines | /* Create Material Ghash */ | ||||
| struct GPUBatch *geom = DRW_cache_fullscreen_quad_get(); | struct GPUBatch *geom = DRW_cache_fullscreen_quad_get(); | ||||
| 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; | ||||
| EEVEE_lookdev_cache_init( | EEVEE_lookdev_cache_init(vedata, sldata, &grp, psl->background_pass, wo, NULL); | ||||
| vedata, &grp, psl->background_pass, stl->g_data->background_alpha, wo, NULL); | |||||
| 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 compile_col[3] = {0.5f, 0.5f, 0.5f}; | static float compile_col[3] = {0.5f, 0.5f, 0.5f}; | ||||
| struct GPUMaterial *gpumat = EEVEE_material_world_background_get(scene, wo); | struct GPUMaterial *gpumat = EEVEE_material_world_background_get(scene, wo); | ||||
| ▲ Show 20 Lines • Show All 821 Lines • Show Last 20 Lines | |||||