Import
FlakesTexture is an addon, and must be imported explicitly, see Installation#Addons.
import { FlakesTexture } from 'three/addons/textures/FlakesTexture.js';
Constructor
new FlakesTexture( width : number, height : number ) : HTMLCanvasElement
Generates a new flakes texture image. The result is a canvas that can be used as an input for CanvasTexture.
| width |
The width of the image. Default is |
| height |
The height of the image. Default is |
- Returns: The generated image.