Wedges

View the full source.

A wedge is a simple example of a custom shape which you might want to draw using Lux.

One thing to notice is that you get pixel-accurate picking for free, even when your batch includes discarding fragments (like this one does). If Lux required you to write GLSL shaders, it would have no way to turn your drawing specification into a picking one. But because Lux actually has a language which gives the semantics of the drawing and knows how to manipulate that language, it can automatically create picking code.

Please do not take this example as an endorsement of pie charts! Chances are they are the last thing you should ever consider using for displaying quantitative data.

Back to the index.