Blender Git Commit Log

Git Commits -> Revision d712f1f

Revision d712f1f by Clément Foucault (master)
April 23, 2020, 21:07 (GMT)
GPU: Add Polyline shader (wide line emulation)

This new shader is able to emulate smooth wide lines drawing using a
geometry shader.

This shader needs viewportSize and lineWidth uniforms to be set.

There is multiple variants to replace the usage of wide lines for most
shaders.

This patch only fix the gizmo_types files and the navigation gizmo.
Other areas could be fixed afterward, I just limited the patch size.

Fix T57570.

Reviewed By: billreynish

Differential Revision: https://developer.blender.org/D7487

Commit Details:

Full Hash: d712f1f83af881be536ec0d183b7d3025c172684
Parent Commit: d0ff343
Lines Changed: +328, -85

3 Added Paths:

/source/blender/gpu/shaders/gpu_shader_3D_polyline_frag.glsl (+24, -0) (View)
/source/blender/gpu/shaders/gpu_shader_3D_polyline_geom.glsl (+68, -0) (View)
/source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl (+28, -0) (View)

10 Modified Paths:

/source/blender/editors/gizmo_library/gizmo_types/arrow3d_gizmo.c (+12, -3) (Diff)
/source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c (+17, -11) (Diff)
/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c (+36, -21) (Diff)
/source/blender/editors/gizmo_library/gizmo_types/cage3d_gizmo.c (+30, -22) (Diff)
/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c (+31, -21) (Diff)
/source/blender/editors/gizmo_library/gizmo_types/move3d_gizmo.c (+7, -3) (Diff)
/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c (+12, -3) (Diff)
/source/blender/gpu/CMakeLists.txt (+3, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+27, -1) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+33, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021