Blender Git Loki

Git Commits -> Revision e2e2a98

Revision e2e2a98 by Jeroen Bakker (master)
February 17, 2020, 13:59 (GMT)
Fix T73518: Normal Overlay

This change will not render the normals for faces that are hidden.
Before we had instance drawing the hidden faces were registered in the
index buffer. During the overlay refactoring the rendering was migrated
to instance rendering. Instance rendering does not use the index buffer
so the data was ignored.

This patch stored the normal visibility in the .w part of the normal or
for face normals it will set the normal to zero. The shader looks at
this and renders the normals fully transparent when detected.

Reviewed By: Cl�ment Foucault

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

Commit Details:

Full Hash: e2e2a98573e060cf26ab5141550dcd64838afc40
Parent Commit: d5d235c
Lines Changed: +54, -17

2 Modified Paths:

/source/blender/draw/engines/overlay/shaders/edit_mesh_normal_vert.glsl (+18, -6) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh.c (+36, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021