Blender Git Loki

Git Commits -> Revision 416bd1b

Revision 416bd1b by Clément Foucault (master)
February 27, 2017, 16:41 (GMT)
Clay Engine: Edit Mesh overlay fix jaggy edges.

We do a strip of triangles around the triangle of interest and modify the variying vars to "trick" the fragment shader into rendering what we need.
This keeps the compatibility for both shaders.
Vertex still get half displayed when angle at the vertex is very acute.

This patch is only for the simple, no vert clipped case.

This is 2.5x slower than without the trick (on my hardware with 1million tris).

Commit Details:

Full Hash: 416bd1bbe802ff51b2453fb48dd6daf7aa2f12e3
Parent Commit: 35290f5
Lines Changed: +111, -21

2 Modified Paths:

/source/blender/gpu/shaders/gpu_shader_edit_overlay_frag.glsl (+7, -4) (Diff)
/source/blender/gpu/shaders/gpu_shader_edit_overlay_geom.glsl (+104, -17) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021