Blender Git Commit Log

Git Commits -> Revision a85f68e

Revision a85f68e by Mike Erwin (master)
November 5, 2016, 17:56 (GMT)
OpenGL: further wireframe shaders

As seen at #bcon16

Geometry shader version is automatically used on modern GL runtimes. Legacy version is used on pre-3.2 systems (Mac, Mesa compat profile). They have the same inputs and visual result.

TODO: specialized versions that are less flexible -- draw ALL edges or draw JUST silhouette edges.

Part of T49165

Commit Details:

Full Hash: a85f68e9c75680fe997c561bf62efd06fdd465ef
Parent Commit: c25c3bb
Lines Changed: +175, -57

2 Added Paths:

/source/blender/gpu/shaders/gpu_shader_edges_front_back_persp_geom.glsl (+60, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edges_front_back_persp_legacy_vert.glsl (+78, -0) (View)

3 Modified Paths:

/source/blender/gpu/CMakeLists.txt (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+16, -4) (Diff)
/source/blender/gpu/shaders/gpu_shader_edges_front_back_persp_vert.glsl (+19, -53) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021