lighttransport / gltf-insight

C++11 based glTF 2.0 data insight tool
MIT License
27 stars 4 forks source link

True alpha blending needs sorting of all rendered primitives #17

Open Ybalrid opened 5 years ago

Ybalrid commented 5 years ago

Now the rendering parses the scene graph and draw each "mesh" nodes.

Instead of drawing, we should push them to a draw list, and sort the transparent materials out, draw all the opaque/alpha masked meshes, then draw the transparent one in depth order.