Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
}
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;
}