Blender Git Loki

Git Commits -> Revision 712530e

Revision 712530e by Clément Foucault (master)
February 26, 2017, 20:12 (GMT)
Clay Engine: Edit mesh overlays

Based on the previous overlay shader from merwin.
This shader takes care of clipped vertex cases and do all edit mode face info in one pass (except face centers).
As the shading is done one the triangle itself the visual can't go beyond the surface of the mesh. That leads to half displayed edges on the outline of the mesh.
This problem can be fixed by a second pass.

This is work in progress.

Commit Details:

Full Hash: 712530eb9321f233694eeb49a10e1c916576b153
Parent Commit: fabde06
Lines Changed: +546, -10

3 Added Paths:

/source/blender/gpu/shaders/gpu_shader_edit_overlay_frag.glsl (+191, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edit_overlay_geom.glsl (+168, -0) (View)
/source/blender/gpu/shaders/gpu_shader_edit_overlay_vert.glsl (+23, -0) (View)

5 Modified Paths:

/source/blender/blenkernel/intern/mesh_render.c (+132, -9) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+22, -1) (Diff)
/source/blender/gpu/CMakeLists.txt (+3, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021