MCPcopy Index your code
hub / github.com/sparkjsdev/spark / getMorphModifier

Function getMorphModifier

examples/splat-transitions/effects/morph.js:126–152  ·  view source on GitHub ↗
(
    gt,
    idx,
    stay,
    trans,
    numObjects,
    randomRadius,
    offsetY,
  )

Source from the content-addressed store, hash-verified

124 }
125
126 function getMorphModifier(
127 gt,
128 idx,
129 stay,
130 trans,
131 numObjects,
132 randomRadius,
133 offsetY,
134 ) {
135 const dyn = morphDyno();
136 return dyno.dynoBlock(
137 { gsplat: dyno.Gsplat },
138 { gsplat: dyno.Gsplat },
139 ({ gsplat }) => ({
140 gsplat: dyn.apply({
141 gsplat,
142 gt,
143 objectIndex: idx,
144 stay,
145 trans,
146 numObjects,
147 randomRadius,
148 offsetY,
149 }).gsplat,
150 }),
151 );
152 }
153
154 const meshes = [];
155 const numObjectsDyn = dyno.dynoInt(splatFiles.length);

Callers 1

initFunction · 0.85

Calls 2

morphDynoFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected