@playdrop/playdrop-cli 0.3.1-build.1
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/README.md +24 -0
- package/bin/playdrop +3 -0
- package/bin/playdrop-cli +2 -0
- package/config/client-meta.json +45 -0
- package/dist/apiClient.d.ts +9 -0
- package/dist/apiClient.js +21 -0
- package/dist/apps/build.d.ts +24 -0
- package/dist/apps/build.js +561 -0
- package/dist/apps/index.d.ts +15 -0
- package/dist/apps/index.js +23 -0
- package/dist/apps/upload.d.ts +19 -0
- package/dist/apps/upload.js +114 -0
- package/dist/apps/validate.d.ts +3 -0
- package/dist/apps/validate.js +75 -0
- package/dist/catalogue-utils.d.ts +24 -0
- package/dist/catalogue-utils.js +121 -0
- package/dist/catalogue.d.ts +262 -0
- package/dist/catalogue.js +1289 -0
- package/dist/clientInfo.d.ts +6 -0
- package/dist/clientInfo.js +51 -0
- package/dist/commandContext.d.ts +15 -0
- package/dist/commandContext.js +40 -0
- package/dist/commands/asset-packs.d.ts +27 -0
- package/dist/commands/asset-packs.js +508 -0
- package/dist/commands/assets.d.ts +35 -0
- package/dist/commands/assets.js +668 -0
- package/dist/commands/build.d.ts +1 -0
- package/dist/commands/build.js +56 -0
- package/dist/commands/capture.d.ts +11 -0
- package/dist/commands/capture.js +681 -0
- package/dist/commands/create.d.ts +6 -0
- package/dist/commands/create.js +1174 -0
- package/dist/commands/detail.d.ts +5 -0
- package/dist/commands/detail.js +320 -0
- package/dist/commands/dev.d.ts +1 -0
- package/dist/commands/dev.js +281 -0
- package/dist/commands/devServer.d.ts +18 -0
- package/dist/commands/devServer.js +122 -0
- package/dist/commands/devShared.d.ts +24 -0
- package/dist/commands/devShared.js +213 -0
- package/dist/commands/documentation.d.ts +1 -0
- package/dist/commands/documentation.js +152 -0
- package/dist/commands/feedback.d.ts +16 -0
- package/dist/commands/feedback.js +323 -0
- package/dist/commands/format.d.ts +1 -0
- package/dist/commands/format.js +65 -0
- package/dist/commands/generation.d.ts +33 -0
- package/dist/commands/generation.js +509 -0
- package/dist/commands/init.d.ts +13 -0
- package/dist/commands/init.js +300 -0
- package/dist/commands/list.d.ts +7 -0
- package/dist/commands/list.js +347 -0
- package/dist/commands/login.d.ts +10 -0
- package/dist/commands/login.js +117 -0
- package/dist/commands/logout.d.ts +1 -0
- package/dist/commands/logout.js +8 -0
- package/dist/commands/migrateCatalogueV2.d.ts +1 -0
- package/dist/commands/migrateCatalogueV2.js +142 -0
- package/dist/commands/upgrade.d.ts +1 -0
- package/dist/commands/upgrade.js +28 -0
- package/dist/commands/upload.d.ts +4 -0
- package/dist/commands/upload.js +651 -0
- package/dist/commands/validate.d.ts +1 -0
- package/dist/commands/validate.js +53 -0
- package/dist/commands/versions.d.ts +17 -0
- package/dist/commands/versions.js +384 -0
- package/dist/commands/whoami.d.ts +1 -0
- package/dist/commands/whoami.js +72 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +41 -0
- package/dist/environment.d.ts +11 -0
- package/dist/environment.js +66 -0
- package/dist/http.d.ts +6 -0
- package/dist/http.js +49 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +700 -0
- package/dist/messages.d.ts +12 -0
- package/dist/messages.js +65 -0
- package/dist/playwright.d.ts +10 -0
- package/dist/playwright.js +100 -0
- package/dist/proxyFetch.d.ts +14 -0
- package/dist/proxyFetch.js +203 -0
- package/dist/taskSelection.d.ts +16 -0
- package/dist/taskSelection.js +205 -0
- package/dist/taskUtils.d.ts +4 -0
- package/dist/taskUtils.js +35 -0
- package/dist/uploadLog.d.ts +15 -0
- package/dist/uploadLog.js +118 -0
- package/node_modules/@playdrop/ai-client/dist/index.d.ts +377 -0
- package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +1 -0
- package/node_modules/@playdrop/ai-client/dist/index.js +318 -0
- package/node_modules/@playdrop/ai-client/package.json +21 -0
- package/node_modules/@playdrop/api-client/dist/client.d.ts +299 -0
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/client.js +1908 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts +177 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -0
- package/node_modules/@playdrop/api-client/dist/index.js +329 -0
- package/node_modules/@playdrop/api-client/package.json +32 -0
- package/node_modules/@playdrop/config/client-meta.json +45 -0
- package/node_modules/@playdrop/config/dist/src/constants.d.ts +9 -0
- package/node_modules/@playdrop/config/dist/src/constants.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/constants.js +10 -0
- package/node_modules/@playdrop/config/dist/src/index.d.ts +13 -0
- package/node_modules/@playdrop/config/dist/src/index.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/index.js +197 -0
- package/node_modules/@playdrop/config/dist/src/server/fastify.d.ts +12 -0
- package/node_modules/@playdrop/config/dist/src/server/fastify.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/server/fastify.js +103 -0
- package/node_modules/@playdrop/config/dist/src/types.d.ts +59 -0
- package/node_modules/@playdrop/config/dist/src/types.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/types.js +2 -0
- package/node_modules/@playdrop/config/dist/test/validateClientEnvironment.test.d.ts +2 -0
- package/node_modules/@playdrop/config/dist/test/validateClientEnvironment.test.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/test/validateClientEnvironment.test.js +63 -0
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@playdrop/config/package.json +19 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-cleaner.d.ts +13 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-cleaner.js +146 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-cleaner.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-utils.d.ts +47 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-utils.js +328 -0
- package/node_modules/@playdrop/entity-core/dist/src/entity-utils.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/format-utils.d.ts +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/format-utils.js +38 -0
- package/node_modules/@playdrop/entity-core/dist/src/format-utils.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/geometry.d.ts +23 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/geometry.js +11 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/geometry.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/index.d.ts +4 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/index.js +21 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/index.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/common.d.ts +4 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/common.js +24 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/common.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/index.d.ts +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/index.js +20 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/index.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/textured-builder.d.ts +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/textured-builder.js +431 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/textured-builder.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/types.d.ts +6 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/types.js +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/types.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/voxel-builder.d.ts +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/voxel-builder.js +396 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/voxel-builder.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/builder.d.ts +12 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/builder.js +199 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/builder.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/index.d.ts +4 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/index.js +18 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/index.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/scanner.d.ts +43 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/scanner.js +142 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/scanner.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/artifacts.d.ts +26 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/artifacts.js +65 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/artifacts.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/face-map.d.ts +33 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/face-map.js +175 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/textures/face-map.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/humanoid_r15.json +1517 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/humanoid_r6.json +61 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/index.d.ts +10 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/index.js +23 -0
- package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/index.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/index.d.ts +19 -0
- package/node_modules/@playdrop/entity-core/dist/src/index.js +36 -0
- package/node_modules/@playdrop/entity-core/dist/src/index.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/materials.d.ts +26 -0
- package/node_modules/@playdrop/entity-core/dist/src/materials.js +188 -0
- package/node_modules/@playdrop/entity-core/dist/src/materials.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/palette_tools.d.ts +68 -0
- package/node_modules/@playdrop/entity-core/dist/src/palette_tools.js +491 -0
- package/node_modules/@playdrop/entity-core/dist/src/palette_tools.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/serialization.d.ts +4 -0
- package/node_modules/@playdrop/entity-core/dist/src/serialization.js +382 -0
- package/node_modules/@playdrop/entity-core/dist/src/serialization.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/textures.d.ts +29 -0
- package/node_modules/@playdrop/entity-core/dist/src/textures.js +214 -0
- package/node_modules/@playdrop/entity-core/dist/src/textures.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/infer-face.d.ts +9 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/infer-face.js +316 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/infer-face.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/layer-mode.d.ts +9 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/layer-mode.js +153 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/layer-mode.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +2 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/merge-overlay.js +121 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/slice.d.ts +20 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/slice.js +398 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/slice.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/upscale.d.ts +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/upscale.js +210 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/upscale.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/slice.d.ts +12 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/slice.js +81 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/slice.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/textured-to-voxel.d.ts +12 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/textured-to-voxel.js +323 -0
- package/node_modules/@playdrop/entity-core/dist/src/transforms/voxels/textured-to-voxel.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/types.d.ts +168 -0
- package/node_modules/@playdrop/entity-core/dist/src/types.js +3 -0
- package/node_modules/@playdrop/entity-core/dist/src/types.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/validation.d.ts +24 -0
- package/node_modules/@playdrop/entity-core/dist/src/validation.js +641 -0
- package/node_modules/@playdrop/entity-core/dist/src/validation.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels/greedy-mesher.d.ts +11 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels/greedy-mesher.js +135 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels/greedy-mesher.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels.d.ts +23 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels.js +57 -0
- package/node_modules/@playdrop/entity-core/dist/src/voxels.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/entity-utils.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/entity-utils.test.js +92 -0
- package/node_modules/@playdrop/entity-core/dist/test/entity-utils.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/greedy-mesher.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/greedy-mesher.test.js +48 -0
- package/node_modules/@playdrop/entity-core/dist/test/greedy-mesher.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/humanoid/humanoid-builders.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/humanoid/humanoid-builders.test.js +270 -0
- package/node_modules/@playdrop/entity-core/dist/test/humanoid/humanoid-builders.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/index.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/index.test.js +48 -0
- package/node_modules/@playdrop/entity-core/dist/test/index.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/layer-mode.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/layer-mode.test.js +67 -0
- package/node_modules/@playdrop/entity-core/dist/test/layer-mode.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/materials.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/materials.test.js +55 -0
- package/node_modules/@playdrop/entity-core/dist/test/materials.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/palette-tools.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/palette-tools.test.js +124 -0
- package/node_modules/@playdrop/entity-core/dist/test/palette-tools.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/serialization.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/serialization.test.js +35 -0
- package/node_modules/@playdrop/entity-core/dist/test/serialization.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/textures.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/textures.test.js +120 -0
- package/node_modules/@playdrop/entity-core/dist/test/textures.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/types.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/types.test.js +32 -0
- package/node_modules/@playdrop/entity-core/dist/test/types.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/upscale.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/upscale.test.js +100 -0
- package/node_modules/@playdrop/entity-core/dist/test/upscale.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/validation.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/validation.test.js +61 -0
- package/node_modules/@playdrop/entity-core/dist/test/validation.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/voxels.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-core/dist/test/voxels.test.js +51 -0
- package/node_modules/@playdrop/entity-core/dist/test/voxels.test.js.map +1 -0
- package/node_modules/@playdrop/entity-core/package.json +20 -0
- package/node_modules/@playdrop/entity-three/dist/src/animations.d.ts +4 -0
- package/node_modules/@playdrop/entity-three/dist/src/animations.js +70 -0
- package/node_modules/@playdrop/entity-three/dist/src/builders.d.ts +8 -0
- package/node_modules/@playdrop/entity-three/dist/src/builders.js +330 -0
- package/node_modules/@playdrop/entity-three/dist/src/context.d.ts +24 -0
- package/node_modules/@playdrop/entity-three/dist/src/context.js +32 -0
- package/node_modules/@playdrop/entity-three/dist/src/exporters/glb.d.ts +100 -0
- package/node_modules/@playdrop/entity-three/dist/src/exporters/glb.js +926 -0
- package/node_modules/@playdrop/entity-three/dist/src/exporters/image.d.ts +18 -0
- package/node_modules/@playdrop/entity-three/dist/src/exporters/image.js +288 -0
- package/node_modules/@playdrop/entity-three/dist/src/index.d.ts +17 -0
- package/node_modules/@playdrop/entity-three/dist/src/index.js +15 -0
- package/node_modules/@playdrop/entity-three/dist/src/instantiate.d.ts +40 -0
- package/node_modules/@playdrop/entity-three/dist/src/instantiate.js +70 -0
- package/node_modules/@playdrop/entity-three/dist/src/nodes.d.ts +8 -0
- package/node_modules/@playdrop/entity-three/dist/src/nodes.js +63 -0
- package/node_modules/@playdrop/entity-three/dist/src/overlays.d.ts +7 -0
- package/node_modules/@playdrop/entity-three/dist/src/overlays.js +97 -0
- package/node_modules/@playdrop/entity-three/dist/src/primitives.d.ts +4 -0
- package/node_modules/@playdrop/entity-three/dist/src/primitives.js +20 -0
- package/node_modules/@playdrop/entity-three/dist/src/scene.d.ts +3 -0
- package/node_modules/@playdrop/entity-three/dist/src/scene.js +144 -0
- package/node_modules/@playdrop/entity-three/dist/src/skinned-mesh.d.ts +29 -0
- package/node_modules/@playdrop/entity-three/dist/src/skinned-mesh.js +625 -0
- package/node_modules/@playdrop/entity-three/dist/src/texture-atlas.d.ts +13 -0
- package/node_modules/@playdrop/entity-three/dist/src/texture-atlas.js +107 -0
- package/node_modules/@playdrop/entity-three/dist/src/textures.d.ts +17 -0
- package/node_modules/@playdrop/entity-three/dist/src/textures.js +191 -0
- package/node_modules/@playdrop/entity-three/dist/src/types.d.ts +112 -0
- package/node_modules/@playdrop/entity-three/dist/src/types.js +1 -0
- package/node_modules/@playdrop/entity-three/dist/src/voxels/faces.d.ts +28 -0
- package/node_modules/@playdrop/entity-three/dist/src/voxels/faces.js +442 -0
- package/node_modules/@playdrop/entity-three/dist/src/voxels/mesher.d.ts +24 -0
- package/node_modules/@playdrop/entity-three/dist/src/voxels/mesher.js +88 -0
- package/node_modules/@playdrop/entity-three/dist/test/export-image.playwright.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/export-image.playwright.test.js +116 -0
- package/node_modules/@playdrop/entity-three/dist/test/fixtures/render-worker.d.ts +20 -0
- package/node_modules/@playdrop/entity-three/dist/test/fixtures/render-worker.js +63 -0
- package/node_modules/@playdrop/entity-three/dist/test/glb-skinned.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/glb-skinned.test.js +86 -0
- package/node_modules/@playdrop/entity-three/dist/test/index.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/index.test.js +8 -0
- package/node_modules/@playdrop/entity-three/dist/test/instantiate.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/instantiate.test.js +68 -0
- package/node_modules/@playdrop/entity-three/dist/test/overlays.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/overlays.test.js +20 -0
- package/node_modules/@playdrop/entity-three/dist/test/scene-filter.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/scene-filter.test.js +51 -0
- package/node_modules/@playdrop/entity-three/dist/test/scene-smoke.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/scene-smoke.test.js +63 -0
- package/node_modules/@playdrop/entity-three/dist/test/skinned-mesh.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/skinned-mesh.test.js +51 -0
- package/node_modules/@playdrop/entity-three/dist/test/textured-overlay.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/textured-overlay.test.js +116 -0
- package/node_modules/@playdrop/entity-three/dist/test/voxels.test.d.ts +1 -0
- package/node_modules/@playdrop/entity-three/dist/test/voxels.test.js +20 -0
- package/node_modules/@playdrop/entity-three/package.json +27 -0
- package/node_modules/@playdrop/types/dist/api.d.ts +647 -0
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/api.js +39 -0
- package/node_modules/@playdrop/types/dist/app.d.ts +35 -0
- package/node_modules/@playdrop/types/dist/app.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/app.js +64 -0
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts +106 -0
- package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/asset-pack.js +4 -0
- package/node_modules/@playdrop/types/dist/asset.d.ts +188 -0
- package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/asset.js +100 -0
- package/node_modules/@playdrop/types/dist/ecs.d.ts +39 -0
- package/node_modules/@playdrop/types/dist/ecs.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/ecs.js +93 -0
- package/node_modules/@playdrop/types/dist/engine-builtins.d.ts +17 -0
- package/node_modules/@playdrop/types/dist/engine-builtins.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/engine-builtins.js +577 -0
- package/node_modules/@playdrop/types/dist/entity.d.ts +36 -0
- package/node_modules/@playdrop/types/dist/entity.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/entity.js +40 -0
- package/node_modules/@playdrop/types/dist/graph.d.ts +34 -0
- package/node_modules/@playdrop/types/dist/graph.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/graph.js +8 -0
- package/node_modules/@playdrop/types/dist/index.d.ts +10 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/index.js +14 -0
- package/node_modules/@playdrop/types/dist/profile-asset-semantics.d.ts +22 -0
- package/node_modules/@playdrop/types/dist/profile-asset-semantics.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/profile-asset-semantics.js +105 -0
- package/node_modules/@playdrop/types/dist/realtime.d.ts +221 -0
- package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/realtime.js +7 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +149 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/version.js +76 -0
- package/node_modules/@playdrop/types/package.json +63 -0
- package/node_modules/three/LICENSE +21 -0
- package/node_modules/three/README.md +86 -0
- package/node_modules/three/build/three.cjs +53732 -0
- package/node_modules/three/build/three.module.js +53316 -0
- package/node_modules/three/build/three.module.min.js +6 -0
- package/node_modules/three/examples/fonts/LICENSE +13 -0
- package/node_modules/three/examples/fonts/README.md +11 -0
- package/node_modules/three/examples/fonts/droid/NOTICE +190 -0
- package/node_modules/three/examples/fonts/droid/README.txt +18 -0
- package/node_modules/three/examples/fonts/droid/droid_sans_bold.typeface.json +1 -0
- package/node_modules/three/examples/fonts/droid/droid_sans_mono_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/droid/droid_sans_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/droid/droid_serif_bold.typeface.json +1 -0
- package/node_modules/three/examples/fonts/droid/droid_serif_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/gentilis_bold.typeface.json +1 -0
- package/node_modules/three/examples/fonts/gentilis_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/helvetiker_bold.typeface.json +1 -0
- package/node_modules/three/examples/fonts/helvetiker_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/optimer_bold.typeface.json +1 -0
- package/node_modules/three/examples/fonts/optimer_regular.typeface.json +1 -0
- package/node_modules/three/examples/fonts/ttf/README.md +9 -0
- package/node_modules/three/examples/fonts/ttf/kenpixel.ttf +0 -0
- package/node_modules/three/examples/jsm/Addons.js +295 -0
- package/node_modules/three/examples/jsm/animation/AnimationClipCreator.js +116 -0
- package/node_modules/three/examples/jsm/animation/CCDIKSolver.js +482 -0
- package/node_modules/three/examples/jsm/animation/MMDAnimationHelper.js +1207 -0
- package/node_modules/three/examples/jsm/animation/MMDPhysics.js +1406 -0
- package/node_modules/three/examples/jsm/cameras/CinematicCamera.js +208 -0
- package/node_modules/three/examples/jsm/capabilities/WebGL.js +108 -0
- package/node_modules/three/examples/jsm/capabilities/WebGPU.js +57 -0
- package/node_modules/three/examples/jsm/controls/ArcballControls.js +3224 -0
- package/node_modules/three/examples/jsm/controls/DragControls.js +221 -0
- package/node_modules/three/examples/jsm/controls/FirstPersonControls.js +325 -0
- package/node_modules/three/examples/jsm/controls/FlyControls.js +326 -0
- package/node_modules/three/examples/jsm/controls/MapControls.js +28 -0
- package/node_modules/three/examples/jsm/controls/OrbitControls.js +1506 -0
- package/node_modules/three/examples/jsm/controls/PointerLockControls.js +162 -0
- package/node_modules/three/examples/jsm/controls/TrackballControls.js +828 -0
- package/node_modules/three/examples/jsm/controls/TransformControls.js +1573 -0
- package/node_modules/three/examples/jsm/csm/CSM.js +384 -0
- package/node_modules/three/examples/jsm/csm/CSMFrustum.js +152 -0
- package/node_modules/three/examples/jsm/csm/CSMHelper.js +193 -0
- package/node_modules/three/examples/jsm/csm/CSMShader.js +295 -0
- package/node_modules/three/examples/jsm/curves/CurveExtras.js +422 -0
- package/node_modules/three/examples/jsm/curves/NURBSCurve.js +80 -0
- package/node_modules/three/examples/jsm/curves/NURBSSurface.js +52 -0
- package/node_modules/three/examples/jsm/curves/NURBSUtils.js +542 -0
- package/node_modules/three/examples/jsm/curves/NURBSVolume.js +62 -0
- package/node_modules/three/examples/jsm/effects/AnaglyphEffect.js +154 -0
- package/node_modules/three/examples/jsm/effects/AsciiEffect.js +263 -0
- package/node_modules/three/examples/jsm/effects/OutlineEffect.js +539 -0
- package/node_modules/three/examples/jsm/effects/ParallaxBarrierEffect.js +119 -0
- package/node_modules/three/examples/jsm/effects/PeppersGhostEffect.js +153 -0
- package/node_modules/three/examples/jsm/effects/StereoEffect.js +55 -0
- package/node_modules/three/examples/jsm/environments/DebugEnvironment.js +52 -0
- package/node_modules/three/examples/jsm/environments/RoomEnvironment.js +148 -0
- package/node_modules/three/examples/jsm/exporters/DRACOExporter.js +267 -0
- package/node_modules/three/examples/jsm/exporters/EXRExporter.js +579 -0
- package/node_modules/three/examples/jsm/exporters/GLTFExporter.js +3309 -0
- package/node_modules/three/examples/jsm/exporters/KTX2Exporter.js +292 -0
- package/node_modules/three/examples/jsm/exporters/MMDExporter.js +217 -0
- package/node_modules/three/examples/jsm/exporters/OBJExporter.js +284 -0
- package/node_modules/three/examples/jsm/exporters/PLYExporter.js +528 -0
- package/node_modules/three/examples/jsm/exporters/STLExporter.js +199 -0
- package/node_modules/three/examples/jsm/exporters/USDZExporter.js +720 -0
- package/node_modules/three/examples/jsm/geometries/BoxLineGeometry.js +69 -0
- package/node_modules/three/examples/jsm/geometries/ConvexGeometry.js +53 -0
- package/node_modules/three/examples/jsm/geometries/DecalGeometry.js +356 -0
- package/node_modules/three/examples/jsm/geometries/InstancedPointsGeometry.js +174 -0
- package/node_modules/three/examples/jsm/geometries/ParametricGeometries.js +254 -0
- package/node_modules/three/examples/jsm/geometries/ParametricGeometry.js +139 -0
- package/node_modules/three/examples/jsm/geometries/RoundedBoxGeometry.js +155 -0
- package/node_modules/three/examples/jsm/geometries/SDFGeometryGenerator.js +144 -0
- package/node_modules/three/examples/jsm/geometries/TeapotGeometry.js +704 -0
- package/node_modules/three/examples/jsm/geometries/TextGeometry.js +57 -0
- package/node_modules/three/examples/jsm/helpers/LightProbeHelper.js +130 -0
- package/node_modules/three/examples/jsm/helpers/OctreeHelper.js +73 -0
- package/node_modules/three/examples/jsm/helpers/PositionalAudioHelper.js +109 -0
- package/node_modules/three/examples/jsm/helpers/RectAreaLightHelper.js +85 -0
- package/node_modules/three/examples/jsm/helpers/TextureHelper.js +237 -0
- package/node_modules/three/examples/jsm/helpers/VertexNormalsHelper.js +96 -0
- package/node_modules/three/examples/jsm/helpers/VertexTangentsHelper.js +88 -0
- package/node_modules/three/examples/jsm/helpers/ViewHelper.js +333 -0
- package/node_modules/three/examples/jsm/interactive/HTMLMesh.js +572 -0
- package/node_modules/three/examples/jsm/interactive/InteractiveGroup.js +116 -0
- package/node_modules/three/examples/jsm/interactive/SelectionBox.js +227 -0
- package/node_modules/three/examples/jsm/interactive/SelectionHelper.js +104 -0
- package/node_modules/three/examples/jsm/libs/ammo.wasm.js +822 -0
- package/node_modules/three/examples/jsm/libs/ammo.wasm.wasm +0 -0
- package/node_modules/three/examples/jsm/libs/basis/README.md +46 -0
- package/node_modules/three/examples/jsm/libs/basis/basis_transcoder.js +21 -0
- package/node_modules/three/examples/jsm/libs/basis/basis_transcoder.wasm +0 -0
- package/node_modules/three/examples/jsm/libs/chevrotain.module.min.js +141 -0
- package/node_modules/three/examples/jsm/libs/draco/README.md +32 -0
- package/node_modules/three/examples/jsm/libs/draco/draco_decoder.js +34 -0
- package/node_modules/three/examples/jsm/libs/draco/draco_decoder.wasm +0 -0
- package/node_modules/three/examples/jsm/libs/draco/draco_encoder.js +33 -0
- package/node_modules/three/examples/jsm/libs/draco/draco_wasm_wrapper.js +117 -0
- package/node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.js +33 -0
- package/node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.wasm +0 -0
- package/node_modules/three/examples/jsm/libs/draco/gltf/draco_encoder.js +33 -0
- package/node_modules/three/examples/jsm/libs/draco/gltf/draco_wasm_wrapper.js +116 -0
- package/node_modules/three/examples/jsm/libs/ecsy.module.js +1792 -0
- package/node_modules/three/examples/jsm/libs/fflate.module.js +2474 -0
- package/node_modules/three/examples/jsm/libs/ktx-parse.module.js +1 -0
- package/node_modules/three/examples/jsm/libs/lil-gui.module.min.js +8 -0
- package/node_modules/three/examples/jsm/libs/lottie_canvas.module.js +14849 -0
- package/node_modules/three/examples/jsm/libs/meshopt_decoder.module.js +178 -0
- package/node_modules/three/examples/jsm/libs/mikktspace.module.js +128 -0
- package/node_modules/three/examples/jsm/libs/mmdparser.module.js +11530 -0
- package/node_modules/three/examples/jsm/libs/motion-controllers.module.js +397 -0
- package/node_modules/three/examples/jsm/libs/opentype.module.js +14506 -0
- package/node_modules/three/examples/jsm/libs/potpack.module.js +125 -0
- package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.js +8743 -0
- package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.module.js +8749 -0
- package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.wasm +0 -0
- package/node_modules/three/examples/jsm/libs/stats.module.js +167 -0
- package/node_modules/three/examples/jsm/libs/surfaceNet.js +201 -0
- package/node_modules/three/examples/jsm/libs/tween.module.js +858 -0
- package/node_modules/three/examples/jsm/libs/utif.module.js +1665 -0
- package/node_modules/three/examples/jsm/libs/zstddec.module.js +1 -0
- package/node_modules/three/examples/jsm/lights/IESSpotLight.js +25 -0
- package/node_modules/three/examples/jsm/lights/LightProbeGenerator.js +286 -0
- package/node_modules/three/examples/jsm/lights/RectAreaLightUniformsLib.js +79 -0
- package/node_modules/three/examples/jsm/lines/Line2.js +19 -0
- package/node_modules/three/examples/jsm/lines/LineGeometry.js +79 -0
- package/node_modules/three/examples/jsm/lines/LineMaterial.js +619 -0
- package/node_modules/three/examples/jsm/lines/LineSegments2.js +361 -0
- package/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +241 -0
- package/node_modules/three/examples/jsm/lines/Wireframe.js +56 -0
- package/node_modules/three/examples/jsm/lines/WireframeGeometry2.js +24 -0
- package/node_modules/three/examples/jsm/loaders/3DMLoader.js +1772 -0
- package/node_modules/three/examples/jsm/loaders/3MFLoader.js +1478 -0
- package/node_modules/three/examples/jsm/loaders/AMFLoader.js +521 -0
- package/node_modules/three/examples/jsm/loaders/BVHLoader.js +437 -0
- package/node_modules/three/examples/jsm/loaders/ColladaLoader.js +4116 -0
- package/node_modules/three/examples/jsm/loaders/DDSLoader.js +318 -0
- package/node_modules/three/examples/jsm/loaders/DRACOLoader.js +613 -0
- package/node_modules/three/examples/jsm/loaders/EXRLoader.js +2309 -0
- package/node_modules/three/examples/jsm/loaders/FBXLoader.js +4314 -0
- package/node_modules/three/examples/jsm/loaders/FontLoader.js +183 -0
- package/node_modules/three/examples/jsm/loaders/GCodeLoader.js +261 -0
- package/node_modules/three/examples/jsm/loaders/GLTFLoader.js +4663 -0
- package/node_modules/three/examples/jsm/loaders/HDRCubeTextureLoader.js +115 -0
- package/node_modules/three/examples/jsm/loaders/IESLoader.js +337 -0
- package/node_modules/three/examples/jsm/loaders/KMZLoader.js +130 -0
- package/node_modules/three/examples/jsm/loaders/KTX2Loader.js +932 -0
- package/node_modules/three/examples/jsm/loaders/KTXLoader.js +176 -0
- package/node_modules/three/examples/jsm/loaders/LDrawLoader.js +2470 -0
- package/node_modules/three/examples/jsm/loaders/LUT3dlLoader.js +183 -0
- package/node_modules/three/examples/jsm/loaders/LUTCubeLoader.js +167 -0
- package/node_modules/three/examples/jsm/loaders/LUTImageLoader.js +163 -0
- package/node_modules/three/examples/jsm/loaders/LWOLoader.js +1052 -0
- package/node_modules/three/examples/jsm/loaders/LogLuvLoader.js +606 -0
- package/node_modules/three/examples/jsm/loaders/LottieLoader.js +77 -0
- package/node_modules/three/examples/jsm/loaders/MD2Loader.js +399 -0
- package/node_modules/three/examples/jsm/loaders/MDDLoader.js +102 -0
- package/node_modules/three/examples/jsm/loaders/MMDLoader.js +2276 -0
- package/node_modules/three/examples/jsm/loaders/MTLLoader.js +567 -0
- package/node_modules/three/examples/jsm/loaders/MaterialXLoader.js +852 -0
- package/node_modules/three/examples/jsm/loaders/NRRDLoader.js +686 -0
- package/node_modules/three/examples/jsm/loaders/OBJLoader.js +905 -0
- package/node_modules/three/examples/jsm/loaders/PCDLoader.js +467 -0
- package/node_modules/three/examples/jsm/loaders/PDBLoader.js +232 -0
- package/node_modules/three/examples/jsm/loaders/PLYLoader.js +771 -0
- package/node_modules/three/examples/jsm/loaders/PVRLoader.js +251 -0
- package/node_modules/three/examples/jsm/loaders/RGBELoader.js +450 -0
- package/node_modules/three/examples/jsm/loaders/RGBMLoader.js +1065 -0
- package/node_modules/three/examples/jsm/loaders/STLLoader.js +410 -0
- package/node_modules/three/examples/jsm/loaders/SVGLoader.js +3173 -0
- package/node_modules/three/examples/jsm/loaders/TDSLoader.js +1124 -0
- package/node_modules/three/examples/jsm/loaders/TGALoader.js +517 -0
- package/node_modules/three/examples/jsm/loaders/TIFFLoader.js +36 -0
- package/node_modules/three/examples/jsm/loaders/TTFLoader.js +214 -0
- package/node_modules/three/examples/jsm/loaders/TiltLoader.js +520 -0
- package/node_modules/three/examples/jsm/loaders/USDZLoader.js +822 -0
- package/node_modules/three/examples/jsm/loaders/VOXLoader.js +311 -0
- package/node_modules/three/examples/jsm/loaders/VRMLLoader.js +3533 -0
- package/node_modules/three/examples/jsm/loaders/VTKLoader.js +1163 -0
- package/node_modules/three/examples/jsm/loaders/XYZLoader.js +106 -0
- package/node_modules/three/examples/jsm/loaders/lwo/IFFParser.js +1214 -0
- package/node_modules/three/examples/jsm/loaders/lwo/LWO2Parser.js +414 -0
- package/node_modules/three/examples/jsm/loaders/lwo/LWO3Parser.js +373 -0
- package/node_modules/three/examples/jsm/materials/MeshGouraudMaterial.js +426 -0
- package/node_modules/three/examples/jsm/materials/MeshPostProcessingMaterial.js +144 -0
- package/node_modules/three/examples/jsm/math/Capsule.js +82 -0
- package/node_modules/three/examples/jsm/math/ColorConverter.js +36 -0
- package/node_modules/three/examples/jsm/math/ConvexHull.js +1271 -0
- package/node_modules/three/examples/jsm/math/ImprovedNoise.js +71 -0
- package/node_modules/three/examples/jsm/math/Lut.js +204 -0
- package/node_modules/three/examples/jsm/math/MeshSurfaceSampler.js +250 -0
- package/node_modules/three/examples/jsm/math/OBB.js +423 -0
- package/node_modules/three/examples/jsm/math/Octree.js +540 -0
- package/node_modules/three/examples/jsm/math/SimplexNoise.js +444 -0
- package/node_modules/three/examples/jsm/misc/ConvexObjectBreaker.js +519 -0
- package/node_modules/three/examples/jsm/misc/GPUComputationRenderer.js +446 -0
- package/node_modules/three/examples/jsm/misc/Gyroscope.js +66 -0
- package/node_modules/three/examples/jsm/misc/MD2Character.js +276 -0
- package/node_modules/three/examples/jsm/misc/MD2CharacterComplex.js +576 -0
- package/node_modules/three/examples/jsm/misc/MorphAnimMesh.js +75 -0
- package/node_modules/three/examples/jsm/misc/MorphBlendMesh.js +322 -0
- package/node_modules/three/examples/jsm/misc/ProgressiveLightMap.js +323 -0
- package/node_modules/three/examples/jsm/misc/RollerCoaster.js +566 -0
- package/node_modules/three/examples/jsm/misc/Timer.js +128 -0
- package/node_modules/three/examples/jsm/misc/TubePainter.js +202 -0
- package/node_modules/three/examples/jsm/misc/Volume.js +473 -0
- package/node_modules/three/examples/jsm/misc/VolumeSlice.js +229 -0
- package/node_modules/three/examples/jsm/modifiers/CurveModifier.js +344 -0
- package/node_modules/three/examples/jsm/modifiers/EdgeSplitModifier.js +279 -0
- package/node_modules/three/examples/jsm/modifiers/SimplifyModifier.js +617 -0
- package/node_modules/three/examples/jsm/modifiers/TessellateModifier.js +307 -0
- package/node_modules/three/examples/jsm/nodes/Nodes.js +193 -0
- package/node_modules/three/examples/jsm/nodes/accessors/BitangentNode.js +89 -0
- package/node_modules/three/examples/jsm/nodes/accessors/BufferAttributeNode.js +127 -0
- package/node_modules/three/examples/jsm/nodes/accessors/BufferNode.js +30 -0
- package/node_modules/three/examples/jsm/nodes/accessors/CameraNode.js +119 -0
- package/node_modules/three/examples/jsm/nodes/accessors/CubeTextureNode.js +61 -0
- package/node_modules/three/examples/jsm/nodes/accessors/InstanceNode.js +71 -0
- package/node_modules/three/examples/jsm/nodes/accessors/InstancedPointsMaterialNode.js +21 -0
- package/node_modules/three/examples/jsm/nodes/accessors/MaterialNode.js +314 -0
- package/node_modules/three/examples/jsm/nodes/accessors/MaterialReferenceNode.js +51 -0
- package/node_modules/three/examples/jsm/nodes/accessors/ModelNode.js +33 -0
- package/node_modules/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.js +39 -0
- package/node_modules/three/examples/jsm/nodes/accessors/MorphNode.js +245 -0
- package/node_modules/three/examples/jsm/nodes/accessors/NormalNode.js +96 -0
- package/node_modules/three/examples/jsm/nodes/accessors/Object3DNode.js +150 -0
- package/node_modules/three/examples/jsm/nodes/accessors/PointUVNode.js +26 -0
- package/node_modules/three/examples/jsm/nodes/accessors/PositionNode.js +104 -0
- package/node_modules/three/examples/jsm/nodes/accessors/ReferenceNode.js +102 -0
- package/node_modules/three/examples/jsm/nodes/accessors/ReflectVectorNode.js +35 -0
- package/node_modules/three/examples/jsm/nodes/accessors/SceneNode.js +52 -0
- package/node_modules/three/examples/jsm/nodes/accessors/SkinningNode.js +103 -0
- package/node_modules/three/examples/jsm/nodes/accessors/StorageBufferNode.js +54 -0
- package/node_modules/three/examples/jsm/nodes/accessors/TangentNode.js +103 -0
- package/node_modules/three/examples/jsm/nodes/accessors/TextureBicubicNode.js +94 -0
- package/node_modules/three/examples/jsm/nodes/accessors/TextureNode.js +367 -0
- package/node_modules/three/examples/jsm/nodes/accessors/TextureSizeNode.js +35 -0
- package/node_modules/three/examples/jsm/nodes/accessors/TextureStoreNode.js +82 -0
- package/node_modules/three/examples/jsm/nodes/accessors/UVNode.js +47 -0
- package/node_modules/three/examples/jsm/nodes/accessors/UserDataNode.js +29 -0
- package/node_modules/three/examples/jsm/nodes/accessors/VertexColorNode.js +70 -0
- package/node_modules/three/examples/jsm/nodes/code/CodeNode.js +78 -0
- package/node_modules/three/examples/jsm/nodes/code/ExpressionNode.js +37 -0
- package/node_modules/three/examples/jsm/nodes/code/FunctionCallNode.js +96 -0
- package/node_modules/three/examples/jsm/nodes/code/FunctionNode.js +138 -0
- package/node_modules/three/examples/jsm/nodes/code/ScriptableNode.js +488 -0
- package/node_modules/three/examples/jsm/nodes/code/ScriptableValueNode.js +167 -0
- package/node_modules/three/examples/jsm/nodes/core/ArrayUniformNode.js +26 -0
- package/node_modules/three/examples/jsm/nodes/core/AssignNode.js +72 -0
- package/node_modules/three/examples/jsm/nodes/core/AttributeNode.js +108 -0
- package/node_modules/three/examples/jsm/nodes/core/BypassNode.js +45 -0
- package/node_modules/three/examples/jsm/nodes/core/CacheNode.js +49 -0
- package/node_modules/three/examples/jsm/nodes/core/ConstNode.js +32 -0
- package/node_modules/three/examples/jsm/nodes/core/ContextNode.js +61 -0
- package/node_modules/three/examples/jsm/nodes/core/IndexNode.js +66 -0
- package/node_modules/three/examples/jsm/nodes/core/InputNode.js +83 -0
- package/node_modules/three/examples/jsm/nodes/core/LightingModel.js +17 -0
- package/node_modules/three/examples/jsm/nodes/core/Node.js +483 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeAttribute.js +15 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeBuilder.js +1256 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeCache.js +26 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeCode.js +15 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeFrame.js +143 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeFunction.js +22 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeFunctionInput.js +17 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeKeywords.js +80 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeParser.js +11 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeUniform.js +40 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeUtils.js +210 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeVar.js +14 -0
- package/node_modules/three/examples/jsm/nodes/core/NodeVarying.js +17 -0
- package/node_modules/three/examples/jsm/nodes/core/OutputStructNode.js +62 -0
- package/node_modules/three/examples/jsm/nodes/core/ParameterNode.js +33 -0
- package/node_modules/three/examples/jsm/nodes/core/PropertyNode.js +72 -0
- package/node_modules/three/examples/jsm/nodes/core/StackNode.js +89 -0
- package/node_modules/three/examples/jsm/nodes/core/StructTypeNode.js +24 -0
- package/node_modules/three/examples/jsm/nodes/core/TempNode.js +58 -0
- package/node_modules/three/examples/jsm/nodes/core/UniformGroup.js +13 -0
- package/node_modules/three/examples/jsm/nodes/core/UniformGroupNode.js +36 -0
- package/node_modules/three/examples/jsm/nodes/core/UniformNode.js +80 -0
- package/node_modules/three/examples/jsm/nodes/core/VarNode.js +60 -0
- package/node_modules/three/examples/jsm/nodes/core/VaryingNode.js +65 -0
- package/node_modules/three/examples/jsm/nodes/core/constants.js +28 -0
- package/node_modules/three/examples/jsm/nodes/display/AfterImageNode.js +148 -0
- package/node_modules/three/examples/jsm/nodes/display/AnamorphicNode.js +148 -0
- package/node_modules/three/examples/jsm/nodes/display/BlendModeNode.js +99 -0
- package/node_modules/three/examples/jsm/nodes/display/BumpMapNode.js +99 -0
- package/node_modules/three/examples/jsm/nodes/display/ColorAdjustmentNode.js +99 -0
- package/node_modules/three/examples/jsm/nodes/display/ColorSpaceNode.js +108 -0
- package/node_modules/three/examples/jsm/nodes/display/FrontFacingNode.js +27 -0
- package/node_modules/three/examples/jsm/nodes/display/GaussianBlurNode.js +190 -0
- package/node_modules/three/examples/jsm/nodes/display/NormalMapNode.js +108 -0
- package/node_modules/three/examples/jsm/nodes/display/PassNode.js +183 -0
- package/node_modules/three/examples/jsm/nodes/display/PosterizeNode.js +32 -0
- package/node_modules/three/examples/jsm/nodes/display/ToneMappingNode.js +184 -0
- package/node_modules/three/examples/jsm/nodes/display/ViewportDepthNode.js +97 -0
- package/node_modules/three/examples/jsm/nodes/display/ViewportDepthTextureNode.js +31 -0
- package/node_modules/three/examples/jsm/nodes/display/ViewportNode.js +134 -0
- package/node_modules/three/examples/jsm/nodes/display/ViewportSharedTextureNode.js +31 -0
- package/node_modules/three/examples/jsm/nodes/display/ViewportTextureNode.js +75 -0
- package/node_modules/three/examples/jsm/nodes/fog/FogExp2Node.js +35 -0
- package/node_modules/three/examples/jsm/nodes/fog/FogNode.js +38 -0
- package/node_modules/three/examples/jsm/nodes/fog/FogRangeNode.js +34 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.js +40 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.js +9 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.js +57 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/DFGApprox.js +30 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/D_GGX.js +23 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/EnvironmentBRDF.js +13 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/F_Schlick.js +16 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/Schlick_to_F0.js +21 -0
- package/node_modules/three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +28 -0
- package/node_modules/three/examples/jsm/nodes/functions/PhongLightingModel.js +67 -0
- package/node_modules/three/examples/jsm/nodes/functions/PhysicalLightingModel.js +393 -0
- package/node_modules/three/examples/jsm/nodes/functions/material/getGeometryRoughness.js +13 -0
- package/node_modules/three/examples/jsm/nodes/functions/material/getRoughness.js +18 -0
- package/node_modules/three/examples/jsm/nodes/geometry/RangeNode.js +104 -0
- package/node_modules/three/examples/jsm/nodes/gpgpu/ComputeNode.js +85 -0
- package/node_modules/three/examples/jsm/nodes/lighting/AONode.js +27 -0
- package/node_modules/three/examples/jsm/nodes/lighting/AmbientLightNode.js +27 -0
- package/node_modules/three/examples/jsm/nodes/lighting/AnalyticLightNode.js +241 -0
- package/node_modules/three/examples/jsm/nodes/lighting/DirectionalLightNode.js +40 -0
- package/node_modules/three/examples/jsm/nodes/lighting/EnvironmentNode.js +181 -0
- package/node_modules/three/examples/jsm/nodes/lighting/HemisphereLightNode.js +55 -0
- package/node_modules/three/examples/jsm/nodes/lighting/IESSpotLightNode.js +39 -0
- package/node_modules/three/examples/jsm/nodes/lighting/LightNode.js +57 -0
- package/node_modules/three/examples/jsm/nodes/lighting/LightUtils.js +17 -0
- package/node_modules/three/examples/jsm/nodes/lighting/LightingContextNode.js +66 -0
- package/node_modules/three/examples/jsm/nodes/lighting/LightingNode.js +21 -0
- package/node_modules/three/examples/jsm/nodes/lighting/LightsNode.js +188 -0
- package/node_modules/three/examples/jsm/nodes/lighting/PointLightNode.js +68 -0
- package/node_modules/three/examples/jsm/nodes/lighting/SpotLightNode.js +89 -0
- package/node_modules/three/examples/jsm/nodes/loaders/NodeLoader.js +108 -0
- package/node_modules/three/examples/jsm/nodes/loaders/NodeMaterialLoader.js +59 -0
- package/node_modules/three/examples/jsm/nodes/loaders/NodeObjectLoader.js +70 -0
- package/node_modules/three/examples/jsm/nodes/materials/InstancedPointsNodeMaterial.js +162 -0
- package/node_modules/three/examples/jsm/nodes/materials/Line2NodeMaterial.js +436 -0
- package/node_modules/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.js +28 -0
- package/node_modules/three/examples/jsm/nodes/materials/LineDashedNodeMaterial.js +54 -0
- package/node_modules/three/examples/jsm/nodes/materials/Materials.js +16 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.js +28 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshLambertNodeMaterial.js +34 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.js +40 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.js +65 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.js +155 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.js +84 -0
- package/node_modules/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.js +80 -0
- package/node_modules/three/examples/jsm/nodes/materials/NodeMaterial.js +570 -0
- package/node_modules/three/examples/jsm/nodes/materials/PointsNodeMaterial.js +39 -0
- package/node_modules/three/examples/jsm/nodes/materials/SpriteNodeMaterial.js +90 -0
- package/node_modules/three/examples/jsm/nodes/materialx/DISCLAIMER.md +199 -0
- package/node_modules/three/examples/jsm/nodes/materialx/MaterialXNodes.js +68 -0
- package/node_modules/three/examples/jsm/nodes/materialx/lib/mx_hsv.js +130 -0
- package/node_modules/three/examples/jsm/nodes/materialx/lib/mx_noise.js +1430 -0
- package/node_modules/three/examples/jsm/nodes/materialx/lib/mx_transform_color.js +29 -0
- package/node_modules/three/examples/jsm/nodes/math/CondNode.js +86 -0
- package/node_modules/three/examples/jsm/nodes/math/HashNode.js +34 -0
- package/node_modules/three/examples/jsm/nodes/math/MathNode.js +371 -0
- package/node_modules/three/examples/jsm/nodes/math/MathUtils.js +15 -0
- package/node_modules/three/examples/jsm/nodes/math/OperatorNode.js +274 -0
- package/node_modules/three/examples/jsm/nodes/math/TriNoise3D.js +71 -0
- package/node_modules/three/examples/jsm/nodes/parsers/GLSLNodeFunction.js +152 -0
- package/node_modules/three/examples/jsm/nodes/parsers/GLSLNodeParser.js +14 -0
- package/node_modules/three/examples/jsm/nodes/procedural/CheckerNode.js +42 -0
- package/node_modules/three/examples/jsm/nodes/shadernode/ShaderNode.js +634 -0
- package/node_modules/three/examples/jsm/nodes/utils/ArrayElementNode.js +41 -0
- package/node_modules/three/examples/jsm/nodes/utils/ConvertNode.js +65 -0
- package/node_modules/three/examples/jsm/nodes/utils/DiscardNode.js +27 -0
- package/node_modules/three/examples/jsm/nodes/utils/EquirectUVNode.js +33 -0
- package/node_modules/three/examples/jsm/nodes/utils/FunctionOverloadingNode.js +95 -0
- package/node_modules/three/examples/jsm/nodes/utils/JoinNode.js +61 -0
- package/node_modules/three/examples/jsm/nodes/utils/LoopNode.js +198 -0
- package/node_modules/three/examples/jsm/nodes/utils/MatcapUVNode.js +30 -0
- package/node_modules/three/examples/jsm/nodes/utils/MaxMipLevelNode.js +46 -0
- package/node_modules/three/examples/jsm/nodes/utils/OscNode.js +81 -0
- package/node_modules/three/examples/jsm/nodes/utils/PackingNode.js +55 -0
- package/node_modules/three/examples/jsm/nodes/utils/ReflectorNode.js +227 -0
- package/node_modules/three/examples/jsm/nodes/utils/RemapNode.js +42 -0
- package/node_modules/three/examples/jsm/nodes/utils/RotateNode.js +68 -0
- package/node_modules/three/examples/jsm/nodes/utils/RotateUVNode.js +35 -0
- package/node_modules/three/examples/jsm/nodes/utils/SetNode.js +62 -0
- package/node_modules/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.js +37 -0
- package/node_modules/three/examples/jsm/nodes/utils/SplitNode.js +112 -0
- package/node_modules/three/examples/jsm/nodes/utils/SpriteSheetUVNode.js +41 -0
- package/node_modules/three/examples/jsm/nodes/utils/TimerNode.js +94 -0
- package/node_modules/three/examples/jsm/nodes/utils/TriplanarTexturesNode.js +62 -0
- package/node_modules/three/examples/jsm/objects/GroundedSkybox.js +50 -0
- package/node_modules/three/examples/jsm/objects/InstancedPoints.js +21 -0
- package/node_modules/three/examples/jsm/objects/Lensflare.js +397 -0
- package/node_modules/three/examples/jsm/objects/MarchingCubes.js +1176 -0
- package/node_modules/three/examples/jsm/objects/QuadMesh.js +66 -0
- package/node_modules/three/examples/jsm/objects/Reflector.js +264 -0
- package/node_modules/three/examples/jsm/objects/ReflectorForSSRPass.js +352 -0
- package/node_modules/three/examples/jsm/objects/Refractor.js +327 -0
- package/node_modules/three/examples/jsm/objects/ShadowMesh.js +80 -0
- package/node_modules/three/examples/jsm/objects/Sky.js +219 -0
- package/node_modules/three/examples/jsm/objects/Water.js +333 -0
- package/node_modules/three/examples/jsm/objects/Water2.js +361 -0
- package/node_modules/three/examples/jsm/offscreen/jank.js +45 -0
- package/node_modules/three/examples/jsm/offscreen/offscreen.js +8 -0
- package/node_modules/three/examples/jsm/offscreen/scene.js +86 -0
- package/node_modules/three/examples/jsm/physics/AmmoPhysics.js +306 -0
- package/node_modules/three/examples/jsm/physics/RapierPhysics.js +220 -0
- package/node_modules/three/examples/jsm/postprocessing/AfterimagePass.js +104 -0
- package/node_modules/three/examples/jsm/postprocessing/BloomPass.js +172 -0
- package/node_modules/three/examples/jsm/postprocessing/BokehPass.js +141 -0
- package/node_modules/three/examples/jsm/postprocessing/ClearPass.js +46 -0
- package/node_modules/three/examples/jsm/postprocessing/CubeTexturePass.js +85 -0
- package/node_modules/three/examples/jsm/postprocessing/DotScreenPass.js +65 -0
- package/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +231 -0
- package/node_modules/three/examples/jsm/postprocessing/FilmPass.js +64 -0
- package/node_modules/three/examples/jsm/postprocessing/GTAOPass.js +582 -0
- package/node_modules/three/examples/jsm/postprocessing/GlitchPass.js +128 -0
- package/node_modules/three/examples/jsm/postprocessing/HalftonePass.js +79 -0
- package/node_modules/three/examples/jsm/postprocessing/LUTPass.js +174 -0
- package/node_modules/three/examples/jsm/postprocessing/MaskPass.js +104 -0
- package/node_modules/three/examples/jsm/postprocessing/OutlinePass.js +654 -0
- package/node_modules/three/examples/jsm/postprocessing/OutputPass.js +95 -0
- package/node_modules/three/examples/jsm/postprocessing/Pass.js +95 -0
- package/node_modules/three/examples/jsm/postprocessing/RenderPass.js +99 -0
- package/node_modules/three/examples/jsm/postprocessing/RenderPixelatedPass.js +235 -0
- package/node_modules/three/examples/jsm/postprocessing/SAOPass.js +335 -0
- package/node_modules/three/examples/jsm/postprocessing/SMAAPass.js +199 -0
- package/node_modules/three/examples/jsm/postprocessing/SSAARenderPass.js +228 -0
- package/node_modules/three/examples/jsm/postprocessing/SSAOPass.js +420 -0
- package/node_modules/three/examples/jsm/postprocessing/SSRPass.js +641 -0
- package/node_modules/three/examples/jsm/postprocessing/SavePass.js +79 -0
- package/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +77 -0
- package/node_modules/three/examples/jsm/postprocessing/TAARenderPass.js +188 -0
- package/node_modules/three/examples/jsm/postprocessing/TexturePass.js +67 -0
- package/node_modules/three/examples/jsm/postprocessing/UnrealBloomPass.js +415 -0
- package/node_modules/three/examples/jsm/renderers/CSS2DRenderer.js +215 -0
- package/node_modules/three/examples/jsm/renderers/CSS3DRenderer.js +329 -0
- package/node_modules/three/examples/jsm/renderers/Projector.js +918 -0
- package/node_modules/three/examples/jsm/renderers/SVGRenderer.js +556 -0
- package/node_modules/three/examples/jsm/renderers/common/Animation.js +47 -0
- package/node_modules/three/examples/jsm/renderers/common/Attributes.js +75 -0
- package/node_modules/three/examples/jsm/renderers/common/Backend.js +195 -0
- package/node_modules/three/examples/jsm/renderers/common/Background.js +134 -0
- package/node_modules/three/examples/jsm/renderers/common/Binding.js +25 -0
- package/node_modules/three/examples/jsm/renderers/common/Bindings.js +173 -0
- package/node_modules/three/examples/jsm/renderers/common/Buffer.js +38 -0
- package/node_modules/three/examples/jsm/renderers/common/BufferUtils.js +33 -0
- package/node_modules/three/examples/jsm/renderers/common/ChainMap.js +89 -0
- package/node_modules/three/examples/jsm/renderers/common/Color4.js +37 -0
- package/node_modules/three/examples/jsm/renderers/common/ComputePipeline.js +17 -0
- package/node_modules/three/examples/jsm/renderers/common/Constants.js +14 -0
- package/node_modules/three/examples/jsm/renderers/common/CubeRenderTarget.js +65 -0
- package/node_modules/three/examples/jsm/renderers/common/DataMap.js +54 -0
- package/node_modules/three/examples/jsm/renderers/common/Geometries.js +215 -0
- package/node_modules/three/examples/jsm/renderers/common/Info.js +107 -0
- package/node_modules/three/examples/jsm/renderers/common/Pipeline.js +13 -0
- package/node_modules/three/examples/jsm/renderers/common/Pipelines.js +322 -0
- package/node_modules/three/examples/jsm/renderers/common/PostProcessing.js +25 -0
- package/node_modules/three/examples/jsm/renderers/common/ProgrammableStage.js +20 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderContext.js +41 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderContexts.js +74 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderList.js +186 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderLists.js +38 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderObject.js +178 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderObjects.js +91 -0
- package/node_modules/three/examples/jsm/renderers/common/RenderPipeline.js +16 -0
- package/node_modules/three/examples/jsm/renderers/common/Renderer.js +1247 -0
- package/node_modules/three/examples/jsm/renderers/common/SampledTexture.js +83 -0
- package/node_modules/three/examples/jsm/renderers/common/Sampler.js +18 -0
- package/node_modules/three/examples/jsm/renderers/common/StorageBuffer.js +17 -0
- package/node_modules/three/examples/jsm/renderers/common/StorageBufferAttribute.js +17 -0
- package/node_modules/three/examples/jsm/renderers/common/StorageTexture.js +20 -0
- package/node_modules/three/examples/jsm/renderers/common/Textures.js +354 -0
- package/node_modules/three/examples/jsm/renderers/common/Uniform.js +140 -0
- package/node_modules/three/examples/jsm/renderers/common/UniformBuffer.js +15 -0
- package/node_modules/three/examples/jsm/renderers/common/UniformsGroup.js +299 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/NodeBuilderState.js +44 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/NodeSampledTexture.js +49 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/NodeSampler.js +15 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/NodeUniform.js +135 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/NodeUniformsGroup.js +44 -0
- package/node_modules/three/examples/jsm/renderers/common/nodes/Nodes.js +495 -0
- package/node_modules/three/examples/jsm/renderers/webgl/WebGLBackend.js +1362 -0
- package/node_modules/three/examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js +679 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLAttributeUtils.js +252 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLCapabilities.js +36 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLConstants.js +11 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLExtensions.js +36 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLState.js +738 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js +647 -0
- package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLUtils.js +284 -0
- package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/GLSL1NodeBuilder.js +320 -0
- package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/SlotNode.js +26 -0
- package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodeBuilder.js +794 -0
- package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js +51 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/WebGPUBackend.js +1321 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/WebGPURenderer.js +53 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js +1103 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.js +104 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/nodes/WGSLNodeParser.js +14 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.js +287 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.js +244 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUConstants.js +324 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUPipelineUtils.js +591 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUTexturePassUtils.js +285 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js +1040 -0
- package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUUtils.js +93 -0
- package/node_modules/three/examples/jsm/shaders/ACESFilmicToneMappingShader.js +89 -0
- package/node_modules/three/examples/jsm/shaders/AfterimageShader.js +58 -0
- package/node_modules/three/examples/jsm/shaders/BasicShader.js +29 -0
- package/node_modules/three/examples/jsm/shaders/BleachBypassShader.js +62 -0
- package/node_modules/three/examples/jsm/shaders/BlendShader.js +49 -0
- package/node_modules/three/examples/jsm/shaders/BokehShader.js +145 -0
- package/node_modules/three/examples/jsm/shaders/BokehShader2.js +397 -0
- package/node_modules/three/examples/jsm/shaders/BrightnessContrastShader.js +56 -0
- package/node_modules/three/examples/jsm/shaders/ColorCorrectionShader.js +52 -0
- package/node_modules/three/examples/jsm/shaders/ColorifyShader.js +51 -0
- package/node_modules/three/examples/jsm/shaders/ConvolutionShader.js +103 -0
- package/node_modules/three/examples/jsm/shaders/CopyShader.js +45 -0
- package/node_modules/three/examples/jsm/shaders/DOFMipMapShader.js +56 -0
- package/node_modules/three/examples/jsm/shaders/DepthLimitedBlurShader.js +171 -0
- package/node_modules/three/examples/jsm/shaders/DigitalGlitch.js +101 -0
- package/node_modules/three/examples/jsm/shaders/DotScreenShader.js +70 -0
- package/node_modules/three/examples/jsm/shaders/ExposureShader.js +44 -0
- package/node_modules/three/examples/jsm/shaders/FXAAShader.js +288 -0
- package/node_modules/three/examples/jsm/shaders/FilmShader.js +59 -0
- package/node_modules/three/examples/jsm/shaders/FocusShader.js +89 -0
- package/node_modules/three/examples/jsm/shaders/FreiChenShader.js +96 -0
- package/node_modules/three/examples/jsm/shaders/GTAOShader.js +424 -0
- package/node_modules/three/examples/jsm/shaders/GammaCorrectionShader.js +43 -0
- package/node_modules/three/examples/jsm/shaders/GodRaysShader.js +321 -0
- package/node_modules/three/examples/jsm/shaders/HalftoneShader.js +312 -0
- package/node_modules/three/examples/jsm/shaders/HorizontalBlurShader.js +59 -0
- package/node_modules/three/examples/jsm/shaders/HorizontalTiltShiftShader.js +63 -0
- package/node_modules/three/examples/jsm/shaders/HueSaturationShader.js +67 -0
- package/node_modules/three/examples/jsm/shaders/KaleidoShader.js +58 -0
- package/node_modules/three/examples/jsm/shaders/LuminosityHighPassShader.js +66 -0
- package/node_modules/three/examples/jsm/shaders/LuminosityShader.js +48 -0
- package/node_modules/three/examples/jsm/shaders/MMDToonShader.js +134 -0
- package/node_modules/three/examples/jsm/shaders/MirrorShader.js +56 -0
- package/node_modules/three/examples/jsm/shaders/NormalMapShader.js +55 -0
- package/node_modules/three/examples/jsm/shaders/OutputShader.js +81 -0
- package/node_modules/three/examples/jsm/shaders/PoissonDenoiseShader.js +226 -0
- package/node_modules/three/examples/jsm/shaders/RGBShiftShader.js +54 -0
- package/node_modules/three/examples/jsm/shaders/SAOShader.js +179 -0
- package/node_modules/three/examples/jsm/shaders/SMAAShader.js +466 -0
- package/node_modules/three/examples/jsm/shaders/SSAOShader.js +300 -0
- package/node_modules/three/examples/jsm/shaders/SSRShader.js +370 -0
- package/node_modules/three/examples/jsm/shaders/SepiaShader.js +52 -0
- package/node_modules/three/examples/jsm/shaders/SobelOperatorShader.js +92 -0
- package/node_modules/three/examples/jsm/shaders/SubsurfaceScatteringShader.js +90 -0
- package/node_modules/three/examples/jsm/shaders/TechnicolorShader.js +45 -0
- package/node_modules/three/examples/jsm/shaders/ToonShader.js +326 -0
- package/node_modules/three/examples/jsm/shaders/TriangleBlurShader.js +74 -0
- package/node_modules/three/examples/jsm/shaders/UnpackDepthRGBAShader.js +47 -0
- package/node_modules/three/examples/jsm/shaders/VelocityShader.js +130 -0
- package/node_modules/three/examples/jsm/shaders/VerticalBlurShader.js +59 -0
- package/node_modules/three/examples/jsm/shaders/VerticalTiltShiftShader.js +63 -0
- package/node_modules/three/examples/jsm/shaders/VignetteShader.js +51 -0
- package/node_modules/three/examples/jsm/shaders/VolumeShader.js +289 -0
- package/node_modules/three/examples/jsm/shaders/WaterRefractionShader.js +95 -0
- package/node_modules/three/examples/jsm/textures/FlakesTexture.js +40 -0
- package/node_modules/three/examples/jsm/transpiler/AST.js +270 -0
- package/node_modules/three/examples/jsm/transpiler/GLSLDecoder.js +941 -0
- package/node_modules/three/examples/jsm/transpiler/ShaderToyDecoder.js +49 -0
- package/node_modules/three/examples/jsm/transpiler/TSLEncoder.js +715 -0
- package/node_modules/three/examples/jsm/transpiler/Transpiler.js +18 -0
- package/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +1371 -0
- package/node_modules/three/examples/jsm/utils/CameraUtils.js +73 -0
- package/node_modules/three/examples/jsm/utils/GPUStatsPanel.js +128 -0
- package/node_modules/three/examples/jsm/utils/GeometryCompressionUtils.js +639 -0
- package/node_modules/three/examples/jsm/utils/GeometryUtils.js +221 -0
- package/node_modules/three/examples/jsm/utils/LDrawUtils.js +202 -0
- package/node_modules/three/examples/jsm/utils/PackedPhongMaterial.js +178 -0
- package/node_modules/three/examples/jsm/utils/SceneUtils.js +254 -0
- package/node_modules/three/examples/jsm/utils/ShadowMapViewer.js +210 -0
- package/node_modules/three/examples/jsm/utils/SkeletonUtils.js +413 -0
- package/node_modules/three/examples/jsm/utils/SortUtils.js +160 -0
- package/node_modules/three/examples/jsm/utils/TextureUtils.js +98 -0
- package/node_modules/three/examples/jsm/utils/UVsDebug.js +165 -0
- package/node_modules/three/examples/jsm/utils/WorkerPool.js +102 -0
- package/node_modules/three/examples/jsm/webxr/ARButton.js +232 -0
- package/node_modules/three/examples/jsm/webxr/OculusHandModel.js +109 -0
- package/node_modules/three/examples/jsm/webxr/OculusHandPointerModel.js +413 -0
- package/node_modules/three/examples/jsm/webxr/Text2D.js +38 -0
- package/node_modules/three/examples/jsm/webxr/VRButton.js +225 -0
- package/node_modules/three/examples/jsm/webxr/XRButton.js +224 -0
- package/node_modules/three/examples/jsm/webxr/XRControllerModelFactory.js +304 -0
- package/node_modules/three/examples/jsm/webxr/XREstimatedLight.js +223 -0
- package/node_modules/three/examples/jsm/webxr/XRHandMeshModel.js +114 -0
- package/node_modules/three/examples/jsm/webxr/XRHandModelFactory.js +105 -0
- package/node_modules/three/examples/jsm/webxr/XRHandPrimitiveModel.js +103 -0
- package/node_modules/three/examples/jsm/webxr/XRPlanes.js +100 -0
- package/node_modules/three/package.json +124 -0
- package/node_modules/three/src/Three.Legacy.js +1 -0
- package/node_modules/three/src/Three.js +184 -0
- package/node_modules/three/src/animation/AnimationAction.js +700 -0
- package/node_modules/three/src/animation/AnimationClip.js +473 -0
- package/node_modules/three/src/animation/AnimationMixer.js +770 -0
- package/node_modules/three/src/animation/AnimationObjectGroup.js +387 -0
- package/node_modules/three/src/animation/AnimationUtils.js +356 -0
- package/node_modules/three/src/animation/KeyframeTrack.js +462 -0
- package/node_modules/three/src/animation/PropertyBinding.js +719 -0
- package/node_modules/three/src/animation/PropertyMixer.js +318 -0
- package/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js +19 -0
- package/node_modules/three/src/animation/tracks/ColorKeyframeTrack.js +15 -0
- package/node_modules/three/src/animation/tracks/NumberKeyframeTrack.js +12 -0
- package/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js +23 -0
- package/node_modules/three/src/animation/tracks/StringKeyframeTrack.js +15 -0
- package/node_modules/three/src/animation/tracks/VectorKeyframeTrack.js +12 -0
- package/node_modules/three/src/audio/Audio.js +400 -0
- package/node_modules/three/src/audio/AudioAnalyser.js +40 -0
- package/node_modules/three/src/audio/AudioContext.js +25 -0
- package/node_modules/three/src/audio/AudioListener.js +137 -0
- package/node_modules/three/src/audio/PositionalAudio.js +146 -0
- package/node_modules/three/src/cameras/ArrayCamera.js +17 -0
- package/node_modules/three/src/cameras/Camera.js +69 -0
- package/node_modules/three/src/cameras/CubeCamera.js +173 -0
- package/node_modules/three/src/cameras/OrthographicCamera.js +136 -0
- package/node_modules/three/src/cameras/PerspectiveCamera.js +268 -0
- package/node_modules/three/src/cameras/StereoCamera.js +100 -0
- package/node_modules/three/src/constants.js +216 -0
- package/node_modules/three/src/core/BufferAttribute.js +650 -0
- package/node_modules/three/src/core/BufferGeometry.js +1079 -0
- package/node_modules/three/src/core/Clock.js +74 -0
- package/node_modules/three/src/core/EventDispatcher.js +87 -0
- package/node_modules/three/src/core/GLBufferAttribute.js +60 -0
- package/node_modules/three/src/core/InstancedBufferAttribute.js +39 -0
- package/node_modules/three/src/core/InstancedBufferGeometry.js +40 -0
- package/node_modules/three/src/core/InstancedInterleavedBuffer.js +48 -0
- package/node_modules/three/src/core/InterleavedBuffer.js +166 -0
- package/node_modules/three/src/core/InterleavedBufferAttribute.js +351 -0
- package/node_modules/three/src/core/Layers.js +60 -0
- package/node_modules/three/src/core/Object3D.js +1008 -0
- package/node_modules/three/src/core/Raycaster.js +110 -0
- package/node_modules/three/src/core/RenderTarget.js +131 -0
- package/node_modules/three/src/core/Uniform.js +17 -0
- package/node_modules/three/src/core/UniformsGroup.js +98 -0
- package/node_modules/three/src/extras/DataUtils.js +176 -0
- package/node_modules/three/src/extras/Earcut.js +789 -0
- package/node_modules/three/src/extras/ImageUtils.js +129 -0
- package/node_modules/three/src/extras/PMREMGenerator.js +906 -0
- package/node_modules/three/src/extras/ShapeUtils.js +92 -0
- package/node_modules/three/src/extras/core/Curve.js +416 -0
- package/node_modules/three/src/extras/core/CurvePath.js +255 -0
- package/node_modules/three/src/extras/core/Interpolations.js +79 -0
- package/node_modules/three/src/extras/core/Path.js +196 -0
- package/node_modules/three/src/extras/core/Shape.js +102 -0
- package/node_modules/three/src/extras/core/ShapePath.js +291 -0
- package/node_modules/three/src/extras/curves/ArcCurve.js +17 -0
- package/node_modules/three/src/extras/curves/CatmullRomCurve3.js +255 -0
- package/node_modules/three/src/extras/curves/CubicBezierCurve.js +78 -0
- package/node_modules/three/src/extras/curves/CubicBezierCurve3.js +79 -0
- package/node_modules/three/src/extras/curves/Curves.js +10 -0
- package/node_modules/three/src/extras/curves/EllipseCurve.js +156 -0
- package/node_modules/three/src/extras/curves/LineCurve.js +92 -0
- package/node_modules/three/src/extras/curves/LineCurve3.js +92 -0
- package/node_modules/three/src/extras/curves/QuadraticBezierCurve.js +74 -0
- package/node_modules/three/src/extras/curves/QuadraticBezierCurve3.js +75 -0
- package/node_modules/three/src/extras/curves/SplineCurve.js +97 -0
- package/node_modules/three/src/geometries/BoxGeometry.js +180 -0
- package/node_modules/three/src/geometries/CapsuleGeometry.js +33 -0
- package/node_modules/three/src/geometries/CircleGeometry.js +101 -0
- package/node_modules/three/src/geometries/ConeGeometry.js +31 -0
- package/node_modules/three/src/geometries/CylinderGeometry.js +286 -0
- package/node_modules/three/src/geometries/DodecahedronGeometry.js +66 -0
- package/node_modules/three/src/geometries/EdgesGeometry.js +152 -0
- package/node_modules/three/src/geometries/ExtrudeGeometry.js +814 -0
- package/node_modules/three/src/geometries/Geometries.js +21 -0
- package/node_modules/three/src/geometries/IcosahedronGeometry.js +42 -0
- package/node_modules/three/src/geometries/LatheGeometry.js +189 -0
- package/node_modules/three/src/geometries/OctahedronGeometry.js +37 -0
- package/node_modules/three/src/geometries/PlaneGeometry.js +98 -0
- package/node_modules/three/src/geometries/PolyhedronGeometry.js +319 -0
- package/node_modules/three/src/geometries/RingGeometry.js +128 -0
- package/node_modules/three/src/geometries/ShapeGeometry.js +195 -0
- package/node_modules/three/src/geometries/SphereGeometry.js +137 -0
- package/node_modules/three/src/geometries/TetrahedronGeometry.js +34 -0
- package/node_modules/three/src/geometries/TorusGeometry.js +120 -0
- package/node_modules/three/src/geometries/TorusKnotGeometry.js +167 -0
- package/node_modules/three/src/geometries/TubeGeometry.js +203 -0
- package/node_modules/three/src/geometries/WireframeGeometry.js +147 -0
- package/node_modules/three/src/helpers/ArrowHelper.js +114 -0
- package/node_modules/three/src/helpers/AxesHelper.js +68 -0
- package/node_modules/three/src/helpers/Box3Helper.js +55 -0
- package/node_modules/three/src/helpers/BoxHelper.js +113 -0
- package/node_modules/three/src/helpers/CameraHelper.js +269 -0
- package/node_modules/three/src/helpers/DirectionalLightHelper.js +93 -0
- package/node_modules/three/src/helpers/GridHelper.js +56 -0
- package/node_modules/three/src/helpers/HemisphereLightHelper.js +88 -0
- package/node_modules/three/src/helpers/PlaneHelper.js +63 -0
- package/node_modules/three/src/helpers/PointLightHelper.js +92 -0
- package/node_modules/three/src/helpers/PolarGridHelper.js +96 -0
- package/node_modules/three/src/helpers/SkeletonHelper.js +128 -0
- package/node_modules/three/src/helpers/SpotLightHelper.js +94 -0
- package/node_modules/three/src/lights/AmbientLight.js +17 -0
- package/node_modules/three/src/lights/DirectionalLight.js +43 -0
- package/node_modules/three/src/lights/DirectionalLightShadow.js +16 -0
- package/node_modules/three/src/lights/HemisphereLight.js +34 -0
- package/node_modules/three/src/lights/Light.js +58 -0
- package/node_modules/three/src/lights/LightProbe.js +47 -0
- package/node_modules/three/src/lights/LightShadow.js +147 -0
- package/node_modules/three/src/lights/PointLight.js +57 -0
- package/node_modules/three/src/lights/PointLightShadow.js +96 -0
- package/node_modules/three/src/lights/RectAreaLight.js +56 -0
- package/node_modules/three/src/lights/SpotLight.js +71 -0
- package/node_modules/three/src/lights/SpotLightShadow.js +50 -0
- package/node_modules/three/src/loaders/AnimationLoader.js +66 -0
- package/node_modules/three/src/loaders/AudioLoader.js +66 -0
- package/node_modules/three/src/loaders/BufferGeometryLoader.js +217 -0
- package/node_modules/three/src/loaders/Cache.js +42 -0
- package/node_modules/three/src/loaders/CompressedTextureLoader.js +134 -0
- package/node_modules/three/src/loaders/CubeTextureLoader.js +58 -0
- package/node_modules/three/src/loaders/DataTextureLoader.js +135 -0
- package/node_modules/three/src/loaders/FileLoader.js +284 -0
- package/node_modules/three/src/loaders/ImageBitmapLoader.js +123 -0
- package/node_modules/three/src/loaders/ImageLoader.js +91 -0
- package/node_modules/three/src/loaders/Loader.js +72 -0
- package/node_modules/three/src/loaders/LoaderUtils.js +75 -0
- package/node_modules/three/src/loaders/LoadingManager.js +142 -0
- package/node_modules/three/src/loaders/MaterialLoader.js +372 -0
- package/node_modules/three/src/loaders/ObjectLoader.js +1148 -0
- package/node_modules/three/src/loaders/TextureLoader.js +41 -0
- package/node_modules/three/src/materials/LineBasicMaterial.js +49 -0
- package/node_modules/three/src/materials/LineDashedMaterial.js +35 -0
- package/node_modules/three/src/materials/Material.js +522 -0
- package/node_modules/three/src/materials/Materials.js +39 -0
- package/node_modules/three/src/materials/MeshBasicMaterial.js +81 -0
- package/node_modules/three/src/materials/MeshDepthMaterial.js +54 -0
- package/node_modules/three/src/materials/MeshDistanceMaterial.js +43 -0
- package/node_modules/three/src/materials/MeshLambertMaterial.js +116 -0
- package/node_modules/three/src/materials/MeshMatcapMaterial.js +81 -0
- package/node_modules/three/src/materials/MeshNormalMaterial.js +61 -0
- package/node_modules/three/src/materials/MeshPhongMaterial.js +120 -0
- package/node_modules/three/src/materials/MeshPhysicalMaterial.js +224 -0
- package/node_modules/three/src/materials/MeshStandardMaterial.js +124 -0
- package/node_modules/three/src/materials/MeshToonMaterial.js +102 -0
- package/node_modules/three/src/materials/PointsMaterial.js +50 -0
- package/node_modules/three/src/materials/RawShaderMaterial.js +17 -0
- package/node_modules/three/src/materials/ShaderMaterial.js +189 -0
- package/node_modules/three/src/materials/ShadowMaterial.js +37 -0
- package/node_modules/three/src/materials/SpriteMaterial.js +54 -0
- package/node_modules/three/src/math/Box2.js +204 -0
- package/node_modules/three/src/math/Box3.js +534 -0
- package/node_modules/three/src/math/Color.js +623 -0
- package/node_modules/three/src/math/ColorManagement.js +139 -0
- package/node_modules/three/src/math/Cylindrical.js +61 -0
- package/node_modules/three/src/math/Euler.js +315 -0
- package/node_modules/three/src/math/Frustum.js +186 -0
- package/node_modules/three/src/math/Interpolant.js +241 -0
- package/node_modules/three/src/math/Line3.js +115 -0
- package/node_modules/three/src/math/MathUtils.js +363 -0
- package/node_modules/three/src/math/Matrix3.js +388 -0
- package/node_modules/three/src/math/Matrix4.js +915 -0
- package/node_modules/three/src/math/Plane.js +205 -0
- package/node_modules/three/src/math/Quaternion.js +685 -0
- package/node_modules/three/src/math/Ray.js +493 -0
- package/node_modules/three/src/math/Sphere.js +245 -0
- package/node_modules/three/src/math/Spherical.js +86 -0
- package/node_modules/three/src/math/SphericalHarmonics3.js +243 -0
- package/node_modules/three/src/math/Triangle.js +311 -0
- package/node_modules/three/src/math/Vector2.js +480 -0
- package/node_modules/three/src/math/Vector3.js +724 -0
- package/node_modules/three/src/math/Vector4.js +644 -0
- package/node_modules/three/src/math/interpolants/CubicInterpolant.js +150 -0
- package/node_modules/three/src/math/interpolants/DiscreteInterpolant.js +26 -0
- package/node_modules/three/src/math/interpolants/LinearInterpolant.js +38 -0
- package/node_modules/three/src/math/interpolants/QuaternionLinearInterpolant.js +39 -0
- package/node_modules/three/src/objects/BatchedMesh.js +1019 -0
- package/node_modules/three/src/objects/Bone.js +17 -0
- package/node_modules/three/src/objects/Group.js +17 -0
- package/node_modules/three/src/objects/InstancedMesh.js +214 -0
- package/node_modules/three/src/objects/LOD.js +214 -0
- package/node_modules/three/src/objects/Line.js +222 -0
- package/node_modules/three/src/objects/LineLoop.js +17 -0
- package/node_modules/three/src/objects/LineSegments.js +55 -0
- package/node_modules/three/src/objects/Mesh.js +429 -0
- package/node_modules/three/src/objects/Points.js +166 -0
- package/node_modules/three/src/objects/Skeleton.js +277 -0
- package/node_modules/three/src/objects/SkinnedMesh.js +257 -0
- package/node_modules/three/src/objects/Sprite.js +181 -0
- package/node_modules/three/src/renderers/WebGL1Renderer.js +7 -0
- package/node_modules/three/src/renderers/WebGL3DRenderTarget.js +22 -0
- package/node_modules/three/src/renderers/WebGLArrayRenderTarget.js +22 -0
- package/node_modules/three/src/renderers/WebGLCubeRenderTarget.js +155 -0
- package/node_modules/three/src/renderers/WebGLMultipleRenderTargets.js +82 -0
- package/node_modules/three/src/renderers/WebGLRenderTarget.js +15 -0
- package/node_modules/three/src/renderers/WebGLRenderer.js +2610 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphahash_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphahash_pars_fragment.glsl.js +68 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphamap_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphamap_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphatest_fragment.glsl.js +16 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/alphatest_pars_fragment.glsl.js +5 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/aomap_fragment.glsl.js +26 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/aomap_pars_fragment.glsl.js +8 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +19 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/batching_vertex.glsl.js +5 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/begin_vertex.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/beginnormal_vertex.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/bsdfs.glsl.js +33 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/bumpmap_pars_fragment.glsl.js +43 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clearcoat_normal_fragment_begin.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clearcoat_normal_fragment_maps.glsl.js +10 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clearcoat_pars_fragment.glsl.js +21 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clipping_planes_fragment.glsl.js +78 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clipping_planes_pars_fragment.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clipping_planes_pars_vertex.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/clipping_planes_vertex.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js +11 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js +11 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +11 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +23 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/colorspace_fragment.glsl.js +3 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +44 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/common.glsl.js +147 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/cube_uv_reflection_fragment.glsl.js +186 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/default_fragment.glsl.js +5 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/default_vertex.glsl.js +5 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js +63 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/displacementmap_pars_vertex.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/displacementmap_vertex.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/dithering_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/dithering_pars_fragment.glsl.js +20 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +62 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_pars_fragment.glsl.js +21 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_pars_vertex.glsl.js +22 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +69 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js +37 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/fog_fragment.glsl.js +17 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/fog_pars_fragment.glsl.js +19 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/fog_pars_vertex.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/fog_vertex.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/gradientmap_pars_fragment.glsl.js +27 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/iridescence_fragment.glsl.js +120 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/iridescence_pars_fragment.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js +10 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lightmap_pars_fragment.glsl.js +8 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +202 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js +13 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js +40 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_lambert_fragment.glsl.js +5 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_lambert_pars_fragment.glsl.js +28 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js +228 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_phong_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_phong_pars_fragment.glsl.js +32 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +151 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +562 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_toon_fragment.glsl.js +4 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_toon_pars_fragment.glsl.js +26 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +9 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +16 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +22 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js +17 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/map_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/map_particle_fragment.glsl.js +27 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/map_particle_pars_fragment.glsl.js +27 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/metalnessmap_fragment.glsl.js +12 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/metalnessmap_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/morphcolor_vertex.glsl.js +24 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js +27 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js +38 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js +36 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js +76 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js +33 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normal_pars_fragment.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normal_pars_vertex.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normal_vertex.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js +43 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/opaque_fragment.glsl.js +11 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/packing.glsl.js +68 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +8 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/project_vertex.glsl.js +19 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/roughnessmap_fragment.glsl.js +12 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/roughnessmap_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +314 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js +68 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js +68 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +66 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/skinbase_vertex.glsl.js +10 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/skinning_pars_vertex.glsl.js +25 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/skinning_vertex.glsl.js +15 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/skinnormal_vertex.glsl.js +20 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/specularmap_fragment.glsl.js +14 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/specularmap_pars_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/tonemapping_fragment.glsl.js +7 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js +169 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/transmission_fragment.glsl.js +36 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +201 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/uv_pars_fragment.glsl.js +119 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/uv_pars_vertex.glsl.js +145 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/uv_vertex.glsl.js +122 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk/worldpos_vertex.glsl.js +21 -0
- package/node_modules/three/src/renderers/shaders/ShaderChunk.js +270 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/background.glsl.js +40 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/backgroundCube.glsl.js +62 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/cube.glsl.js +36 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/depth.glsl.js +95 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/distanceRGBA.glsl.js +76 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/equirect.glsl.js +35 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/linedashed.glsl.js +75 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshbasic.glsl.js +115 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +124 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshmatcap.glsl.js +111 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +86 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshphong.glsl.js +126 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshphysical.glsl.js +224 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/meshtoon.glsl.js +118 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/points.glsl.js +86 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/shadow.glsl.js +57 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/sprite.glsl.js +81 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib/vsm.glsl.js +53 -0
- package/node_modules/three/src/renderers/shaders/ShaderLib.js +359 -0
- package/node_modules/three/src/renderers/shaders/UniformsLib.js +230 -0
- package/node_modules/three/src/renderers/shaders/UniformsUtils.js +104 -0
- package/node_modules/three/src/renderers/webgl/WebGLAnimation.js +53 -0
- package/node_modules/three/src/renderers/webgl/WebGLAttributes.js +229 -0
- package/node_modules/three/src/renderers/webgl/WebGLBackground.js +239 -0
- package/node_modules/three/src/renderers/webgl/WebGLBindingStates.js +631 -0
- package/node_modules/three/src/renderers/webgl/WebGLBufferRenderer.js +92 -0
- package/node_modules/three/src/renderers/webgl/WebGLCapabilities.js +120 -0
- package/node_modules/three/src/renderers/webgl/WebGLClipping.js +171 -0
- package/node_modules/three/src/renderers/webgl/WebGLCubeMaps.js +99 -0
- package/node_modules/three/src/renderers/webgl/WebGLCubeUVMaps.js +130 -0
- package/node_modules/three/src/renderers/webgl/WebGLExtensions.js +97 -0
- package/node_modules/three/src/renderers/webgl/WebGLGeometries.js +211 -0
- package/node_modules/three/src/renderers/webgl/WebGLIndexedBufferRenderer.js +102 -0
- package/node_modules/three/src/renderers/webgl/WebGLInfo.js +71 -0
- package/node_modules/three/src/renderers/webgl/WebGLLights.js +590 -0
- package/node_modules/three/src/renderers/webgl/WebGLMaterials.js +567 -0
- package/node_modules/three/src/renderers/webgl/WebGLMorphtargets.js +300 -0
- package/node_modules/three/src/renderers/webgl/WebGLObjects.js +92 -0
- package/node_modules/three/src/renderers/webgl/WebGLProgram.js +1109 -0
- package/node_modules/three/src/renderers/webgl/WebGLPrograms.js +661 -0
- package/node_modules/three/src/renderers/webgl/WebGLProperties.js +48 -0
- package/node_modules/three/src/renderers/webgl/WebGLRenderLists.js +238 -0
- package/node_modules/three/src/renderers/webgl/WebGLRenderStates.js +107 -0
- package/node_modules/three/src/renderers/webgl/WebGLShader.js +12 -0
- package/node_modules/three/src/renderers/webgl/WebGLShaderCache.js +124 -0
- package/node_modules/three/src/renderers/webgl/WebGLShadowMap.js +424 -0
- package/node_modules/three/src/renderers/webgl/WebGLState.js +1328 -0
- package/node_modules/three/src/renderers/webgl/WebGLTextures.js +2183 -0
- package/node_modules/three/src/renderers/webgl/WebGLUniforms.js +1156 -0
- package/node_modules/three/src/renderers/webgl/WebGLUniformsGroups.js +392 -0
- package/node_modules/three/src/renderers/webgl/WebGLUtils.js +283 -0
- package/node_modules/three/src/renderers/webxr/WebXRController.js +343 -0
- package/node_modules/three/src/renderers/webxr/WebXRDepthSensing.js +105 -0
- package/node_modules/three/src/renderers/webxr/WebXRManager.js +824 -0
- package/node_modules/three/src/scenes/Fog.js +38 -0
- package/node_modules/three/src/scenes/FogExp2.js +35 -0
- package/node_modules/three/src/scenes/Scene.js +63 -0
- package/node_modules/three/src/textures/CanvasTexture.js +17 -0
- package/node_modules/three/src/textures/CompressedArrayTexture.js +18 -0
- package/node_modules/three/src/textures/CompressedCubeTexture.js +19 -0
- package/node_modules/three/src/textures/CompressedTexture.js +28 -0
- package/node_modules/three/src/textures/CubeTexture.js +33 -0
- package/node_modules/three/src/textures/Data3DTexture.js +35 -0
- package/node_modules/three/src/textures/DataArrayTexture.js +27 -0
- package/node_modules/three/src/textures/DataTexture.js +22 -0
- package/node_modules/three/src/textures/DepthTexture.js +58 -0
- package/node_modules/three/src/textures/FramebufferTexture.js +23 -0
- package/node_modules/three/src/textures/Source.js +128 -0
- package/node_modules/three/src/textures/Texture.js +338 -0
- package/node_modules/three/src/textures/VideoTexture.js +55 -0
- package/node_modules/three/src/utils.js +91 -0
- package/package.json +63 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseEntityJson = exports.parseEntity = exports.formatEntity = void 0;
|
|
4
|
+
const format_utils_1 = require("./format-utils");
|
|
5
|
+
const validation_1 = require("./validation");
|
|
6
|
+
const INDENT = ' ';
|
|
7
|
+
const indent = (level) => INDENT.repeat(level);
|
|
8
|
+
const q = (value) => JSON.stringify(value);
|
|
9
|
+
const formatVector = (vec) => `[${vec.map(format_utils_1.formatNumber).join(', ')}]`;
|
|
10
|
+
const isZeroVector = (vec) => Array.isArray(vec) && vec.length > 0 && vec.every(value => Math.abs(value) < 1e-6);
|
|
11
|
+
const isUnitVector = (vec) => Array.isArray(vec) && vec.length === 3 && vec.every(value => Math.abs(value - 1) < 1e-6);
|
|
12
|
+
const formatStringArray = (values, level) => {
|
|
13
|
+
if (values.length === 0)
|
|
14
|
+
return '[]';
|
|
15
|
+
return `[\n${values
|
|
16
|
+
.map(value => `${indent(level + 1)}${q(value)}`)
|
|
17
|
+
.join(',\n')}\n${indent(level)}]`;
|
|
18
|
+
};
|
|
19
|
+
const formatPatternData = (pattern, level) => {
|
|
20
|
+
const width = Math.max(1, Math.round(pattern.size[0] ?? 1));
|
|
21
|
+
const height = Math.max(1, Math.round(pattern.size[1] ?? 1));
|
|
22
|
+
if (!Array.isArray(pattern.data) || pattern.data.length === 0 || width <= 0) {
|
|
23
|
+
return [`${indent(level)}[]`];
|
|
24
|
+
}
|
|
25
|
+
const lines = [`${indent(level)}[`];
|
|
26
|
+
for (let y = 0; y < height; y += 1) {
|
|
27
|
+
const start = y * width;
|
|
28
|
+
const slice = pattern.data.slice(start, start + width);
|
|
29
|
+
const suffix = y === height - 1 ? '' : ',';
|
|
30
|
+
lines.push(`${indent(level + 1)}${slice.map(format_utils_1.formatNumber).join(', ')}${suffix}`);
|
|
31
|
+
}
|
|
32
|
+
lines.push(`${indent(level)}]`);
|
|
33
|
+
return lines;
|
|
34
|
+
};
|
|
35
|
+
const formatVoxelData = (voxel, level) => {
|
|
36
|
+
const [sx, sy, sz] = voxel.size ?? [1, 1, 1];
|
|
37
|
+
if (!Array.isArray(voxel.voxels) || voxel.voxels.length === 0 || sx <= 0 || sy <= 0 || sz <= 0) {
|
|
38
|
+
return [`${indent(level)}[]`];
|
|
39
|
+
}
|
|
40
|
+
const lines = [`${indent(level)}[`];
|
|
41
|
+
for (let z = 0; z < sz; z += 1) {
|
|
42
|
+
for (let y = 0; y < sy; y += 1) {
|
|
43
|
+
const row = [];
|
|
44
|
+
for (let x = 0; x < sx; x += 1) {
|
|
45
|
+
const index = x + y * sx + z * sx * sy;
|
|
46
|
+
row.push(voxel.voxels[index] ?? 0);
|
|
47
|
+
}
|
|
48
|
+
const isLastRow = z === sz - 1 && y === sy - 1;
|
|
49
|
+
const suffix = isLastRow ? '' : ',';
|
|
50
|
+
lines.push(`${indent(level + 1)}${row.map(format_utils_1.formatNumber).join(', ')}${suffix}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
lines.push(`${indent(level)}]`);
|
|
54
|
+
return lines;
|
|
55
|
+
};
|
|
56
|
+
const pushEntries = (lines, entries, level) => {
|
|
57
|
+
entries.forEach((entry, entryIndex) => {
|
|
58
|
+
const suffix = entryIndex === entries.length - 1 ? '' : ',';
|
|
59
|
+
if (Array.isArray(entry)) {
|
|
60
|
+
entry.forEach((line, lineIndex) => {
|
|
61
|
+
const trailing = lineIndex === entry.length - 1 ? suffix : '';
|
|
62
|
+
lines.push(line + trailing);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
lines.push(`${indent(level)}${entry}${suffix}`);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const formatNode = (node, level) => {
|
|
71
|
+
const lines = [`${indent(level)}{`];
|
|
72
|
+
const entries = [];
|
|
73
|
+
entries.push(`"id": ${q(node.id)}`);
|
|
74
|
+
entries.push(`"position": ${formatVector(node.position)}`);
|
|
75
|
+
if (node.rotation && !isZeroVector(node.rotation)) {
|
|
76
|
+
entries.push(`"rotation": ${formatVector(node.rotation)}`);
|
|
77
|
+
}
|
|
78
|
+
if (node.scale && !isUnitVector(node.scale)) {
|
|
79
|
+
entries.push(`"scale": ${formatVector(node.scale)}`);
|
|
80
|
+
}
|
|
81
|
+
if (node.center && !isZeroVector(node.center)) {
|
|
82
|
+
entries.push(`"center": ${formatVector(node.center)}`);
|
|
83
|
+
}
|
|
84
|
+
if (node.size)
|
|
85
|
+
entries.push(`"size": ${formatVector(node.size)}`);
|
|
86
|
+
if (node.connect !== undefined)
|
|
87
|
+
entries.push(`"connect": ${q(node.connect)}`);
|
|
88
|
+
if (node.mesh)
|
|
89
|
+
entries.push(`"mesh": ${q(node.mesh)}`);
|
|
90
|
+
if (node.children && node.children.length > 0) {
|
|
91
|
+
const childrenLines = [`${indent(level + 1)}"children": [`];
|
|
92
|
+
node.children.forEach((child, index) => {
|
|
93
|
+
const childLines = formatNode(child, level + 2);
|
|
94
|
+
childLines[childLines.length - 1] += index === node.children.length - 1 ? '' : ',';
|
|
95
|
+
childrenLines.push(...childLines);
|
|
96
|
+
});
|
|
97
|
+
childrenLines.push(`${indent(level + 1)}]`);
|
|
98
|
+
entries.push(childrenLines);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
entries.push(`"children": []`);
|
|
102
|
+
}
|
|
103
|
+
pushEntries(lines, entries, level + 1);
|
|
104
|
+
lines.push(`${indent(level)}}`);
|
|
105
|
+
return lines;
|
|
106
|
+
};
|
|
107
|
+
const appendGeometry = (lines, geometry, level) => {
|
|
108
|
+
lines.push(`${indent(level)}"geometry": {`);
|
|
109
|
+
lines.push(`${indent(level + 1)}"id": ${q(geometry.id)},`);
|
|
110
|
+
const nodeLines = formatNode(geometry.root, level + 1);
|
|
111
|
+
lines.push(`${indent(level + 1)}"root": ${nodeLines[0].trimStart()}`);
|
|
112
|
+
for (let i = 1; i < nodeLines.length; i += 1) {
|
|
113
|
+
lines.push(nodeLines[i]);
|
|
114
|
+
}
|
|
115
|
+
lines.push(`${indent(level)}}`);
|
|
116
|
+
};
|
|
117
|
+
const appendPatterns = (lines, patterns, level) => {
|
|
118
|
+
if (!patterns.length) {
|
|
119
|
+
lines.push(`${indent(level)}"patterns": []`);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
lines.push(`${indent(level)}"patterns": [`);
|
|
123
|
+
patterns.forEach((pattern, index) => {
|
|
124
|
+
lines.push(`${indent(level + 1)}{`);
|
|
125
|
+
const entries = [];
|
|
126
|
+
entries.push(`"id": ${q(pattern.id)}`);
|
|
127
|
+
entries.push(`"size": ${formatVector(pattern.size)}`);
|
|
128
|
+
const dataLines = formatPatternData(pattern, level + 2);
|
|
129
|
+
dataLines[0] = `${indent(level + 2)}"data": ${dataLines[0].trimStart()}`;
|
|
130
|
+
entries.push(dataLines);
|
|
131
|
+
pushEntries(lines, entries, level + 2);
|
|
132
|
+
lines.push(`${indent(level + 1)}}${index === patterns.length - 1 ? '' : ','}`);
|
|
133
|
+
});
|
|
134
|
+
lines.push(`${indent(level)}]`);
|
|
135
|
+
};
|
|
136
|
+
const appendMaterials = (lines, materials, level) => {
|
|
137
|
+
if (!materials.length) {
|
|
138
|
+
lines.push(`${indent(level)}"materials": []`);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
lines.push(`${indent(level)}"materials": [`);
|
|
142
|
+
materials.forEach((material, index) => {
|
|
143
|
+
lines.push(`${indent(level + 1)}{`);
|
|
144
|
+
const entries = [];
|
|
145
|
+
entries.push(`"id": ${q(material.id)}`);
|
|
146
|
+
entries.push(`"baseColor": ${formatVector(material.baseColor)}`);
|
|
147
|
+
if (material.emissiveColor)
|
|
148
|
+
entries.push(`"emissiveColor": ${formatVector(material.emissiveColor)}`);
|
|
149
|
+
if (typeof material.opacity === 'number')
|
|
150
|
+
entries.push(`"opacity": ${(0, format_utils_1.formatNumber)(material.opacity)}`);
|
|
151
|
+
pushEntries(lines, entries, level + 2);
|
|
152
|
+
lines.push(`${indent(level + 1)}}${index === materials.length - 1 ? '' : ','}`);
|
|
153
|
+
});
|
|
154
|
+
lines.push(`${indent(level)}]`);
|
|
155
|
+
};
|
|
156
|
+
const appendTextures = (lines, textures, level) => {
|
|
157
|
+
if (!textures.length) {
|
|
158
|
+
lines.push(`${indent(level)}"textures": []`);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
lines.push(`${indent(level)}"textures": [`);
|
|
162
|
+
textures.forEach((texture, index) => {
|
|
163
|
+
lines.push(`${indent(level + 1)}{`);
|
|
164
|
+
const entries = [];
|
|
165
|
+
entries.push(`"id": ${q(texture.id)}`);
|
|
166
|
+
entries.push(`"pattern": ${q(texture.pattern)}`);
|
|
167
|
+
entries.push(texture.materials.length === 0
|
|
168
|
+
? `${indent(level + 2)}"materials": []`
|
|
169
|
+
: `${indent(level + 2)}"materials": ${formatStringArray(texture.materials, level + 2)}`);
|
|
170
|
+
pushEntries(lines, entries, level + 2);
|
|
171
|
+
lines.push(`${indent(level + 1)}}${index === textures.length - 1 ? '' : ','}`);
|
|
172
|
+
});
|
|
173
|
+
lines.push(`${indent(level)}]`);
|
|
174
|
+
};
|
|
175
|
+
const formatTexturedFaces = (textured, level) => {
|
|
176
|
+
const entries = [];
|
|
177
|
+
if (textured.renderMode && textured.renderMode !== 'plain') {
|
|
178
|
+
entries.push(`"renderMode": ${q(textured.renderMode)}`);
|
|
179
|
+
}
|
|
180
|
+
const fields = [
|
|
181
|
+
'top',
|
|
182
|
+
'bottom',
|
|
183
|
+
'north',
|
|
184
|
+
'south',
|
|
185
|
+
'east',
|
|
186
|
+
'west',
|
|
187
|
+
'sides',
|
|
188
|
+
'all',
|
|
189
|
+
'topOverlay',
|
|
190
|
+
'bottomOverlay',
|
|
191
|
+
'northOverlay',
|
|
192
|
+
'southOverlay',
|
|
193
|
+
'eastOverlay',
|
|
194
|
+
'westOverlay',
|
|
195
|
+
'sidesOverlay',
|
|
196
|
+
'allOverlay',
|
|
197
|
+
];
|
|
198
|
+
fields
|
|
199
|
+
.filter(face => typeof textured[face] === 'string')
|
|
200
|
+
.forEach(face => {
|
|
201
|
+
entries.push(`"${face}": ${q(textured[face])}`);
|
|
202
|
+
});
|
|
203
|
+
return entries;
|
|
204
|
+
};
|
|
205
|
+
const formatComboSlots = (combo, level) => {
|
|
206
|
+
const lines = [];
|
|
207
|
+
lines.push(`${indent(level)}"slots": [`);
|
|
208
|
+
combo.slots.forEach((slot, index) => {
|
|
209
|
+
lines.push(`${indent(level + 1)}{`);
|
|
210
|
+
const entries = [];
|
|
211
|
+
entries.push(`"id": ${q(slot.id)}`);
|
|
212
|
+
entries.push(`"primitive": ${q(slot.primitive)}`);
|
|
213
|
+
entries.push(`"offset": ${formatVector(slot.offset)}`);
|
|
214
|
+
pushEntries(lines, entries, level + 2);
|
|
215
|
+
lines.push(`${indent(level + 1)}}${index === combo.slots.length - 1 ? '' : ','}`);
|
|
216
|
+
});
|
|
217
|
+
lines.push(`${indent(level)}]`);
|
|
218
|
+
return lines;
|
|
219
|
+
};
|
|
220
|
+
const appendPrimitives = (lines, primitives, level) => {
|
|
221
|
+
if (!primitives.length) {
|
|
222
|
+
lines.push(`${indent(level)}"primitives": []`);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
lines.push(`${indent(level)}"primitives": [`);
|
|
226
|
+
primitives.forEach((primitive, index) => {
|
|
227
|
+
lines.push(`${indent(level + 1)}{`);
|
|
228
|
+
const entries = [];
|
|
229
|
+
entries.push(`"id": ${q(primitive.id)}`);
|
|
230
|
+
entries.push(`"kind": ${q(primitive.kind)}`);
|
|
231
|
+
entries.push(`"size": ${formatVector(primitive.size)}`);
|
|
232
|
+
switch (primitive.kind) {
|
|
233
|
+
case 'plain_box':
|
|
234
|
+
entries.push(`"material": ${q(primitive.material)}`);
|
|
235
|
+
break;
|
|
236
|
+
case 'textured_box': {
|
|
237
|
+
const texturedEntries = formatTexturedFaces(primitive, level + 2);
|
|
238
|
+
entries.push(...texturedEntries);
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
case 'voxel_box': {
|
|
242
|
+
const voxelLines = formatVoxelData(primitive, level + 2);
|
|
243
|
+
entries.push(primitive.palette && primitive.palette.length > 0
|
|
244
|
+
? `${indent(level + 2)}"palette": ${formatStringArray(primitive.palette, level + 2)}`
|
|
245
|
+
: `${indent(level + 2)}"palette": []`);
|
|
246
|
+
const dataLines = [...voxelLines];
|
|
247
|
+
dataLines[0] = `${indent(level + 2)}"voxels": ${dataLines[0].trimStart()}`;
|
|
248
|
+
entries.push(dataLines);
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
case 'combo_box': {
|
|
252
|
+
const slotLines = formatComboSlots(primitive, level + 2);
|
|
253
|
+
entries.push(slotLines);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
default:
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
pushEntries(lines, entries, level + 2);
|
|
260
|
+
lines.push(`${indent(level + 1)}}${index === primitives.length - 1 ? '' : ','}`);
|
|
261
|
+
});
|
|
262
|
+
lines.push(`${indent(level)}]`);
|
|
263
|
+
};
|
|
264
|
+
const appendAnimations = (lines, animations, level) => {
|
|
265
|
+
if (!animations.length) {
|
|
266
|
+
lines.push(`${indent(level)}"animations": []`);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
lines.push(`${indent(level)}"animations": [`);
|
|
270
|
+
animations.forEach((animation, animationIndex) => {
|
|
271
|
+
lines.push(`${indent(level + 1)}{`);
|
|
272
|
+
const entries = [];
|
|
273
|
+
entries.push(`"id": ${q(animation.id)}`);
|
|
274
|
+
entries.push(`"duration": ${(0, format_utils_1.formatNumber)(animation.duration)}`);
|
|
275
|
+
if (animation.channels.length === 0) {
|
|
276
|
+
entries.push(`"channels": []`);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
const channelLines = formatAnimationChannels(animation.channels, level + 2);
|
|
280
|
+
entries.push(channelLines);
|
|
281
|
+
}
|
|
282
|
+
pushEntries(lines, entries, level + 2);
|
|
283
|
+
lines.push(`${indent(level + 1)}}${animationIndex === animations.length - 1 ? '' : ','}`);
|
|
284
|
+
});
|
|
285
|
+
lines.push(`${indent(level)}]`);
|
|
286
|
+
};
|
|
287
|
+
const formatAnimationChannels = (channels, level) => {
|
|
288
|
+
const lines = [];
|
|
289
|
+
lines.push(`${indent(level)}"channels": [`);
|
|
290
|
+
const orderedChannels = [...channels].sort((a, b) => {
|
|
291
|
+
if (a.node === b.node) {
|
|
292
|
+
return a.property.localeCompare(b.property);
|
|
293
|
+
}
|
|
294
|
+
return a.node.localeCompare(b.node);
|
|
295
|
+
});
|
|
296
|
+
orderedChannels.forEach((channel, channelIndex) => {
|
|
297
|
+
lines.push(`${indent(level + 1)}{`);
|
|
298
|
+
const entries = [];
|
|
299
|
+
entries.push(`"node": ${q(channel.node)}`);
|
|
300
|
+
entries.push(`"property": ${q(channel.property)}`);
|
|
301
|
+
const keyframeLines = formatAnimationKeyframes(channel.keyframes, level + 2);
|
|
302
|
+
entries.push(keyframeLines);
|
|
303
|
+
pushEntries(lines, entries, level + 2);
|
|
304
|
+
lines.push(`${indent(level + 1)}}${channelIndex === channels.length - 1 ? '' : ','}`);
|
|
305
|
+
});
|
|
306
|
+
lines.push(`${indent(level)}]`);
|
|
307
|
+
return lines;
|
|
308
|
+
};
|
|
309
|
+
const formatAnimationKeyframes = (keyframes, level) => {
|
|
310
|
+
if (!keyframes.length) {
|
|
311
|
+
return [`${indent(level)}"keyframes": []`];
|
|
312
|
+
}
|
|
313
|
+
const lines = [];
|
|
314
|
+
lines.push(`${indent(level)}"keyframes": [`);
|
|
315
|
+
const orderedKeyframes = [...keyframes].sort((a, b) => a.time - b.time);
|
|
316
|
+
orderedKeyframes.forEach((keyframe, keyframeIndex) => {
|
|
317
|
+
lines.push(`${indent(level + 1)}{`);
|
|
318
|
+
const entries = [];
|
|
319
|
+
entries.push(`"time": ${(0, format_utils_1.formatNumber)(keyframe.time)}`);
|
|
320
|
+
entries.push(`"value": ${formatVector(keyframe.value)}`);
|
|
321
|
+
pushEntries(lines, entries, level + 2);
|
|
322
|
+
lines.push(`${indent(level + 1)}}${keyframeIndex === keyframes.length - 1 ? '' : ','}`);
|
|
323
|
+
});
|
|
324
|
+
lines.push(`${indent(level)}]`);
|
|
325
|
+
return lines;
|
|
326
|
+
};
|
|
327
|
+
const formatEntity = (model) => {
|
|
328
|
+
const lines = [];
|
|
329
|
+
lines.push('{');
|
|
330
|
+
lines.push(`${indent(1)}"id": ${q(model.id)},`);
|
|
331
|
+
appendGeometry(lines, model.geometry, 1);
|
|
332
|
+
const markComma = () => {
|
|
333
|
+
const lastIndex = lines.length - 1;
|
|
334
|
+
lines[lastIndex] = `${lines[lastIndex]},`;
|
|
335
|
+
};
|
|
336
|
+
markComma();
|
|
337
|
+
appendPatterns(lines, model.patterns, 1);
|
|
338
|
+
markComma();
|
|
339
|
+
appendMaterials(lines, model.materials, 1);
|
|
340
|
+
markComma();
|
|
341
|
+
appendTextures(lines, model.textures, 1);
|
|
342
|
+
markComma();
|
|
343
|
+
appendPrimitives(lines, model.primitives, 1);
|
|
344
|
+
markComma();
|
|
345
|
+
appendAnimations(lines, model.animations, 1);
|
|
346
|
+
lines.push('}');
|
|
347
|
+
return lines.join('\n');
|
|
348
|
+
};
|
|
349
|
+
exports.formatEntity = formatEntity;
|
|
350
|
+
const sanitizeErrorMessage = (error) => {
|
|
351
|
+
if (!error)
|
|
352
|
+
return 'Unknown error';
|
|
353
|
+
if (typeof error === 'string')
|
|
354
|
+
return error;
|
|
355
|
+
if (error instanceof Error)
|
|
356
|
+
return error.message;
|
|
357
|
+
if (typeof error === 'object' && 'message' in error) {
|
|
358
|
+
const candidate = error.message;
|
|
359
|
+
return typeof candidate === 'string' ? candidate : 'Unknown error';
|
|
360
|
+
}
|
|
361
|
+
return String(error);
|
|
362
|
+
};
|
|
363
|
+
const parseEntity = (candidate) => {
|
|
364
|
+
return (0, validation_1.assertEntity)(candidate);
|
|
365
|
+
};
|
|
366
|
+
exports.parseEntity = parseEntity;
|
|
367
|
+
const parseEntityJson = (raw) => {
|
|
368
|
+
let parsed;
|
|
369
|
+
try {
|
|
370
|
+
parsed = JSON.parse(raw);
|
|
371
|
+
}
|
|
372
|
+
catch (error) {
|
|
373
|
+
const issue = {
|
|
374
|
+
path: 'json',
|
|
375
|
+
message: sanitizeErrorMessage(error),
|
|
376
|
+
};
|
|
377
|
+
throw new validation_1.EntityValidationError('Failed to parse entity JSON', [issue]);
|
|
378
|
+
}
|
|
379
|
+
return (0, exports.parseEntity)(parsed);
|
|
380
|
+
};
|
|
381
|
+
exports.parseEntityJson = parseEntityJson;
|
|
382
|
+
//# sourceMappingURL=serialization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialization.js","sourceRoot":"","sources":["../../src/serialization.ts"],"names":[],"mappings":";;;AAYA,iDAA8C;AAC9C,6CAA+F;AAE/F,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,MAAM,MAAM,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/D,MAAM,CAAC,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAI3D,MAAM,YAAY,GAAG,CAAC,GAAsB,EAAU,EAAE,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,2BAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAEjG,MAAM,YAAY,GAAG,CAAC,GAAyC,EAAW,EAAE,CAC1E,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;AAErF,MAAM,YAAY,GAAG,CAAC,GAAyC,EAAW,EAAE,CAC1E,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG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,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,KAAK,YAAY,KAAK;QAAE,OAAO,KAAK,CAAC,OAAO,CAAC;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,IAAI,KAAK,EAAE,CAAC;QACpD,MAAM,SAAS,GAAI,KAA+B,CAAC,OAAO,CAAC;QAC3D,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC;IACrE,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC;AAEK,MAAM,WAAW,GAAG,CAAC,SAAkB,EAAU,EAAE;IACxD,OAAO,IAAA,yBAAY,EAAC,SAAS,CAAC,CAAC;AACjC,CAAC,CAAC;AAFW,QAAA,WAAW,eAEtB;AAEK,MAAM,eAAe,GAAG,CAAC,GAAW,EAAU,EAAE;IACrD,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,KAAK,GAA0B;YACnC,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;SACrC,CAAC;QACF,MAAM,IAAI,kCAAqB,CAAC,6BAA6B,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,IAAA,mBAAW,EAAC,MAAM,CAAC,CAAC;AAC7B,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Entity, Material, Pattern, TexturedBox, Texture } from './types';
|
|
2
|
+
export type FaceKey = 'top' | 'bottom' | 'north' | 'south' | 'east' | 'west';
|
|
3
|
+
export declare function uvToCanvasPixel(u: number, v: number, width: number, height: number): {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const buildPatternAscii: (pattern: {
|
|
8
|
+
size: [number, number];
|
|
9
|
+
data: number[];
|
|
10
|
+
}) => string[];
|
|
11
|
+
export declare function resolveFaceTextureId(box: TexturedBox, face: FaceKey): string | undefined;
|
|
12
|
+
export declare function resolveOverlayFaceTextureId(box: TexturedBox, face: FaceKey): string | undefined;
|
|
13
|
+
export declare function collectFaceTextureIds(box: TexturedBox): string[];
|
|
14
|
+
export declare function collectOverlayFaceTextureIds(box: TexturedBox): string[];
|
|
15
|
+
export declare function getFaceKeys(): FaceKey[];
|
|
16
|
+
export declare function getTextureMaterialIds(texture: Texture): string[];
|
|
17
|
+
export declare function collectTexturedBoxTextures(box: TexturedBox): Set<string>;
|
|
18
|
+
export declare function collectTexturedBoxMaterials(box: TexturedBox, textureLookup: Map<string, Texture>): Set<string>;
|
|
19
|
+
export declare function collectTexturedBoxPatterns(box: TexturedBox, textureLookup: Map<string, Texture>): Set<string>;
|
|
20
|
+
export declare function determineTexturedBoxRenderMode(entity: Entity, box: TexturedBox): 'plain' | 'cutout';
|
|
21
|
+
export interface TexturedBoxDependencySummary {
|
|
22
|
+
textures: Set<string>;
|
|
23
|
+
materials: Set<string>;
|
|
24
|
+
patterns: Set<string>;
|
|
25
|
+
}
|
|
26
|
+
export declare function collectTexturedBoxDependencies(box: TexturedBox, textureLookup: Map<string, Texture>): TexturedBoxDependencySummary;
|
|
27
|
+
export declare function collectEntityTextureLookup(entity: Entity): Map<string, Texture>;
|
|
28
|
+
export declare function collectEntityMaterialLookup(entity: Entity): Map<string, Material>;
|
|
29
|
+
export declare function collectEntityPatternLookup(entity: Entity): Map<string, Pattern>;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPatternAscii = void 0;
|
|
4
|
+
exports.uvToCanvasPixel = uvToCanvasPixel;
|
|
5
|
+
exports.resolveFaceTextureId = resolveFaceTextureId;
|
|
6
|
+
exports.resolveOverlayFaceTextureId = resolveOverlayFaceTextureId;
|
|
7
|
+
exports.collectFaceTextureIds = collectFaceTextureIds;
|
|
8
|
+
exports.collectOverlayFaceTextureIds = collectOverlayFaceTextureIds;
|
|
9
|
+
exports.getFaceKeys = getFaceKeys;
|
|
10
|
+
exports.getTextureMaterialIds = getTextureMaterialIds;
|
|
11
|
+
exports.collectTexturedBoxTextures = collectTexturedBoxTextures;
|
|
12
|
+
exports.collectTexturedBoxMaterials = collectTexturedBoxMaterials;
|
|
13
|
+
exports.collectTexturedBoxPatterns = collectTexturedBoxPatterns;
|
|
14
|
+
exports.determineTexturedBoxRenderMode = determineTexturedBoxRenderMode;
|
|
15
|
+
exports.collectTexturedBoxDependencies = collectTexturedBoxDependencies;
|
|
16
|
+
exports.collectEntityTextureLookup = collectEntityTextureLookup;
|
|
17
|
+
exports.collectEntityMaterialLookup = collectEntityMaterialLookup;
|
|
18
|
+
exports.collectEntityPatternLookup = collectEntityPatternLookup;
|
|
19
|
+
const FACE_FALLBACKS = {
|
|
20
|
+
top: ['top', 'all', 'sides'],
|
|
21
|
+
bottom: ['bottom', 'all', 'sides'],
|
|
22
|
+
north: ['north', 'sides', 'all'],
|
|
23
|
+
south: ['south', 'sides', 'all'],
|
|
24
|
+
east: ['east', 'sides', 'all'],
|
|
25
|
+
west: ['west', 'sides', 'all'],
|
|
26
|
+
};
|
|
27
|
+
const FACE_KEYS = ['top', 'bottom', 'north', 'south', 'east', 'west'];
|
|
28
|
+
const OVERLAY_FACE_FALLBACKS = {
|
|
29
|
+
top: ['topOverlay', 'allOverlay', 'sidesOverlay'],
|
|
30
|
+
bottom: ['bottomOverlay', 'allOverlay', 'sidesOverlay'],
|
|
31
|
+
north: ['northOverlay', 'sidesOverlay', 'allOverlay'],
|
|
32
|
+
south: ['southOverlay', 'sidesOverlay', 'allOverlay'],
|
|
33
|
+
east: ['eastOverlay', 'sidesOverlay', 'allOverlay'],
|
|
34
|
+
west: ['westOverlay', 'sidesOverlay', 'allOverlay'],
|
|
35
|
+
};
|
|
36
|
+
const EPSILON = 1e-6;
|
|
37
|
+
const clamp = (value, min, max) => {
|
|
38
|
+
if (!Number.isFinite(value))
|
|
39
|
+
return min;
|
|
40
|
+
if (value < min)
|
|
41
|
+
return min;
|
|
42
|
+
if (value > max)
|
|
43
|
+
return max;
|
|
44
|
+
return value;
|
|
45
|
+
};
|
|
46
|
+
const toDimension = (value) => {
|
|
47
|
+
if (!Number.isFinite(value) || value < 1) {
|
|
48
|
+
throw new Error('texture_dimension_invalid');
|
|
49
|
+
}
|
|
50
|
+
return Math.floor(value);
|
|
51
|
+
};
|
|
52
|
+
function uvToCanvasPixel(u, v, width, height) {
|
|
53
|
+
const w = toDimension(width);
|
|
54
|
+
const h = toDimension(height);
|
|
55
|
+
const clampedU = clamp(u, 0, 1);
|
|
56
|
+
const clampedV = clamp(v, 0, 1);
|
|
57
|
+
const x = Math.min(w - 1, Math.max(0, Math.round(clampedU * (w - 1 + EPSILON))));
|
|
58
|
+
const y = Math.min(h - 1, Math.max(0, Math.round(clampedV * (h - 1 + EPSILON))));
|
|
59
|
+
return { x, y };
|
|
60
|
+
}
|
|
61
|
+
const toAsciiSymbol = (value) => {
|
|
62
|
+
if (value >= 0 && value <= 9)
|
|
63
|
+
return value.toString();
|
|
64
|
+
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
65
|
+
const index = value - 10;
|
|
66
|
+
if (index >= 0 && index < alphabet.length)
|
|
67
|
+
return alphabet[index];
|
|
68
|
+
return '?';
|
|
69
|
+
};
|
|
70
|
+
const buildPatternAscii = (pattern) => {
|
|
71
|
+
const [width, height] = pattern.size;
|
|
72
|
+
const lines = [];
|
|
73
|
+
for (let y = 0; y < height; y += 1) {
|
|
74
|
+
const start = y * width;
|
|
75
|
+
const line = pattern.data.slice(start, start + width).map(toAsciiSymbol).join('');
|
|
76
|
+
lines.push(line);
|
|
77
|
+
}
|
|
78
|
+
return lines;
|
|
79
|
+
};
|
|
80
|
+
exports.buildPatternAscii = buildPatternAscii;
|
|
81
|
+
function resolveFaceTextureId(box, face) {
|
|
82
|
+
const order = FACE_FALLBACKS[face];
|
|
83
|
+
for (const key of order) {
|
|
84
|
+
const candidate = box[key];
|
|
85
|
+
if (typeof candidate === 'string' && candidate.trim().length > 0) {
|
|
86
|
+
return candidate;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
function resolveOverlayFaceTextureId(box, face) {
|
|
92
|
+
const order = OVERLAY_FACE_FALLBACKS[face];
|
|
93
|
+
for (const key of order) {
|
|
94
|
+
const candidate = box[key];
|
|
95
|
+
if (typeof candidate === 'string' && candidate.trim().length > 0) {
|
|
96
|
+
return candidate;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
function collectFaceTextureIds(box) {
|
|
102
|
+
const ids = new Set();
|
|
103
|
+
FACE_KEYS.forEach(face => {
|
|
104
|
+
const textureId = resolveFaceTextureId(box, face);
|
|
105
|
+
if (textureId) {
|
|
106
|
+
ids.add(textureId);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
return Array.from(ids);
|
|
110
|
+
}
|
|
111
|
+
function collectOverlayFaceTextureIds(box) {
|
|
112
|
+
const ids = new Set();
|
|
113
|
+
FACE_KEYS.forEach(face => {
|
|
114
|
+
const textureId = resolveOverlayFaceTextureId(box, face);
|
|
115
|
+
if (textureId) {
|
|
116
|
+
ids.add(textureId);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return Array.from(ids);
|
|
120
|
+
}
|
|
121
|
+
function getFaceKeys() {
|
|
122
|
+
return [...FACE_KEYS];
|
|
123
|
+
}
|
|
124
|
+
function getTextureMaterialIds(texture) {
|
|
125
|
+
return Array.isArray(texture.materials) ? [...texture.materials] : [];
|
|
126
|
+
}
|
|
127
|
+
function collectTexturedBoxTextures(box) {
|
|
128
|
+
const textures = new Set();
|
|
129
|
+
collectFaceTextureIds(box).forEach(id => textures.add(id));
|
|
130
|
+
collectOverlayFaceTextureIds(box).forEach(id => textures.add(id));
|
|
131
|
+
return textures;
|
|
132
|
+
}
|
|
133
|
+
function collectTexturedBoxMaterials(box, textureLookup) {
|
|
134
|
+
const materialIds = new Set();
|
|
135
|
+
const textureIds = [
|
|
136
|
+
...collectFaceTextureIds(box),
|
|
137
|
+
...collectOverlayFaceTextureIds(box),
|
|
138
|
+
];
|
|
139
|
+
textureIds.forEach(textureId => {
|
|
140
|
+
const texture = textureLookup.get(textureId);
|
|
141
|
+
if (!texture)
|
|
142
|
+
return;
|
|
143
|
+
texture.materials.forEach(materialId => materialIds.add(materialId));
|
|
144
|
+
});
|
|
145
|
+
return materialIds;
|
|
146
|
+
}
|
|
147
|
+
function collectTexturedBoxPatterns(box, textureLookup) {
|
|
148
|
+
const patternIds = new Set();
|
|
149
|
+
const textureIds = [
|
|
150
|
+
...collectFaceTextureIds(box),
|
|
151
|
+
...collectOverlayFaceTextureIds(box),
|
|
152
|
+
];
|
|
153
|
+
textureIds.forEach(textureId => {
|
|
154
|
+
const texture = textureLookup.get(textureId);
|
|
155
|
+
if (!texture)
|
|
156
|
+
return;
|
|
157
|
+
patternIds.add(texture.pattern);
|
|
158
|
+
});
|
|
159
|
+
return patternIds;
|
|
160
|
+
}
|
|
161
|
+
function buildTextureLookup(entity) {
|
|
162
|
+
return new Map(entity.textures.map(texture => [texture.id, texture]));
|
|
163
|
+
}
|
|
164
|
+
function buildMaterialLookup(entity) {
|
|
165
|
+
return new Map(entity.materials.map(material => [material.id, material]));
|
|
166
|
+
}
|
|
167
|
+
function determineTexturedBoxRenderMode(entity, box) {
|
|
168
|
+
const textureLookup = buildTextureLookup(entity);
|
|
169
|
+
const materialLookup = buildMaterialLookup(entity);
|
|
170
|
+
const textureIds = new Set([
|
|
171
|
+
...collectFaceTextureIds(box),
|
|
172
|
+
...collectOverlayFaceTextureIds(box),
|
|
173
|
+
]);
|
|
174
|
+
for (const textureId of textureIds) {
|
|
175
|
+
const texture = textureLookup.get(textureId);
|
|
176
|
+
if (!texture) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
for (const materialId of texture.materials) {
|
|
180
|
+
const material = materialLookup.get(materialId);
|
|
181
|
+
if (!material) {
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
const opacity = material.opacity;
|
|
185
|
+
if (opacity !== undefined && Number(opacity) < 1) {
|
|
186
|
+
return 'cutout';
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return 'plain';
|
|
191
|
+
}
|
|
192
|
+
function collectTexturedBoxDependencies(box, textureLookup) {
|
|
193
|
+
const textures = collectTexturedBoxTextures(box);
|
|
194
|
+
const materials = new Set();
|
|
195
|
+
const patterns = new Set();
|
|
196
|
+
textures.forEach(textureId => {
|
|
197
|
+
const texture = textureLookup.get(textureId);
|
|
198
|
+
if (!texture)
|
|
199
|
+
return;
|
|
200
|
+
patterns.add(texture.pattern);
|
|
201
|
+
texture.materials.forEach(materialId => materials.add(materialId));
|
|
202
|
+
});
|
|
203
|
+
return { textures, materials, patterns };
|
|
204
|
+
}
|
|
205
|
+
function collectEntityTextureLookup(entity) {
|
|
206
|
+
return buildTextureLookup(entity);
|
|
207
|
+
}
|
|
208
|
+
function collectEntityMaterialLookup(entity) {
|
|
209
|
+
return buildMaterialLookup(entity);
|
|
210
|
+
}
|
|
211
|
+
function collectEntityPatternLookup(entity) {
|
|
212
|
+
return new Map(entity.patterns.map(pattern => [pattern.id, pattern]));
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=textures.js.map
|