diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-29 13:11:03 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-30 13:25:20 +0300 |
commit | 328f8dc21c0e8a7e3da14f6578fb84a811f80b89 (patch) | |
tree | 6d7cbe0cb0bc0fee859bff5c73f98dbf9109b6f8 /source/blender/draw/CMakeLists.txt | |
parent | 2faef3473c061e34a03668905c8d81672a72dd38 (diff) |
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.
Diffstat (limited to 'source/blender/draw/CMakeLists.txt')
-rw-r--r-- | source/blender/draw/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/CMakeLists.txt b/source/blender/draw/CMakeLists.txt index 965faa7ba53..96dd9356109 100644 --- a/source/blender/draw/CMakeLists.txt +++ b/source/blender/draw/CMakeLists.txt @@ -63,6 +63,7 @@ set(SRC intern/draw_cache_impl_particles.c intern/draw_common.c intern/draw_debug.c + intern/draw_hair.c intern/draw_instance_data.c intern/draw_manager.c intern/draw_manager_data.c @@ -123,6 +124,7 @@ set(SRC intern/draw_cache_impl.h intern/draw_common.h intern/draw_debug.h + intern/draw_hair_private.h intern/draw_instance_data.h intern/draw_manager.h intern/draw_manager_text.h @@ -234,6 +236,8 @@ data_to_c_simple(engines/workbench/shaders/workbench_shadow_debug_frag.glsl SRC) data_to_c_simple(engines/workbench/shaders/workbench_world_light_lib.glsl SRC) data_to_c_simple(modes/shaders/common_globals_lib.glsl SRC) +data_to_c_simple(modes/shaders/common_hair_lib.glsl SRC) +data_to_c_simple(modes/shaders/common_hair_refine_vert.glsl SRC) data_to_c_simple(modes/shaders/common_view_lib.glsl SRC) data_to_c_simple(modes/shaders/common_fxaa_lib.glsl SRC) data_to_c_simple(modes/shaders/common_fullscreen_vert.glsl SRC) |