()
| 170 | } |
| 171 | |
| 172 | function 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 | } |
| 180 | initSharedMeshes(); |
| 181 | |
| 182 | // Build the grid. Roughness clamped away from exact 0 / 1 because |
no test coverage detected