Class ThreeGraphics

java.lang.Object
nl.colorize.multimedialib.renderer.teavm.ThreeGraphics
All Implemented Interfaces:
TeaGraphics, StageSubscriber, StageVisitor

@Beta public class ThreeGraphics extends Object implements TeaGraphics, StageSubscriber
Uses the Three.js JavaScript library to render 3D graphics. This requires the browser to support WebGL.

Three.js does not support 2D graphics very well, so when using both 2D and 3D graphics, the 2D part is delegated to a separate canvas overlay that is displayed on top of the 3D graphics. Updating the 2D graphics overlay is then delegated to HtmlCanvasGraphics.