diff options
author | YimingWu <xp8110@outlook.com> | 2021-12-01 10:51:23 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-12-01 10:55:16 +0300 |
commit | 24b84e468805fb15baa465fbf2a34592b6db16ca (patch) | |
tree | 1d72b97f3130b4fb2136b8abc1a1dc41f569181b /source | |
parent | b3d101ac2901182840f434808e56574b6cc7f27a (diff) |
LineArt: Use consitent view vector direction.
Now do not invertes view vector in different stages of calculation.
Diffstat (limited to 'source')
-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 88d717eb032..3df2bec67ff 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++) { @@ -3010,7 +3006,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]; |