Utility class for generating a flakes texture image. This image might be used as a normal map to produce a car paint like effect.
FlakesTexture is an addon, and must be imported explicitly, see Installation#Addons.
import { FlakesTexture } from 'three/addons/textures/FlakesTexture.js';
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 512.
height
The height of the image.
Default is 512.
Returns: The generated image.