Blender Git Loki
Git Commits -> Revision 328f8dc
Revision 328f8dc by Clément Foucault (master) May 30, 2018, 10:25 (GMT) |
DRW: Add new GPU hair system. This new system use transform feedback to compute subdivided hair points position. For now no smoothing is done between input points. This new system decouple the strands data (uv, mcol) with the points position, requiring less update work if only simulation is running. In the future, we can have compute shader do the work of the feedback transform pass since it's really what it's meant to. Also we could generate the child particles during this pass, releasing some CPU time. draw_hair.c has been created to handle all of the Shading group creations as well as subdivision shaders. We store one final batch per settings combination because multiple viewport or render could use the same particle system with a different subdivision count or hair shape type. |
Commit Details:
Full Hash: 328f8dc21c0e8a7e3da14f6578fb84a811f80b89
Parent Commit: 2faef34
Lines Changed: +1177, -23
4 Added Paths:
/source/blender/draw/intern/draw_hair.c (+167, -0) (View)
/source/blender/draw/intern/draw_hair_private.h (+92, -0) (View)
/source/blender/draw/modes/shaders/common_hair_lib.glsl (+190, -0) (View)
/source/blender/draw/modes/shaders/common_hair_refine_vert.glsl (+15, -0) (View)
/source/blender/draw/intern/draw_hair_private.h (+92, -0) (View)
/source/blender/draw/modes/shaders/common_hair_lib.glsl (+190, -0) (View)
/source/blender/draw/modes/shaders/common_hair_refine_vert.glsl (+15, -0) (View)
5 Modified Paths:
/source/blender/draw/CMakeLists.txt (+4, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+687, -23) (Diff)
/source/blender/draw/intern/draw_common.h (+20, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+1, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+1, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+687, -23) (Diff)
/source/blender/draw/intern/draw_common.h (+20, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+1, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+1, -0) (Diff)