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 use SMAAImageGenerator.setCacheEnabled.
Indicates whether data image caching is disabled.
Use setCacheEnabled() instead.
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);});
Enables or disables caching via localStorage.
Whether the cache should be enabled.
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 use SMAAImageGenerator.setCacheEnabled.