CSS2DRenderer

CSS2DRenderer is a simplified version of CSS3DRenderer. The only transformation that is supported is translation.

The renderer is very useful if you want to combine HTML based labels with 3D objects. Here too, the respective DOM elements are wrapped into an instance of CSS2DObject and added to the scene graph.

Examples

css2d_label
molecules

Constructor

CSS2DRenderer()

Methods

.getSize () : Object

Returns an object containing the width and height of the renderer.

.render (scene : Scene, camera : Camera) : null

Renders a scene using a camera.

.setSize (width : Number, height : Number) : null

Resizes the renderer to (width, height).

Source

For more info on how to obtain the source code of this module see this page.