jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

transparency: triangle sorting #48

Closed jfcameron closed 3 years ago

jfcameron commented 3 years ago

currently entity sorting is implemented. I dont want to force all models to keep a copy of their vertex data in ram. I think it would be reasonable to let the user make this decision at factory time, then at draw time, sort and regenerate the model or sort per entity if unavailable.

Rather than a try_get_tris() or something, maybe a subclass is worthwhile here.

jfcameron commented 3 years ago

this story has become the more concrete ticket #56