An SMAA image generator.
This class uses a worker thread to generate the search and area images. The generated data URLs will be cached using localStorage, if available. To disable caching set cacheEnabled to false.
false
Constructs a new SMAA image generator.
Indicates whether data image caching is enabled.
true Copy
true
Generates the SMAA data images.
A promise that returns the search image and area image as a pair.
SMAAImageGenerator.generate().then(([search, area]) => { const smaaEffect = new SMAAEffect(search, area);}); Copy
SMAAImageGenerator.generate().then(([search, area]) => { const smaaEffect = new SMAAEffect(search, area);});
An SMAA image generator.
This class uses a worker thread to generate the search and area images. The generated data URLs will be cached using localStorage, if available. To disable caching set cacheEnabled to
false.