@netforge/asset-library 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/voxel.ts ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The voxel style in the library. Voxel models are
3
+ * other library entries rebuilt as voxels at library build time (source
4
+ * `{ voxelize, res }`), so every voxel id has the same name as its low-poly
5
+ * base and a prompt maps to the same names in either style. The voxel core
6
+ * (grid, voxelizer, greedy mesher with baked occlusion) is the engine's, so
7
+ * the build and the runtime mesh voxels the same way.
8
+ */
9
+ export {
10
+ EMPTY,
11
+ fillInterior,
12
+ fillWhere,
13
+ greedyMesh,
14
+ hash3,
15
+ jitter,
16
+ linearToSrgb8,
17
+ mixRgb,
18
+ packLinear,
19
+ shadeRgb,
20
+ srgbToLinear,
21
+ surfaceVoxels,
22
+ VoxelGrid,
23
+ voxelizeTriangles,
24
+ } from "@netforge/engine/voxel";
25
+ export type { MeshOptions, TriangleShader, VoxelMesh, VoxelSample } from "@netforge/engine/voxel";