Blender Git Loki

Git Commits -> Revision 1e53606

Revision 1e53606 by Jeroen Bakker (vr_scene_inspection)
February 20, 2020, 12:00 (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: 1e53606603f6b8cbcc9bc799d72e0b090ce28ee4
Parent Commit: 20cdf4f
Committed By: Julian Eisel
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