Capítulo 520 de 859
A class that creates an ASCII effect.
The ASCII generation is based on jsascii.
import { AsciiEffect } from 'three/addons/effects/AsciiEffect.js';
Constructor
| Signature |
|---|
new AsciiEffect( renderer : WebGLRenderer, charSet : string, options : AsciiEffect~Options ) |
Properties
| Property | Description |
|---|---|
.domElement : HTMLDivElement | The DOM element of the effect. This element must be used instead of the default WebGLRenderer#domElement. |
Methods
| Method | Description |
|---|---|
.render( scene : Object3D, camera : Camera ) | When using this effect, this method should be called instead of the default WebGLRenderer#render. |
.setSize( w : number, h : number ) | Resizes the effect. |