Home Reference Source
import {SMAAImageLoader} from 'postprocessing'
public class | source

SMAAImageLoader

Extends:

three~Loader → SMAAImageLoader
this class was deprecated. Preloading the SMAA lookup textures is no longer required.
this class is experimental. Added for testing, API might change in patch or minor releases. Requires three >= r108.

An SMAA image loader.

Method Summary

Public Methods
public

load(onLoad: Function, onError: Function): Promise<Image[]>

Loads the SMAA data images.

Public Methods

public load(onLoad: Function, onError: Function): Promise<Image[]> source

Loads the SMAA data images.

Params:

NameTypeAttributeDescription
onLoad Function
  • optional

A callback that receives the search image and area image as a pair.

onError Function
  • optional

An error callback that receives the URL of the image that failed to load.

Return:

Promise<Image[]>

A promise that returns the search image and area image as a pair.