Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/gpencil/gpencil_cache_utils.c
| Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | bool is_masked = disable_masks_render ? false : | ||||
| (gpl->flag & GP_LAYER_USE_MASK) && | (gpl->flag & GP_LAYER_USE_MASK) && | ||||
| !BLI_listbase_is_empty(&gpl->mask_layers); | !BLI_listbase_is_empty(&gpl->mask_layers); | ||||
| float vert_col_opacity = (override_vertcol) ? | float vert_col_opacity = (override_vertcol) ? | ||||
| (is_vert_col_mode ? pd->vertex_paint_opacity : 0.0f) : | (is_vert_col_mode ? pd->vertex_paint_opacity : 0.0f) : | ||||
| pd->is_render ? gpl->vertex_paint_opacity : | pd->is_render ? gpl->vertex_paint_opacity : | ||||
| pd->vertex_paint_opacity; | pd->vertex_paint_opacity; | ||||
| /* Negate thickness sign to tag that strokes are in screen space. | /* Negate thickness sign to tag that strokes are in screen space. | ||||
| * Convert to world units (by default, 1 meter = 2000 px). */ | * Convert to world units (by default, 1 meter = 2000 pixels). */ | ||||
| float thickness_scale = (is_screenspace) ? -1.0f : (gpd->pixfactor / GPENCIL_PIXEL_FACTOR); | float thickness_scale = (is_screenspace) ? -1.0f : (gpd->pixfactor / GPENCIL_PIXEL_FACTOR); | ||||
| float layer_opacity = gpencil_layer_final_opacity_get(pd, ob, gpl); | float layer_opacity = gpencil_layer_final_opacity_get(pd, ob, gpl); | ||||
| float layer_tint[4]; | float layer_tint[4]; | ||||
| float layer_alpha; | float layer_alpha; | ||||
| gpencil_layer_final_tint_and_alpha_get(pd, gpd, gpl, gpf, layer_tint, &layer_alpha); | gpencil_layer_final_tint_and_alpha_get(pd, gpd, gpl, gpf, layer_tint, &layer_alpha); | ||||
| /* Create the new layer descriptor. */ | /* Create the new layer descriptor. */ | ||||
| GPENCIL_tLayer *tgp_layer = BLI_memblock_alloc(pd->gp_layer_pool); | GPENCIL_tLayer *tgp_layer = BLI_memblock_alloc(pd->gp_layer_pool); | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||