CanvasRenderer

The Canvas renderer displays your beautifully crafted scenes not using WebGL, but draws it using the (slower) Canvas 2D Context API.
This renderer can be a nice fallback from WebGLRenderer for simple scenes:
if (window.WebGLRenderingContext) renderer = new THREE.WebGLRenderer(); else renderer = new THREE.CanvasRenderer();
Note: both WebGLRenderer and CanvasRenderer are embedded in the web page using an HTML5 <canvas> tag. The "Canvas" in CanvasRenderer means it uses Canvas 2D instead of WebGL.
Don't confuse either CanvasRenderer with the SoftwareRenderer example, which simulates a screen buffer in a Javascript array.

Constructor

CanvasRenderer(parameters)

parameters -- todo
todo

Properties

.info

todo

.domElement

todo

.devicePixelRatio

todo

.autoClear

todo

.sortObjects

todo

.sortElements

todo

Methods

.getMaxAnisotropy() todo

todo

.render(scene, camera) todo

scene -- todo
camera -- todo
todo

.clear() todo

todo

.setClearColor(color, alpha) todo

color -- todo
alpha -- todo
todo

.setFaceCulling() todo

todo

.supportsVertexTextures() todo

todo

.setSize(width, height, updateStyle) todo

width -- todo
height -- todo
updateStyle -- todo
todo

.setClearColorHex(hex, alpha) todo

hex -- todo
alpha -- todo
todo

Source

src/renderers/CanvasRenderer.js
Edit this page