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

Method applyGsplat

src/SplatGenerator.ts:117–123  ·  view source on GitHub ↗
(gsplat: DynoVal<typeof Gsplat>)

Source from the content-addressed store, hash-verified

115
116 // Apply the transform to a Gsplat in a dyno program.
117 applyGsplat(gsplat: DynoVal<typeof Gsplat>): DynoVal<typeof Gsplat> {
118 return transformGsplat(gsplat, {
119 scale: this.scale,
120 rotate: this.rotate,
121 translate: this.translate,
122 });
123 }
124
125 // Update the uniforms to match the given transform matrix.
126 updateFromMatrix(transform: THREE.Matrix4) {

Callers 4

staticBoxFunction · 0.95
snowBoxFunction · 0.95
constructGeneratorMethod · 0.80
makeNormalColorModifierFunction · 0.80

Calls 1

transformGsplatFunction · 0.90

Tested by

no test coverage detected