4 ms·
How does it compose 2D and 3D content? Is it using a WebGL canvas for the rendering surface? Or a 2D canvas and rasterising the 3D content in an offscreen can
by wffurr 4y ago
How does it compose 2D and 3D content? Is it using a WebGL canvas for the rendering surface? Or a 2D canvas and rasterising the 3D content in an offscreen canvas and transferring to bitmap to place in the 2D canvas?
- vlz 4y agoThe readme describes some options you have for combining 2D and 3D.[1] It seems you can either have 3D and 2D on top each other (without transformations applying to both) or include a 3D sprite in 2D. I guess that means 2D and 3D are generally not composed together but separately. [1]: https://github.com/jnsmalm/pixi3d#2d-and-3d https://github.com/jnsmalm/pixi3d#2d-and-3d