Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_deferred.c
| Show First 20 Lines • Show All 740 Lines • ▼ Show 20 Lines | if (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb) { | ||||
| wpd->world_clip_planes_batch = DRW_draw_background_clipping_batch_from_rv3d(draw_ctx->rv3d); | wpd->world_clip_planes_batch = DRW_draw_background_clipping_batch_from_rv3d(draw_ctx->rv3d); | ||||
| DRW_shgroup_call(grp, wpd->world_clip_planes_batch, NULL); | DRW_shgroup_call(grp, wpd->world_clip_planes_batch, NULL); | ||||
| DRW_shgroup_uniform_vec4(grp, "color", &wpd->world_clip_planes_color[0], 1); | DRW_shgroup_uniform_vec4(grp, "color", &wpd->world_clip_planes_color[0], 1); | ||||
| } | } | ||||
| } | } | ||||
| /* Deferred Mix Pass */ | /* Deferred Mix Pass */ | ||||
| { | { | ||||
| workbench_private_data_get_light_direction(wpd, e_data.display.light_direction); | workbench_private_data_get_light_direction(e_data.display.light_direction); | ||||
| studiolight_update_light(wpd, e_data.display.light_direction); | studiolight_update_light(wpd, e_data.display.light_direction); | ||||
| if (SHADOW_ENABLED(wpd)) { | if (SHADOW_ENABLED(wpd)) { | ||||
| psl->composite_pass = DRW_pass_create( | psl->composite_pass = DRW_pass_create( | ||||
| "Composite", DRW_STATE_WRITE_COLOR | DRW_STATE_STENCIL_EQUAL | DRW_STATE_DEPTH_GREATER); | "Composite", DRW_STATE_WRITE_COLOR | DRW_STATE_STENCIL_EQUAL | DRW_STATE_DEPTH_GREATER); | ||||
| grp = DRW_shgroup_create(wpd->composite_sh, psl->composite_pass); | grp = DRW_shgroup_create(wpd->composite_sh, psl->composite_pass); | ||||
| workbench_composite_uniforms(wpd, grp); | workbench_composite_uniforms(wpd, grp); | ||||
| DRW_shgroup_stencil_mask(grp, 0x00); | DRW_shgroup_stencil_mask(grp, 0x00); | ||||
| ▲ Show 20 Lines • Show All 611 Lines • Show Last 20 Lines | |||||