Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_paint.cc
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | void OVERLAY_paint_cache_init(OVERLAY_Data *vedata) | ||||
| } | } | ||||
| { | { | ||||
| state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL; | state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL; | ||||
| DRW_PASS_CREATE(psl->paint_overlay_ps, state | pd->clipping_state); | DRW_PASS_CREATE(psl->paint_overlay_ps, state | pd->clipping_state); | ||||
| sh = OVERLAY_shader_paint_face(); | sh = OVERLAY_shader_paint_face(); | ||||
| pd->paint_face_grp = grp = DRW_shgroup_create(sh, psl->paint_overlay_ps); | pd->paint_face_grp = grp = DRW_shgroup_create(sh, psl->paint_overlay_ps); | ||||
| const float4 color = {1.0f, 1.0f, 1.0f, 0.2f}; | const float4 color = {1.0f, 1.0f, 1.0f, 0.2f}; | ||||
| DRW_shgroup_uniform_vec4_copy(grp, "color", color); | DRW_shgroup_uniform_vec4_copy(grp, "ucolor", color); | ||||
| DRW_shgroup_state_enable(grp, DRW_STATE_BLEND_ALPHA); | DRW_shgroup_state_enable(grp, DRW_STATE_BLEND_ALPHA); | ||||
| sh = OVERLAY_shader_paint_wire(); | sh = OVERLAY_shader_paint_wire(); | ||||
| pd->paint_wire_selected_grp = grp = DRW_shgroup_create(sh, psl->paint_overlay_ps); | pd->paint_wire_selected_grp = grp = DRW_shgroup_create(sh, psl->paint_overlay_ps); | ||||
| DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | ||||
| DRW_shgroup_uniform_bool_copy(grp, "useSelect", true); | DRW_shgroup_uniform_bool_copy(grp, "useSelect", true); | ||||
| DRW_shgroup_state_enable(grp, DRW_STATE_BLEND_ALPHA); | DRW_shgroup_state_enable(grp, DRW_STATE_BLEND_ALPHA); | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||