46 const std::optional<float> alpha_opt = object_factors_.lookup_try_as(ob_ref.object->id.name);
52 const bool draw_surface = (ob_ref.object->dt >=
OB_WIRE) &&
53 (renderable || (ob_ref.object->dt ==
OB_WIRE));
58 constexpr float flash_alpha = 0.25f;
59 const float alpha = *alpha_opt * flash_alpha;
61 ps_.push_constant(
"ucolor",
float4(flash_color_.xyz() * alpha, alpha));
64 !
state.is_image_render;
65 if (use_sculpt_pbvh) {
69 ps_.draw(batch.batch, handle);
75 ps_.draw(geom, manager.unique_handle(ob_ref));