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
parameters -- todo
todo
Properties
todo
todo
todo
todo
todo
todo
Methods
.getMaxAnisotropy() todo
todo
scene -- todo
camera -- todo
todo
.clear() todo
todo
color -- todo
alpha -- todo
todo
.setFaceCulling() todo
todo
.supportsVertexTextures() todo
todo
width -- todo
height -- todo
updateStyle -- todo
todo
hex -- todo
alpha -- todo
todo
Source
src/renderers/CanvasRenderer.js
Edit this page