Hi All
The vertices normals drawing looks like a very simple task: specify positions and normals as attributes and generate lines with geometry shader ("points" input). However with culled backfaces some vertices can be invisible, so their normals should not be drawn.
How can I solve this in geometry shader? If I specify “triangles” as input, then I can check the cull, but how to get normals for vertices?
Or it's unavoidable to use a portion of CPU code here?
Thx