Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/gpencil/gpencil_engine.c
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | void GPENCIL_cache_init(void *ved) | ||||
| GPENCIL_PassList *psl = vedata->psl; | GPENCIL_PassList *psl = vedata->psl; | ||||
| GPENCIL_TextureList *txl = vedata->txl; | GPENCIL_TextureList *txl = vedata->txl; | ||||
| GPENCIL_FramebufferList *fbl = vedata->fbl; | GPENCIL_FramebufferList *fbl = vedata->fbl; | ||||
| GPENCIL_PrivateData *pd = vedata->stl->pd; | GPENCIL_PrivateData *pd = vedata->stl->pd; | ||||
| DRWShadingGroup *grp; | DRWShadingGroup *grp; | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| pd->cfra = (int)DEG_get_ctime(draw_ctx->depsgraph); | pd->cfra = (int)DEG_get_ctime(draw_ctx->depsgraph); | ||||
| pd->simplify_antialias = GPENCIL_SIMPLIFY_AA(draw_ctx->scene); | if (pd->is_render) { | ||||
| pd->anti_aliasing_mode = GPENCIL_AA_MODE_TAA; | |||||
| } | |||||
| else { | |||||
| if (GPENCIL_SIMPLIFY_AA(draw_ctx->scene)) { | |||||
| pd->anti_aliasing_mode = GPENCIL_AA_MODE_SIMPLIFIED; | |||||
| } | |||||
| else { | |||||
| pd->anti_aliasing_mode = GPENCIL_AA_MODE_SMAA; | |||||
| } | |||||
| } | |||||
| pd->use_layer_fb = false; | pd->use_layer_fb = false; | ||||
| pd->use_object_fb = false; | pd->use_object_fb = false; | ||||
| pd->use_mask_fb = false; | pd->use_mask_fb = false; | ||||
| /* Always use high precision for render. */ | /* Always use high precision for render. */ | ||||
| pd->use_signed_fb = !pd->is_viewport; | pd->use_signed_fb = !pd->is_viewport; | ||||
| if (draw_ctx->v3d) { | if (draw_ctx->v3d) { | ||||
| const bool hide_overlay = ((draw_ctx->v3d->flag2 & V3D_HIDE_OVERLAYS) != 0); | const bool hide_overlay = ((draw_ctx->v3d->flag2 & V3D_HIDE_OVERLAYS) != 0); | ||||
| ▲ Show 20 Lines • Show All 792 Lines • Show Last 20 Lines | |||||