From f3d13a010a95bc93979b1f0695e44ecc00a11552 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Fri, 19 Apr 2024 12:20:57 +0100 Subject: [PATCH] Fix crash in GsplatMany example on WebGL due to no WebGL1 splat support --- examples/src/examples/loaders/gsplat-many/example.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/examples/loaders/gsplat-many/example.mjs b/examples/src/examples/loaders/gsplat-many/example.mjs index fe462e4db15..c57b1883c91 100644 --- a/examples/src/examples/loaders/gsplat-many/example.mjs +++ b/examples/src/examples/loaders/gsplat-many/example.mjs @@ -132,8 +132,8 @@ assetListLoader.load(() => { app.on('update', function (dt) { currentTime += dt; - const material = guitar.gsplat.material; - material.setParameter('uTime', currentTime); + const material = guitar.gsplat?.material; + material?.setParameter('uTime', currentTime); biker2.rotate(0, 80 * dt, 0);