diff options
author | YimingWu <xp8110@outlook.com> | 2021-12-01 10:51:23 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-12-01 10:53:30 +0300 |
commit | 5eeaf4cce69f10584d2d84671b2d44e86219c514 (patch) | |
tree | 9d37b277903a0f7861d55662820d47ef9fba5efc /source/blender | |
parent | 386b112f7652f321f2fb8309dca0ab660b1b7021 (diff) |
LineArt: Use consitent view vector direction.
Now do not invertes view vector in different stages of calculation.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 6da05a3934c..f2e6130b947 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -502,10 +502,6 @@ static void lineart_main_occlusion_begin(LineartRenderBuffer *rb) rb->edge_mark.last = rb->edge_mark.first; rb->floating.last = rb->floating.first; - /* This is needed because the occlusion function expects the camera vector to point towards the - * camera. */ - negate_v3_db(rb->view_vector); - TaskPool *tp = BLI_task_pool_create(NULL, TASK_PRIORITY_HIGH); for (i = 0; i < thread_count; i++) { @@ -3006,7 +3002,7 @@ static void lineart_triangle_intersect_in_bounding_area(LineartRenderBuffer *rb, */ static void lineart_main_get_view_vector(LineartRenderBuffer *rb) { - float direction[3] = {0, 0, -1}; + float direction[3] = {0, 0, 1}; float trans[3]; float inv[4][4]; float obmat_no_scale[4][4]; |