Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_armature.cc
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | if (pd->armature.do_pose_fade_geom) { | ||||
| DRW_PASS_CREATE(psl->armature_bone_select_ps, state | pd->clipping_state); | DRW_PASS_CREATE(psl->armature_bone_select_ps, state | pd->clipping_state); | ||||
| float alpha = pd->overlay.xray_alpha_bone; | float alpha = pd->overlay.xray_alpha_bone; | ||||
| struct GPUShader *sh = OVERLAY_shader_uniform_color(); | struct GPUShader *sh = OVERLAY_shader_uniform_color(); | ||||
| DRWShadingGroup *grp; | DRWShadingGroup *grp; | ||||
| pd->armature_bone_select_act_grp = grp = DRW_shgroup_create(sh, psl->armature_bone_select_ps); | pd->armature_bone_select_act_grp = grp = DRW_shgroup_create(sh, psl->armature_bone_select_ps); | ||||
| float4 color = {0.0f, 0.0f, 0.0f, alpha}; | float4 color = {0.0f, 0.0f, 0.0f, alpha}; | ||||
| DRW_shgroup_uniform_vec4_copy(grp, "color", color); | DRW_shgroup_uniform_vec4_copy(grp, "ucolor", color); | ||||
| pd->armature_bone_select_grp = grp = DRW_shgroup_create(sh, psl->armature_bone_select_ps); | pd->armature_bone_select_grp = grp = DRW_shgroup_create(sh, psl->armature_bone_select_ps); | ||||
| color = {0.0f, 0.0f, 0.0f, powf(alpha, 4)}; | color = {0.0f, 0.0f, 0.0f, powf(alpha, 4)}; | ||||
| DRW_shgroup_uniform_vec4_copy(grp, "color", color); | DRW_shgroup_uniform_vec4_copy(grp, "ucolor", color); | ||||
| } | } | ||||
| for (int i = 0; i < 2; i++) { | for (int i = 0; i < 2; i++) { | ||||
| struct GPUShader *sh; | struct GPUShader *sh; | ||||
| struct GPUVertFormat *format; | struct GPUVertFormat *format; | ||||
| DRWShadingGroup *grp = nullptr; | DRWShadingGroup *grp = nullptr; | ||||
| OVERLAY_InstanceFormats *formats = OVERLAY_shader_instance_formats_get(); | OVERLAY_InstanceFormats *formats = OVERLAY_shader_instance_formats_get(); | ||||
| ▲ Show 20 Lines • Show All 2,491 Lines • Show Last 20 Lines | |||||