[name]

[name] is a simplified version of [page: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

[example:css2d_label]
[example:webgl_loader_pdb molecules]

Constructor

[name]()

Methods

[method:Object getSize]()

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

[method:null render]( [param:Scene scene], [param:Camera camera] )

Renders a [page:Scene scene] using a [page:Camera camera].

[method:null setSize]([param:Number width], [param:Number height])

Resizes the renderer to (width, height).

Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CSS2DRenderer.js examples/js/renderers/CSS2DRenderer.js]