Constructor
new WebcamRenderer(renderer, videoElementSelector)
Create a WebcamRenderer.
Parameters:
Name | Type | Description |
---|---|---|
renderer |
THREE.WebGLRenderer | the Three.js renderer. |
videoElementSelector |
string | selector to obtain the HTML video element to render the webcam feed. If a falsy value (e.g. null or undefined), a video element will be created. |
- Source:
Methods
dispose()
Free up the memory associated with the webcam.
Should be called when your application closes.
- Source:
update()
Update the webcam.
Should be called from your Three.js rendering (animation) function.
- Source: