MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / updateSceneNodeGeometry

Function updateSceneNodeGeometry

src/scene/index.ts:191–203  ·  view source on GitHub ↗
(
  handle: SceneNodeHandle,
  vertices: number[],
  indices: number[],
)

Source from the content-addressed store, hash-verified

189 * @param indices — Flat array of triangle indices (3 per triangle).
190 */
191export function updateSceneNodeGeometry(
192 handle: SceneNodeHandle,
193 vertices: number[],
194 indices: number[],
195): void {
196 bloom_scene_update_geometry(
197 handle,
198 vertices as any,
199 vertices.length / 12,
200 indices as any,
201 indices.length,
202 );
203}
204
205/**
206 * Set the material color and opacity of a scene node.

Callers 4

spawnTerrainFunction · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
setupWaterFunction · 0.90

Calls 1

Tested by

no test coverage detected