MCPcopy
hub / github.com/sparkjsdev/spark / getTransitionModifier

Function getTransitionModifier

examples/splat-transitions/effects/flow.js:92–119  ·  view source on GitHub ↗
(
    inTrans,
    fadeIn,
    t,
    idx,
    gt,
    centerGLSL,
    fixedMinScale,
    waves,
  )

Source from the content-addressed store, hash-verified

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);

Callers 2

initFunction · 0.70
setupGUIFunction · 0.70

Calls 2

contractionDynoFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected