37 if (eln.obindex == obindex) {
49 if (elist[i].edge_identifier == edge_identifier) {
62 double view_vector[3];
63 double light_vector[3];
64 bool side_1_facing_light =
false;
65 bool side_2_facing_light =
false;
66 bool side_1_facing_camera =
false;
73 double dot_light_1 =
dot_v3v3_db(light_vector,
e->t1->gn);
74 side_1_facing_light = (dot_light_1 > 0);
76 double dot_light_2 =
dot_v3v3_db(light_vector,
e->t2->gn);
77 side_2_facing_light = (dot_light_2 > 0);
80 side_2_facing_light = !side_1_facing_light;
90 side_1_facing_camera = (dot_view_1 > 0);
92 if ((side_1_facing_camera && (!side_1_facing_light) && side_2_facing_light) ||
93 ((!side_1_facing_camera) && side_1_facing_light && (!side_2_facing_light)))
104 double la1 = es.
ratio;
106 la1 = la1 *
e->v2->fbcoord[3] /
107 (
e->v1->fbcoord[3] - la1 * (
e->v1->fbcoord[3] -
e->v2->fbcoord[3]));
108 la2 = la2 *
e->v2->fbcoord[3] /
109 (
e->v1->fbcoord[3] - la2 * (
e->v1->fbcoord[3] -
e->v2->fbcoord[3]));
122 ListBaseT<LineartElementLinkNode> *shadow_elns)
133 eln_isect_shadow = &eln;
139 eln_isect_original = &eln;
143 if (!eln_isect_shadow || !eln_isect_original) {
149 for (
int i = 0; i < eln_isect_original->
element_count; i++) {
189 double real_at = ((at_2 - at_1) == 0) ? 0 : ((ratio - at_1) / (at_2 - at_1));
190 double ga_div = (fb_co_2[3] * (1.0f - real_at) + fb_co_1[3] * real_at);
196 ga = fb_co_1[3] * real_at / ga_div;
199 r_fb_co[3] =
interpd(fb_co_2[3], fb_co_1[3], ga);
239 double *r_new_in_the_middle,
240 double *r_new_in_the_middle_global,
246 int z_index = is_persp ? 3 : 2;
249 if (s2_fb_co_1[z_index] == s2_fb_co_2[z_index]) {
254 if (s1_fb_co_1[z_index] >= s2_fb_co_1[z_index]) {
259 if (s1_fb_co_2[z_index] >= s2_fb_co_2[z_index]) {
265 if (s1_fb_co_1[z_index] <= s2_fb_co_1[z_index]) {
270 if (s1_fb_co_2[z_index] <= s2_fb_co_2[z_index]) {
285 *use_new_ref =
false;
292 double dl = s1_fb_co_1[z_index] - s2_fb_co_1[z_index];
293 double dr = s1_fb_co_2[z_index] - s2_fb_co_2[z_index];
294 double ga =
ratiod(dl, dr, 0);
295 double ga_div = s2_fb_co_1[3] * (1.0f - ga) + s2_fb_co_2[3] * ga;
301 *r_new_at = is_persp ? s2_fb_co_2[3] * ga / ga_div : ga;
304 r_new_in_the_middle[3] =
interpd(s2_fb_co_2[3], s2_fb_co_1[3], ga);
314 bool transform_edge_cuts,
315 bool do_light_contour)
318#define DISCARD_NONSENSE_SEGMENTS \
319 if (es.occlusion != 0 || \
320 (es.next && LRT_DOUBLE_CLOSE_ENOUGH(es.ratio, ((LineartEdgeSegment *)es.next)->ratio))) \
322 LRT_ITER_ALL_LINES_NEXT; \
327 int segment_count = 0;
329 if (do_light_contour) {
337 if (!(
e->flags & accept_types)) {
348 double *view_vector = vv;
349 double dot_1 = 0, dot_2 = 0;
361 if ((
result = dot_1 * dot_2) <= 0 && (dot_1 + dot_2)) {
395 double next_at = es.
next ? (es.
next)->ratio : 1.0f;
401 double ga1 =
e->v1->fbcoord[3] * es.
ratio /
402 (es.
ratio *
e->v1->fbcoord[3] + (1 - es.
ratio) *
e->v2->fbcoord[3]);
403 double ga2 =
e->v1->fbcoord[3] * next_at /
404 (next_at *
e->v1->fbcoord[3] + (1 - next_at) *
e->v2->fbcoord[3]);
411 sedge[i].fbc1[3] = 1e30;
412 sedge[i].fbc2[3] = 1e30;
413 sedge[i].fbc1[2] = 1e30;
414 sedge[i].fbc2[2] = 1e30;
419 sseg[i * 2].
ratio = 0.0f;
420 sseg[i * 2 + 1].
ratio = 1.0f;
421 BLI_addtail(&sedge[i].shadow_segments, &sseg[i * 2]);
422 BLI_addtail(&sedge[i].shadow_segments, &sseg[i * 2 + 1]);
425 sedge[i].e_ref =
reinterpret_cast<LineartEdge *
>(
e->t1);
426 sedge[i].e_ref_light_contour =
e;
435 sedge[i].es_ref = &es;
446 if (transform_edge_cuts) {
451 (es.
ratio *
e->v1->fbcoord[3] + (1 - es.
ratio) *
e->v2->fbcoord[3]);
457 if (
G.debug_value == 4000) {
458 printf(
"Shadow: Added %d raw shadow_edges\n", segment_count);
517 e->shadow_segments.first()),
518 *cut_end_before =
e->shadow_segments.last();
531 if (start != start) [[unlikely]] {
534 if (end != end) [[unlikely]] {
549 cut_start_after = &seg;
550 new_seg_1 = cut_start_after;
553 if (seg.
next ==
nullptr) {
557 if (i_seg->
ratio > start + 1
e-09 && start > seg.
ratio) {
558 cut_start_after = &seg;
566 for (seg = cut_start_after->
next; seg; seg = seg->
next) {
570 cut_end_before = seg;
571 new_seg_2 = cut_end_before;
577 cut_end_before = seg;
578 new_seg_2 = cut_end_before;
583 if (seg->
ratio > end) {
584 cut_end_before = seg;
591 if (new_seg_1 ==
nullptr) {
594 if (new_seg_2 ==
nullptr) {
596 new_seg_2 = new_seg_1;
597 cut_end_before = new_seg_2;
606 new_seg_1->
ratio = start;
608 new_seg_2->ratio = end;
611 double r_fb_co_1[4] = {0}, r_fb_co_2[4] = {0}, r_gloc_1[3] = {0}, r_gloc_2[3] = {0};
612 double r_new_in_the_middle[4], r_new_in_the_middle_global[3], r_new_at;
613 double *s1_fb_co_1, *s1_fb_co_2, *s1_gloc_1, *s1_gloc_2;
616 double t_g1[3], t_g2[3], t_fbc1[4], t_fbc2[4], m_g1[3], m_fbc1[4], m_g2[3], m_fbc2[4];
617 bool is_side_2r, has_middle =
false, use_new_ref;
623 for (seg = cut_start_after; seg != cut_end_before; seg = nes) {
626 s1_fb_co_1 = seg->
fbc2;
627 s1_fb_co_2 = nes->
fbc1;
635 if (seg == cut_start_after) {
649 if (cut_start_after != new_seg_1) {
655 if (nes == cut_end_before) {
669 if (cut_end_before != new_seg_2) {
674 seg_2->flag = seg->
flag;
680 start_fb_co, end_fb_co, start_gloc, end_gloc, seg_2->ratio, start, end, t_fbc2, t_g2);
696 r_new_in_the_middle_global,
702 ss_middle->
ratio =
interpf(seg_2->ratio, seg_1->ratio, r_new_at);
705 ss_middle->
target_reference = (use_new_ref ? (target_reference) : seg_1->target_reference);
721 seg_1->target_reference = is_side_2r ? seg->
target_reference : target_reference;
726 seg_1->target_reference = use_new_ref ? target_reference : seg->
target_reference;
743 bool *r_facing_light)
745 double *LFBC = sedge->
fbc1, *RFBC = sedge->
fbc2, *FBC0 = tri->
v[0]->
fbcoord,
751 if ((std::max({FBC0[0], FBC1[0], FBC2[0]}) < std::min(LFBC[0], RFBC[0])) ||
752 (std::min({FBC0[0], FBC1[0], FBC2[0]}) > std::max(LFBC[0], RFBC[0])) ||
753 (std::max({FBC0[1], FBC1[1], FBC2[1]}) < std::min(LFBC[1], RFBC[1])) ||
754 (std::min({FBC0[1], FBC1[1], FBC2[1]}) > std::max(LFBC[1], RFBC[1])))
802 double *v1 = (trie[0] == 0 ? FBC0 : (trie[0] == 1 ? FBC1 : FBC2));
803 double *
v2 = (trie[0] == 0 ? FBC1 : (trie[0] == 1 ? FBC2 : FBC0));
804 double *v3 = (trie[1] == 0 ? FBC0 : (trie[1] == 1 ? FBC1 : FBC2));
805 double *v4 = (trie[1] == 0 ? FBC1 : (trie[1] == 1 ? FBC2 : FBC0));
806 double *gv1 = (trie[0] == 0 ? tri->
v[0]->
gloc :
807 (trie[0] == 1 ? tri->
v[1]->
gloc : tri->
v[2]->
gloc));
808 double *gv2 = (trie[0] == 0 ? tri->
v[1]->
gloc :
809 (trie[0] == 1 ? tri->
v[2]->
gloc : tri->
v[0]->
gloc));
810 double *gv3 = (trie[1] == 0 ? tri->
v[0]->
gloc :
811 (trie[1] == 1 ? tri->
v[1]->
gloc : tri->
v[2]->
gloc));
812 double *gv4 = (trie[1] == 0 ? tri->
v[1]->
gloc :
813 (trie[1] == 1 ? tri->
v[2]->
gloc : tri->
v[0]->
gloc));
814 double gr1 = is_persp ? v1[3] * ratio[0] / (ratio[0] * v1[3] + (1 - ratio[0]) *
v2[3]) :
816 double gr2 = is_persp ? v3[3] * ratio[1] / (ratio[1] * v3[3] + (1 - ratio[1]) * v4[3]) :
834 int use = (
fabs(LFBC[0] - RFBC[0]) >
fabs(LFBC[1] - RFBC[1])) ? 0 : 1;
835 double at1 =
ratiod(LFBC[use], RFBC[use], fbc1[use]);
836 double at2 =
ratiod(LFBC[use], RFBC[use], fbc2[use]);
838 std::swap(gpos1, gpos2);
839 std::swap(fbc1, fbc2);
850 double t_fbc1[4], t_fbc2[4], t_gpos1[3], t_gpos2[3];
851 bool trimmed1 =
false, trimmed2 =
false;
852 if (at1 < 0 || at2 > 1) {
853 double rat1 = (-at1) / (at2 - at1);
854 double rat2 = (1.0f - at1) / (at2 - at1);
855 double gat1 = is_persp ? fbc1[3] * rat1 / (rat1 * fbc1[3] + (1 - rat1) * fbc2[3]) : rat1;
856 double gat2 = is_persp ? fbc1[3] * rat2 / (rat2 * fbc1[3] + (1 - rat2) * fbc2[3]) : rat2;
860 t_fbc1[3] =
interpd(fbc2[3], fbc1[3], gat1);
867 t_fbc2[3] =
interpd(fbc2[3], fbc1[3], gat2);
888 double camera_vector[3];
898 *r_facing_light = (dot_f < 0);
917 double fb_co_1[4], fb_co_2[4];
918 double global_1[3], global_2[3];
923 for (
int i = 0; i < nba->triangle_count; i++) {
968 bool do_original_edges,
973 int tot_orig_edges = 0;
988 int edge_alloc = tot_edges + (do_original_edges ? tot_orig_edges : 0);
990 if (
G.debug_value == 4000) {
991 printf(
"Line art shadow segments total: %d\n", tot_edges);
1043 if (do_original_edges) {
1055 e->target_reference = ((ref_1 << 32) | ref_2);
1090 double at_start =
interpd(es_end, es_start, sseg.
ratio);
1108 if (
e->min_occ > 0) {
1115 double next_at = es.
next ? (es.
next)->ratio : 1.0f;
1119 double ga1 =
e->v1->fbcoord[3] * es.
ratio /
1120 (es.
ratio *
e->v1->fbcoord[3] + (1 - es.
ratio) *
e->v2->fbcoord[3]);
1121 double ga2 =
e->v1->fbcoord[3] * next_at /
1122 (next_at *
e->v1->fbcoord[3] + (1 - next_at) *
e->v2->fbcoord[3]);
1123 double g1[3], g2[3], g1v[4], g2v[4];
1139#define GET_RATIO(n) \
1140 (fabs(orig_e->v2->fbcoord[0] - orig_e->v1->fbcoord[0]) > \
1141 fabs(orig_e->v2->fbcoord[1] - orig_e->v1->fbcoord[1])) ? \
1142 ((g##n##v[0] - orig_e->v1->fbcoord[0]) / \
1143 (orig_e->v2->fbcoord[0] - orig_e->v1->fbcoord[0])) : \
1144 ((g##n##v[1] - orig_e->v1->fbcoord[1]) / (orig_e->v2->fbcoord[1] - orig_e->v1->fbcoord[1]))
1156 Depsgraph *depsgraph,
1163 ListBaseT<LineartElementLinkNode> *r_calculated_edges_eln_list,
1174 if (
G.debug_value == 4000) {
1178 bool is_persp =
true;
1217 if (!ld->
w || !ld->
h) {
1218 ld->
w = ld->
h = 200;
1245 double proj[4][4], view[4][4],
result[4][4];
1307 (*r_shadow_ld_if_reproject) = ld;
1314 if (
G.debug_value == 4000) {
1316 printf(
"Line art shadow stage 1 time: %f\n", t_elapsed);
1319 return any_generated;
1323 Depsgraph *depsgraph,
1330 ListBaseT<LineartElementLinkNode> *r_calculated_edges_eln_list,
1343 r_calculated_edges_eln_list,
1344 r_shadow_ld_if_reproject);
1356 const int element_index,
1415 &transform_settings);
1427 if (
G.debug_value == 4000) {
1438 if (
G.debug_value == 4000) {
1440 printf(
"Line art shadow stage 2 cast and silhouette time: %f\n", t_elapsed);
1459 if (!any_generated) {
1489 if (
G.debug_value == 4000) {
1491 printf(
"Line art shadow stage 2 total time: %f\n", t_elapsed);
Low-level operations for grease pencil.
General operations, lookup, etc. for blender objects.
Platform independent time functions.
Read Blender memory allocation and freeing.
#define LRT_DOUBLE_CLOSE_ENOUGH(a, b)
#define LRT_OBINDEX_LOWER
#define LRT_SHADOW_MASK_ENCLOSED_SHAPE
#define LRT_OBINDEX_HIGHER
#define LRT_SHADOW_SILHOUETTE_ERASED_GROUP
#define LRT_SHADOW_MASK_ILLUMINATED
#define LRT_CLOSE_LOOSER_v3(a, b)
#define LRT_SHADOW_MASK_SHADED
#define LRT_EDGE_BA_MARCHING_BEGIN(fb1, fb2)
#define LRT_EDGE_BA_MARCHING_NEXT(fb1, fb2)
#define LRT_EDGE_BA_MARCHING_END
#define LRT_ITER_ALL_LINES_END
#define LRT_ITER_ALL_LINES_BEGIN
#define DISCARD_NONSENSE_SEGMENTS
ccl_device_inline dual3 fabs(const ccl_private dual3 &a)
void lineart_unwrap_v3(LineartGpencilModifierData *lmd_legacy, const GreasePencilLineartModifierData *lmd)
void lineart_wrap_v3(const LineartGpencilModifierData *lmd_legacy, GreasePencilLineartModifierData *lmd)
void lineart_main_discard_out_of_frame_edges(LineartData *ld)
static bool lineart_shadow_cast_generate_edges(LineartData *ld, bool do_original_edges, LineartElementLinkNode **r_veln, LineartElementLinkNode **r_eeln)
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
bool lineart_edge_from_triangle(const LineartTriangle *tri, const LineartEdge *e, bool allow_overlapping_edges)
unsigned __int64 uint64_t
LineartEdge * lineart_find_matching_edge(struct LineartElementLinkNode *shadow_eln, uint64_t edge_identifier)
@ LRT_ELEMENT_INTERSECTION_DATA
MINLINE double dot_v3v3_db(const double a[3], const double b[3]) ATTR_WARN_UNUSED_RESULT
BLI_INLINE void BLI_parallel_range_settings_defaults(TaskParallelSettings *settings)
static bool lineart_shadow_cast_onto_triangle(LineartData *ld, LineartTriangle *tri, LineartShadowEdge *sedge, double *r_at_1, double *r_at_2, double *r_fb_co_1, double *r_fb_co_2, double *r_gloc_1, double *r_gloc_2, bool *r_facing_light)
MINLINE void copy_v3db_v3fl(double r[3], const float a[3])
BLI_INLINE int lineart_line_isec_2d_ignore_line2pos(const double a1[2], const double a2[2], const double b1[2], const double b2[2], double *r_a_ratio)
void lineart_main_bounding_areas_connect_post(LineartData *ld)
@ LRT_TILE_RECURSIVE_PERSPECTIVE
@ LRT_TILE_RECURSIVE_ORTHO
void lineart_main_load_geometries(Depsgraph *depsgraph, Scene *scene, Object *camera, LineartData *ld, bool allow_duplicates, bool do_shadow_casting, ListBaseT< LineartElementLinkNode > *shadow_elns, Set< const Object * > *included_objects)
static void lineart_shadow_edge_cut(LineartData *ld, LineartShadowEdge *e, double start, double end, double *start_gloc, double *end_gloc, double *start_fb_co, double *end_fb_co, bool facing_light, uint32_t target_reference)
static void lineart_shadow_register_enclosed_shapes(LineartData *ld, LineartData *shadow_ld)
MINLINE void copy_v4_v4_db(double r[4], const double a[4])
static void lineart_shadow_create_shadow_edge_array(LineartData *ld, bool transform_edge_cuts, bool do_light_contour)
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
MINLINE double interpd(double target, double origin, double t)
static void lineart_shadow_transform_task(void *__restrict userdata, const int element_index, const TaskParallelTLS *__restrict)
void lineart_matrix_perspective_44d(double(*mProjection)[4], double fFov_rad, double fAspect, double zMin, double zMax)
static bool lineart_do_closest_segment(bool is_persp, double *s1_fb_co_1, double *s1_fb_co_2, double *s2_fb_co_1, double *s2_fb_co_2, double *s1_gloc_1, double *s1_gloc_2, double *s2_gloc_1, double *s2_gloc_2, double *r_fb_co_1, double *r_fb_co_2, double *r_gloc_1, double *r_gloc_2, double *r_new_in_the_middle, double *r_new_in_the_middle_global, double *r_new_at, bool *is_side_2r, bool *use_new_ref)
void BLI_task_parallel_range(int start, int stop, void *userdata, TaskParallelRangeFunc func, const TaskParallelSettings *settings)
ATTR_WARN_UNUSED_RESULT const BMVert * v
void lineart_destroy_render_data_keep_init(LineartData *ld)
MINLINE void copy_v3_v3_db(double r[3], const double a[3])
MINLINE double ratiod(double min, double max, double pos)
static LineartShadowSegment * lineart_give_shadow_segment(LineartData *ld)
void * BLI_pophead(ListBase *listbase) ATTR_NONNULL(1)
static void lineart_shadow_segment_slice_get(double *fb_co_1, double *fb_co_2, double *gloc_1, double *gloc_2, double ratio, double at_1, double at_2, double *r_fb_co, double *r_gloc)
void lineart_add_edge_to_array(LineartPendingEdges *pe, LineartEdge *e)
void lineart_main_clear_linked_edges(LineartData *ld)
void mul_v4_m4v3_db(double r[4], const double mat[4][4], const double vec[3])
void copy_m4_m4_db(double m1[4][4], const double m2[4][4])
void lineart_register_intersection_shadow_cuts(struct LineartData *ld, ListBaseT< LineartElementLinkNode > *shadow_elns)
void lineart_main_add_triangles(LineartData *ld)
static bool lineart_contour_viewed_from_dark_side(LineartData *ld, LineartEdge *e)
void lineart_matrix_ortho_44d(double(*mProjection)[4], double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
BMesh const char void * data
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void lineart_main_occlusion_begin(LineartData *ld)
VecBase< double, 3 > double3
void lineart_register_shadow_cuts(struct LineartData *ld, struct LineartEdge *e, struct LineartEdge *shadow_edge)
void lineart_main_get_view_vector(LineartData *ld)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
static void lineart_shadow_cast(LineartData *ld, bool transform_edge_cuts, bool do_light_contour)
void unit_m4_db(double m[4][4])
@ MOD_LINEART_EDGE_FLAG_PROJECTED_SHADOW
@ MOD_LINEART_EDGE_FLAG_LOOSE
@ MOD_LINEART_EDGE_FLAG_CONTOUR_SECONDARY
@ MOD_LINEART_EDGE_FLAG_SHADOW_FACING_LIGHT
@ MOD_LINEART_EDGE_FLAG_LIGHT_CONTOUR
@ MOD_LINEART_EDGE_FLAG_CONTOUR
void BLI_spin_unlock(SpinLock *spin)
void lineart_main_cull_triangles(LineartData *ld, bool clip_far)
MINLINE void mul_v3db_db(double r[3], double f)
void interp_v3_v3v3_db(double target[3], const double a[3], const double b[3], double t)
void BLI_spin_init(SpinLock *spin)
void * lineart_mem_acquire(struct LineartStaticMemPool *smp, size_t size)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void lineart_shadow_finalize_shadow_edges_task(void *__restrict userdata, const int i, const TaskParallelTLS *__restrict)
ATTR_WARN_UNUSED_RESULT const BMVert * v2
void lineart_main_link_lines(LineartData *ld)
MINLINE void sub_v3_v3v3_db(double r[3], const double a[3], const double b[3])
void lineart_edge_cut(LineartData *ld, LineartEdge *e, double start, double end, uchar material_mask_bits, uchar mat_occlusion, uint32_t shadow_bits)
@ LRT_SHADOW_FACING_LIGHT
void lineart_main_transform_and_add_shadow(struct LineartData *ld, struct LineartElementLinkNode *veln, struct LineartElementLinkNode *eeln)
void lineart_main_make_enclosed_shapes(struct LineartData *ld, struct LineartData *shadow_ld)
static void lineart_shadow_register_silhouette(LineartData *ld)
void lineart_finalize_object_edge_array_reserve(LineartPendingEdges *pe, int count)
MINLINE float interpf(float target, float origin, float t)
double BLI_time_now_seconds()
void * lineart_mem_acquire_thread(struct LineartStaticMemPool *smp, size_t size)
void mul_m4db_m4db_m4fl(double R[4][4], const double A[4][4], const float B[4][4])
bool lineart_main_try_generate_shadow(struct Depsgraph *depsgraph, struct Scene *scene, struct LineartData *original_ld, struct LineartGpencilModifierData *lmd_legacy, struct LineartStaticMemPool *shadow_data_pool, struct LineartElementLinkNode **r_veln, struct LineartElementLinkNode **r_eeln, ListBaseT< LineartElementLinkNode > *r_calculated_edges_eln_list, struct LineartData **r_shadow_ld_if_reproject)
void copy_m4_m4(float m1[4][4], const float m2[4][4])
@ MOD_LINEART_ALLOW_DUPLI_OBJECTS
void BLI_spin_lock(SpinLock *spin)
VecBase< double, 4 > double4
void lineart_main_perspective_division(LineartData *ld)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
void lineart_main_free_adjacent_data(LineartData *ld)
bool lineart_main_try_generate_shadow_v3(struct Depsgraph *depsgraph, struct Scene *scene, struct LineartData *original_ld, struct GreasePencilLineartModifierData *lmd, struct LineartStaticMemPool *shadow_data_pool, struct LineartElementLinkNode **r_veln, struct LineartElementLinkNode **r_eeln, ListBaseT< LineartElementLinkNode > *r_calculated_edges_eln_list, struct LineartData **r_shadow_ld_if_reproject)
void lineart_main_bounding_area_make_initial(LineartData *ld)
LineartElementLinkNode * lineart_find_matching_eln(ListBaseT< LineartElementLinkNode > *shadow_elns, int obindex)
struct LineartModifierRuntime * runtime
eGreasePencilLineartFlags flags
struct Object * light_contour_object
double view_projection[4][4]
bool shadow_use_silhouette
float cam_obmat_secondary[4][4]
double camera_pos_secondary[3]
bool cam_is_persp_secondary
double view_vector_secondary[3]
bool use_back_face_culling
bool use_contour_secondary
bool allow_duplicated_types
bool shadow_enclose_shapes
bool allow_overlapping_edges
ListBaseT< LineartElementLinkNode > vertex_buffer_pointers
ListBaseT< LineartElementLinkNode > line_buffer_pointers
LineartShadowEdge * shadow_edges
struct blender::LineartData::_geom geom
LineartStaticMemPool * edge_data_pool
struct blender::LineartData::_qtree qtree
struct blender::LineartData::_conf conf
struct LineartPendingEdges pending_edges
LineartStaticMemPool render_data_pool
LineartStaticMemPool * shadow_data_pool
ListBaseT< LineartShadowSegment > wasted_shadow_cuts
LineartEdgeSegment * next
ListBaseT< LineartEdgeSegment > segments
eLineArtElementNodeFlag flags
Set< const Object * > object_dependencies
ListBaseT< LineartShadowSegment > shadow_segments
LineartEdge * e_ref_light_contour
LineartEdgeSegment * es_ref
LineartShadowSegment * next
uint32_t target_reference
LineartEdge * testing_e[1]
uint32_t target_reference