(
inTrans,
fadeIn,
t,
idx,
gt,
centerGLSL,
fixedMinScale,
waves,
)
| 90 | } |
| 91 | |
| 92 | function getTransitionModifier( |
| 93 | inTrans, |
| 94 | fadeIn, |
| 95 | t, |
| 96 | idx, |
| 97 | gt, |
| 98 | centerGLSL, |
| 99 | fixedMinScale, |
| 100 | waves, |
| 101 | ) { |
| 102 | const dyn = contractionDyno(centerGLSL); |
| 103 | return dyno.dynoBlock( |
| 104 | { gsplat: dyno.Gsplat }, |
| 105 | { gsplat: dyno.Gsplat }, |
| 106 | ({ gsplat }) => ({ |
| 107 | gsplat: dyn.apply({ |
| 108 | gsplat, |
| 109 | inTransition: inTrans, |
| 110 | fadeIn, |
| 111 | t, |
| 112 | gt, |
| 113 | objectIndex: idx, |
| 114 | fixedMinScale, |
| 115 | waves, |
| 116 | }).gsplat, |
| 117 | }), |
| 118 | ); |
| 119 | } |
| 120 | |
| 121 | async function loadGLB(file, isEnv = false) { |
| 122 | const url = await getAssetFileURL(file); |
no test coverage detected