How to use the postprocessing.SMAAEffect function in postprocessing

To help you get started, we’ve selected a few postprocessing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github luan007 / libao / three-loader.js View on Github external
export function threeLoadPostprocessingTextures() {
    const areaImage = new Image();
    const searchImage = new Image();
    loaded = false;

    manager.itemStart("smaa_areaImageDataURL");
    manager.itemStart("smaa_searchImageDataURL");
    areaImage.addEventListener("load", function () {
        manager.itemEnd("smaa_areaImageDataURL");
    });
    areaImage.src = post.SMAAEffect.areaImageDataURL;

    searchImage.addEventListener("load", function () {
        manager.itemEnd("smaa_searchImageDataURL");
    });
    searchImage.src = post.SMAAEffect.searchImageDataURL;

    threeResources["smaa_search"] = searchImage;
    threeResources["smaa_area"] = areaImage;
}
github luan007 / libao / three-loader.js View on Github external
export function threeLoadPostprocessingTextures() {
    const areaImage = new Image();
    const searchImage = new Image();
    loaded = false;

    manager.itemStart("smaa_areaImageDataURL");
    manager.itemStart("smaa_searchImageDataURL");
    areaImage.addEventListener("load", function () {
        manager.itemEnd("smaa_areaImageDataURL");
    });
    areaImage.src = post.SMAAEffect.areaImageDataURL;

    searchImage.addEventListener("load", function () {
        manager.itemEnd("smaa_searchImageDataURL");
    });
    searchImage.src = post.SMAAEffect.searchImageDataURL;

    threeResources["smaa_search"] = searchImage;
    threeResources["smaa_area"] = areaImage;
}