Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_armature.c
| Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | #define BUF_LINE(grp, format) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_LINES) | ||||
| sh = OVERLAY_shader_armature_shape_wire(); | sh = OVERLAY_shader_armature_shape_wire(); | ||||
| cb->custom_wire = grp = DRW_shgroup_create(sh, armature_ps); | cb->custom_wire = grp = DRW_shgroup_create(sh, armature_ps); | ||||
| DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | ||||
| } | } | ||||
| { | { | ||||
| format = formats->instance_extra; | format = formats->instance_extra; | ||||
| sh = OVERLAY_shader_armature_degrees_of_freedom(); | sh = OVERLAY_shader_armature_degrees_of_freedom_wire(); | ||||
| grp = DRW_shgroup_create(sh, armature_ps); | grp = DRW_shgroup_create(sh, armature_ps); | ||||
| DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | ||||
| cb->dof_lines = BUF_INSTANCE(grp, format, DRW_cache_bone_dof_lines_get()); | cb->dof_lines = BUF_INSTANCE(grp, format, DRW_cache_bone_dof_lines_get()); | ||||
| sh = OVERLAY_shader_armature_degrees_of_freedom_solid(); | |||||
| grp = DRW_shgroup_create(sh, armature_transp_ps); | grp = DRW_shgroup_create(sh, armature_transp_ps); | ||||
| DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); | ||||
| cb->dof_sphere = BUF_INSTANCE(grp, format, DRW_cache_bone_dof_sphere_get()); | cb->dof_sphere = BUF_INSTANCE(grp, format, DRW_cache_bone_dof_sphere_get()); | ||||
| } | } | ||||
| { | { | ||||
| format = formats->instance_bone_stick; | format = formats->instance_bone_stick; | ||||
| sh = OVERLAY_shader_armature_stick(); | sh = OVERLAY_shader_armature_stick(); | ||||
| ▲ Show 20 Lines • Show All 2,051 Lines • Show Last 20 Lines | |||||