Is it possible to have per face coloring/lighting for Makie.mesh (as opposed to per vertex)? This is more appropriate for the visualization of polyhedra or other shapes that have sharp corners and for the visualization of FEM/BEM solutions that use discontinuous elements for the approximation of the unknown field.
As it is now, face normals and solution amplitudes are forced to be continuous across all edges, even though they are not (in the above case).
It tried the shading and interpolate attributes, but without success.
is currently not implemented, but shouldn’t be too hard to add… Most difficult question would be how to integrate it nicely You could already fake it by creating your own GLNormalMesh with duplicated vertices + normals, which wouldn’t be as performant as a native implementation but should already work fairly well.
Ah, yes… I’ll use that workaround for now. Many thanks for this!
I tried to descent into the package to find out where the actual rendering takes place, but convenience functions and @evals threw me of the track. Would implementing this require new code on the level of the now assimilated GLVisualize?