Fix CORS image loading issue in procedural-splats. (#5)

This commit is contained in:
Andreas Sundquist
2025-05-27 08:40:58 -07:00
committed by GitHub
parent 96b0b35185
commit 0f931b873a
+1
View File
@@ -340,6 +340,7 @@ export function imageSplats({
constructSplats: async (splats) => {
return new Promise((resolve, reject) => {
const img = new Image();
img.crossOrigin = "anonymous";
img.onerror = reject;
img.onload = () => {
const { width, height } = img;