Eevee: Add support for new Hair geometry system.

This now can shade actual poly strips that mimics cylinders.
This makes hair coverage exact compared to the line method and result in
smoother fading hair.

This does make the sampling a bit more exact but needs more samples to
converge properly.
This commit is contained in:
2018-05-29 12:25:43 +02:00
parent 501c0b1df8
commit 10f6450ef2
6 changed files with 184 additions and 77 deletions

View File

@@ -190,6 +190,10 @@ static void eevee_draw_background(void *vedata)
/* Default framebuffer and texture */
DefaultTextureList *dtxl = DRW_viewport_texture_list_get();
DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
/* Refresh Hair */
DRW_draw_pass(psl->hair_tf_pass);
/* Sort transparents before the loop. */
DRW_pass_sort_shgroup_z(psl->transparent_pass);