Blender Git Commit Log
Git Commits -> Revision 5b26c36
Revision 5b26c36 by Mike Erwin (master) November 5, 2016, 18:26 (GMT) |
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 |
Commit Details:
Full Hash: 5b26c36008a2672d49e815c7a14a957a841d2a12
Parent Commit: a85f68e
Lines Changed: +192, -1
4 Added Paths:
/source/blender/gpu/shaders/gpu_shader_edges_overlay_frag.glsl (+20, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_geom.glsl (+67, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_simple_geom.glsl (+52, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_vert.glsl (+13, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_geom.glsl (+67, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_simple_geom.glsl (+52, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_overlay_vert.glsl (+13, -0) (View)