diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-11-05 21:26:13 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-11-05 21:26:13 +0300 |
commit | 5b26c36008a2672d49e815c7a14a957a841d2a12 (patch) | |
tree | 9eb5739a2207a804c03510faadce2f9b1294f889 /source/blender/gpu/CMakeLists.txt | |
parent | a85f68e9c75680fe997c561bf62efd06fdd465ef (diff) |
OpenGL: edge overlay shaders
As seen at #bcon16. These were produced quickly and probably need further work.
SIMPLE variant draws triangle mesh edges. Based on this research:
http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/4884/pdf/imm4884.pdf
http://developer.download.nvidia.com/SDK/10/direct3d/Source/SolidWireframe/Doc/SolidWireframe.pdf
Non-SIMPLE variant can adjust thickness per edge. This can be used to draw only some edges, or accentuate some edges. Given the right inputs this is a general n-gon perimeter shader.
Part of T49165
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 91e7f3dfbe1..88484e071c5 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -162,6 +162,10 @@ data_to_c_simple(shaders/gpu_shader_edges_front_back_persp_vert.glsl SRC) data_to_c_simple(shaders/gpu_shader_edges_front_back_persp_geom.glsl SRC) data_to_c_simple(shaders/gpu_shader_edges_front_back_persp_legacy_vert.glsl SRC) data_to_c_simple(shaders/gpu_shader_edges_front_back_ortho_vert.glsl SRC) +data_to_c_simple(shaders/gpu_shader_edges_overlay_vert.glsl SRC) +data_to_c_simple(shaders/gpu_shader_edges_overlay_geom.glsl SRC) +data_to_c_simple(shaders/gpu_shader_edges_overlay_simple_geom.glsl SRC) +data_to_c_simple(shaders/gpu_shader_edges_overlay_frag.glsl SRC) data_to_c_simple(shaders/gpu_shader_text_vert.glsl SRC) data_to_c_simple(shaders/gpu_shader_text_frag.glsl SRC) |