|
Blender V4.3
|
#include "DRW_render.hh"#include "draw_cache_impl.hh"#include "overlay_private.hh"#include "BKE_attribute.hh"#include "BKE_mesh.hh"#include "BKE_paint.hh"#include "BKE_pbvh_api.hh"#include "BKE_subdiv_ccg.hh"#include "DEG_depsgraph_query.hh"Go to the source code of this file.
Functions | |
| void | OVERLAY_sculpt_cache_init (OVERLAY_Data *vedata) |
| void | OVERLAY_sculpt_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_sculpt_draw (OVERLAY_Data *vedata) |
| void OVERLAY_sculpt_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 22 of file overlay_sculpt.cc.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_float_copy(), DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::overlay, OVERLAY_shader_sculpt_mask(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PrivateData::sculpt_mask_grp, OVERLAY_PassList::sculpt_mask_ps, View3DOverlay::sculpt_mode_face_sets_opacity, View3DOverlay::sculpt_mode_mask_opacity, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_sculpt_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 38 of file overlay_sculpt.cc.
References Geometry::attributes, BKE_sculptsession_use_pbvh_draw(), BLI_assert_unreachable, bm, SculptSession::bm, blender::bke::pbvh::BMesh, CD_PROP_FLOAT, CustomData_has_layer_named(), Object::data, DEG_get_original_id(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), blender::bke::pbvh::Grids, Object::id, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), OVERLAY_StorageList::pd, BMesh::pdata, DRWContextState::rv3d, Object::sculpt, OVERLAY_PrivateData::sculpt_mask_grp, OVERLAY_Data::stl, SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::type(), and BMesh::vdata.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_sculpt_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 104 of file overlay_sculpt.cc.
References DefaultFramebufferList::default_fb, DRW_draw_pass(), DRW_state_is_fbo(), DRW_viewport_framebuffer_list_get(), GPU_framebuffer_bind(), OVERLAY_PrivateData::in_front, DefaultFramebufferList::in_front_fb, OVERLAY_PrivateData::painting, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_PassList::sculpt_mask_ps, and OVERLAY_Data::stl.
Referenced by OVERLAY_draw_scene().