Blender
V3.3
|
#include "DRW_render.h"
#include "draw_cache_impl.h"
#include "overlay_private.h"
#include "BKE_paint.h"
#include "BKE_pbvh.h"
#include "BKE_subdiv_ccg.h"
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 17 of file overlay_sculpt.c.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_float_copy(), DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_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, sh, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
void OVERLAY_sculpt_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 33 of file overlay_sculpt.c.
References BKE_sculptsession_use_pbvh_draw(), Object::data, DRW_context_state_get(), DRW_mesh_batch_cache_get_sculpt_overlays(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), GPUBatch, SculptSession::pbvh, pbvh_has_face_sets(), pbvh_has_mask(), OVERLAY_StorageList::pd, DRWContextState::rv3d, Object::sculpt, OVERLAY_PrivateData::sculpt_mask_grp, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_sculpt_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 66 of file overlay_sculpt.c.
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().