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

Function initSharedMeshes

examples/pbr-spheres/main.ts:172–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172function initSharedMeshes(): void {
173 const sphere = makeSphere(24, 16);
174 sphereHandle = createMeshExplicit(
175 sphere.vertices, sphere.vertexCount,
176 sphere.indices, sphere.indexCount,
177 ).handle;
178 cubeHandle = genMeshCube(1.0, 1.0, 1.0).handle;
179}
180initSharedMeshes();
181
182// Build the grid. Roughness clamped away from exact 0 / 1 because

Callers 1

main.tsFile · 0.70

Calls 3

createMeshExplicitFunction · 0.90
genMeshCubeFunction · 0.90
makeSphereFunction · 0.85

Tested by

no test coverage detected