@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,396 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildHumanoidR15Entity = buildHumanoidR15Entity;
|
|
4
|
+
const slice_1 = require("../../transforms/voxels/slice");
|
|
5
|
+
const materials_1 = require("../../materials");
|
|
6
|
+
const entity_utils_1 = require("../../entity-utils");
|
|
7
|
+
const common_1 = require("./common");
|
|
8
|
+
const REQUIRED_NODES = [
|
|
9
|
+
'Head',
|
|
10
|
+
'Chest',
|
|
11
|
+
'Hip',
|
|
12
|
+
'Right_Thigh',
|
|
13
|
+
'Right_Leg',
|
|
14
|
+
'Right_Foot',
|
|
15
|
+
'Left_Thigh',
|
|
16
|
+
'Left_Leg',
|
|
17
|
+
'Left_Foot',
|
|
18
|
+
'Right_Arm',
|
|
19
|
+
'Right_Forearm',
|
|
20
|
+
'Right_Hand',
|
|
21
|
+
'Left_Arm',
|
|
22
|
+
'Left_Forearm',
|
|
23
|
+
'Left_Hand',
|
|
24
|
+
];
|
|
25
|
+
const getNode = (nodes, id) => {
|
|
26
|
+
const node = nodes.get(id);
|
|
27
|
+
if (!node) {
|
|
28
|
+
throw new Error(`Humanoid R15 template is missing "${id}" node`);
|
|
29
|
+
}
|
|
30
|
+
return node;
|
|
31
|
+
};
|
|
32
|
+
const cloneVoxelPrimitive = (source, id) => {
|
|
33
|
+
const primitive = source.primitives.find(entry => entry.id === id);
|
|
34
|
+
if (!primitive || primitive.kind !== 'voxel_box') {
|
|
35
|
+
throw new Error(`Converted humanoid entity is missing voxel primitive "${id}"`);
|
|
36
|
+
}
|
|
37
|
+
return (0, entity_utils_1.cloneEntity)(primitive);
|
|
38
|
+
};
|
|
39
|
+
const flipVoxelBox = (primitive) => {
|
|
40
|
+
const clone = (0, entity_utils_1.cloneEntity)(primitive);
|
|
41
|
+
const width = Math.max((0, common_1.roundSize)(primitive.size[0]), 1);
|
|
42
|
+
const height = Math.max((0, common_1.roundSize)(primitive.size[1]), 1);
|
|
43
|
+
const depth = Math.max((0, common_1.roundSize)(primitive.size[2]), 1);
|
|
44
|
+
const sourceVoxels = primitive.voxels ?? [];
|
|
45
|
+
const flippedVoxels = new Array(width * height * depth).fill(0);
|
|
46
|
+
for (let z = 0; z < depth; z += 1) {
|
|
47
|
+
for (let y = 0; y < height; y += 1) {
|
|
48
|
+
for (let x = 0; x < width; x += 1) {
|
|
49
|
+
const sourceIndex = x + width * (y + height * z);
|
|
50
|
+
const mirroredX = width - 1 - x;
|
|
51
|
+
const targetIndex = mirroredX + width * (y + height * z);
|
|
52
|
+
flippedVoxels[targetIndex] = sourceVoxels[sourceIndex] ?? 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
clone.voxels = flippedVoxels;
|
|
57
|
+
return clone;
|
|
58
|
+
};
|
|
59
|
+
function buildHumanoidR15Entity(options) {
|
|
60
|
+
const { template, source, outputId } = options;
|
|
61
|
+
const templateClone = (0, common_1.cloneTemplate)(template, outputId);
|
|
62
|
+
const nodesById = (0, common_1.collectNodes)(templateClone.geometry.root, (node) => {
|
|
63
|
+
node.mesh = undefined;
|
|
64
|
+
});
|
|
65
|
+
const headNode = getNode(nodesById, 'Head');
|
|
66
|
+
const chestNode = getNode(nodesById, 'Chest');
|
|
67
|
+
const hipNode = getNode(nodesById, 'Hip');
|
|
68
|
+
const rightThighNode = getNode(nodesById, 'Right_Thigh');
|
|
69
|
+
const rightLegNode = getNode(nodesById, 'Right_Leg');
|
|
70
|
+
const rightFootNode = getNode(nodesById, 'Right_Foot');
|
|
71
|
+
const leftThighNode = getNode(nodesById, 'Left_Thigh');
|
|
72
|
+
const leftLegNode = getNode(nodesById, 'Left_Leg');
|
|
73
|
+
const leftFootNode = getNode(nodesById, 'Left_Foot');
|
|
74
|
+
const rightArmNode = getNode(nodesById, 'Right_Arm');
|
|
75
|
+
const rightForearmNode = getNode(nodesById, 'Right_Forearm');
|
|
76
|
+
const rightHandNode = getNode(nodesById, 'Right_Hand');
|
|
77
|
+
const leftArmNode = getNode(nodesById, 'Left_Arm');
|
|
78
|
+
const leftForearmNode = getNode(nodesById, 'Left_Forearm');
|
|
79
|
+
const leftHandNode = getNode(nodesById, 'Left_Hand');
|
|
80
|
+
const hipOriginalSize = [
|
|
81
|
+
Number(hipNode.size?.[0] ?? 0),
|
|
82
|
+
Number(hipNode.size?.[1] ?? 0),
|
|
83
|
+
Number(hipNode.size?.[2] ?? 0),
|
|
84
|
+
];
|
|
85
|
+
const chestOriginalSize = [
|
|
86
|
+
Number(chestNode.size?.[0] ?? 0),
|
|
87
|
+
Number(chestNode.size?.[1] ?? 0),
|
|
88
|
+
Number(chestNode.size?.[2] ?? 0),
|
|
89
|
+
];
|
|
90
|
+
const hipOriginalCenter = [
|
|
91
|
+
Number(hipNode.center?.[0] ?? 0),
|
|
92
|
+
Number(hipNode.center?.[1] ?? (hipOriginalSize[1] || 0) / 2),
|
|
93
|
+
Number(hipNode.center?.[2] ?? 0),
|
|
94
|
+
];
|
|
95
|
+
const chestOriginalCenter = [
|
|
96
|
+
Number(chestNode.center?.[0] ?? 0),
|
|
97
|
+
Number(chestNode.center?.[1] ?? (chestOriginalSize[1] || 0) / 2),
|
|
98
|
+
Number(chestNode.center?.[2] ?? 0),
|
|
99
|
+
];
|
|
100
|
+
const hipCenterYOffset = hipOriginalCenter[1] - hipOriginalSize[1] / 2;
|
|
101
|
+
const chestCenterYOffset = chestOriginalCenter[1] - chestOriginalSize[1] / 2;
|
|
102
|
+
const headPrimitive = cloneVoxelPrimitive(source, 'head_primitive');
|
|
103
|
+
headPrimitive.id = `${headNode.id}_voxel`;
|
|
104
|
+
const torsoPrimitive = cloneVoxelPrimitive(source, 'torso_primitive');
|
|
105
|
+
const hipTarget = (0, common_1.roundSize)(hipNode.size?.[1] ?? 6);
|
|
106
|
+
const chestTarget = (0, common_1.roundSize)(chestNode.size?.[1] ?? 20);
|
|
107
|
+
const targetTotal = Math.max(hipTarget + chestTarget, 1);
|
|
108
|
+
const torsoHeight = (0, common_1.roundSize)(torsoPrimitive.size[1]);
|
|
109
|
+
const idealSplit = Math.round((hipTarget / targetTotal) * torsoHeight);
|
|
110
|
+
const splitPlane = Math.min(Math.max(idealSplit, 1), torsoHeight - 1);
|
|
111
|
+
const torsoSplit = (0, slice_1.splitVoxelBoxClone)(torsoPrimitive, 'y', splitPlane);
|
|
112
|
+
const hipPrimitive = torsoSplit.first;
|
|
113
|
+
hipPrimitive.id = `${hipNode.id}_voxel`;
|
|
114
|
+
const chestPrimitive = torsoSplit.second;
|
|
115
|
+
chestPrimitive.id = `${chestNode.id}_voxel`;
|
|
116
|
+
const newPrimitives = [];
|
|
117
|
+
newPrimitives.push(headPrimitive, chestPrimitive, hipPrimitive);
|
|
118
|
+
headNode.mesh = headPrimitive.id;
|
|
119
|
+
hipNode.mesh = hipPrimitive.id;
|
|
120
|
+
chestNode.mesh = chestPrimitive.id;
|
|
121
|
+
hipNode.size = [hipPrimitive.size[0], hipPrimitive.size[1], hipPrimitive.size[2]];
|
|
122
|
+
hipNode.center = [
|
|
123
|
+
hipOriginalCenter[0],
|
|
124
|
+
hipCenterYOffset + hipPrimitive.size[1] / 2,
|
|
125
|
+
hipOriginalCenter[2],
|
|
126
|
+
];
|
|
127
|
+
chestNode.size = [chestPrimitive.size[0], chestPrimitive.size[1], chestPrimitive.size[2]];
|
|
128
|
+
const chestCenter = [
|
|
129
|
+
chestOriginalCenter[0],
|
|
130
|
+
chestPrimitive.size[1] / 2,
|
|
131
|
+
chestOriginalCenter[2],
|
|
132
|
+
];
|
|
133
|
+
chestNode.center = chestCenter;
|
|
134
|
+
const chestPosition = [...(chestNode.position ?? [0, 0, 0])];
|
|
135
|
+
chestPosition[1] = hipPrimitive.size[1];
|
|
136
|
+
chestNode.position = chestPosition;
|
|
137
|
+
const chestSizeDelta = chestPrimitive.size[1] - chestOriginalSize[1];
|
|
138
|
+
if (Math.abs(chestSizeDelta) > 1e-6 && Array.isArray(chestNode.children)) {
|
|
139
|
+
chestNode.children.forEach((child) => {
|
|
140
|
+
if (!Array.isArray(child.position)) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const updatedPosition = [...child.position];
|
|
144
|
+
updatedPosition[1] += chestSizeDelta;
|
|
145
|
+
child.position = updatedPosition;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
if (Array.isArray(headNode.position)) {
|
|
149
|
+
const headPosition = [...headNode.position];
|
|
150
|
+
headPosition[1] = chestPrimitive.size[1];
|
|
151
|
+
headNode.position = headPosition;
|
|
152
|
+
}
|
|
153
|
+
const legConfigs = [
|
|
154
|
+
{ primitiveId: 'leg_right_primitive', thighNode: rightThighNode, legNode: rightLegNode, footNode: rightFootNode },
|
|
155
|
+
{ primitiveId: 'leg_left_primitive', thighNode: leftThighNode, legNode: leftLegNode, footNode: leftFootNode },
|
|
156
|
+
];
|
|
157
|
+
legConfigs.forEach(config => {
|
|
158
|
+
const sourcePrimitive = cloneVoxelPrimitive(source, config.primitiveId);
|
|
159
|
+
const totalHeight = (0, common_1.roundSize)(sourcePrimitive.size[1]);
|
|
160
|
+
const thighOriginalSize = [
|
|
161
|
+
Number(config.thighNode.size?.[0] ?? 0),
|
|
162
|
+
Number(config.thighNode.size?.[1] ?? 0),
|
|
163
|
+
Number(config.thighNode.size?.[2] ?? 0),
|
|
164
|
+
];
|
|
165
|
+
const thighOriginalCenter = [
|
|
166
|
+
Number(config.thighNode.center?.[0] ?? 0),
|
|
167
|
+
Number(config.thighNode.center?.[1] ?? 0),
|
|
168
|
+
Number(config.thighNode.center?.[2] ?? 0),
|
|
169
|
+
];
|
|
170
|
+
const legOriginalSize = [
|
|
171
|
+
Number(config.legNode.size?.[0] ?? 0),
|
|
172
|
+
Number(config.legNode.size?.[1] ?? 0),
|
|
173
|
+
Number(config.legNode.size?.[2] ?? 0),
|
|
174
|
+
];
|
|
175
|
+
const legOriginalCenter = [
|
|
176
|
+
Number(config.legNode.center?.[0] ?? 0),
|
|
177
|
+
Number(config.legNode.center?.[1] ?? 0),
|
|
178
|
+
Number(config.legNode.center?.[2] ?? 0),
|
|
179
|
+
];
|
|
180
|
+
const footOriginalSize = [
|
|
181
|
+
Number(config.footNode.size?.[0] ?? 0),
|
|
182
|
+
Number(config.footNode.size?.[1] ?? 0),
|
|
183
|
+
Number(config.footNode.size?.[2] ?? 0),
|
|
184
|
+
];
|
|
185
|
+
const footOriginalCenter = [
|
|
186
|
+
Number(config.footNode.center?.[0] ?? 0),
|
|
187
|
+
Number(config.footNode.center?.[1] ?? 0),
|
|
188
|
+
Number(config.footNode.center?.[2] ?? 0),
|
|
189
|
+
];
|
|
190
|
+
const targetThighHeight = (0, common_1.roundSize)(thighOriginalSize[1]);
|
|
191
|
+
const targetLegHeight = (0, common_1.roundSize)(legOriginalSize[1]);
|
|
192
|
+
const targetFootHeight = (0, common_1.roundSize)(footOriginalSize[1]);
|
|
193
|
+
const targetTotalHeight = Math.max(targetThighHeight + targetLegHeight + targetFootHeight, 1);
|
|
194
|
+
let thighHeight = Math.max(1, Math.round((targetThighHeight / targetTotalHeight) * totalHeight));
|
|
195
|
+
let legHeight = Math.max(1, Math.round((targetLegHeight / targetTotalHeight) * totalHeight));
|
|
196
|
+
let footHeight = Math.max(1, totalHeight - thighHeight - legHeight);
|
|
197
|
+
let heightSum = thighHeight + legHeight + footHeight;
|
|
198
|
+
if (heightSum < totalHeight) {
|
|
199
|
+
footHeight += totalHeight - heightSum;
|
|
200
|
+
}
|
|
201
|
+
else if (heightSum > totalHeight) {
|
|
202
|
+
let diff = heightSum - totalHeight;
|
|
203
|
+
const reducers = [
|
|
204
|
+
() => {
|
|
205
|
+
if (footHeight > 1) {
|
|
206
|
+
footHeight -= 1;
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
return false;
|
|
210
|
+
},
|
|
211
|
+
() => {
|
|
212
|
+
if (legHeight > 1) {
|
|
213
|
+
legHeight -= 1;
|
|
214
|
+
return true;
|
|
215
|
+
}
|
|
216
|
+
return false;
|
|
217
|
+
},
|
|
218
|
+
() => {
|
|
219
|
+
if (thighHeight > 1) {
|
|
220
|
+
thighHeight -= 1;
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
return false;
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
while (diff > 0) {
|
|
227
|
+
let reduced = false;
|
|
228
|
+
for (const reducer of reducers) {
|
|
229
|
+
if (reducer()) {
|
|
230
|
+
diff -= 1;
|
|
231
|
+
reduced = true;
|
|
232
|
+
if (diff === 0) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (!reduced) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
if (thighHeight + legHeight + footHeight !== totalHeight) {
|
|
243
|
+
footHeight = Math.max(1, totalHeight - thighHeight - legHeight);
|
|
244
|
+
}
|
|
245
|
+
const footSplit = (0, slice_1.splitVoxelBoxClone)(sourcePrimitive, 'y', footHeight);
|
|
246
|
+
const footPrimitive = footSplit.first;
|
|
247
|
+
footPrimitive.id = `${config.footNode.id}_voxel`;
|
|
248
|
+
const upperPrimitive = footSplit.second;
|
|
249
|
+
const legSplit = (0, slice_1.splitVoxelBoxClone)(upperPrimitive, 'y', legHeight);
|
|
250
|
+
const legPrimitive = legSplit.first;
|
|
251
|
+
legPrimitive.id = `${config.legNode.id}_voxel`;
|
|
252
|
+
const thighPrimitive = legSplit.second;
|
|
253
|
+
thighPrimitive.id = `${config.thighNode.id}_voxel`;
|
|
254
|
+
config.thighNode.mesh = thighPrimitive.id;
|
|
255
|
+
config.legNode.mesh = legPrimitive.id;
|
|
256
|
+
config.footNode.mesh = footPrimitive.id;
|
|
257
|
+
config.thighNode.size = [thighPrimitive.size[0], thighPrimitive.size[1], thighPrimitive.size[2]];
|
|
258
|
+
(0, entity_utils_1.applyNodeDimensionsAxis)(config.thighNode, thighPrimitive, thighOriginalSize, thighOriginalCenter, 'y');
|
|
259
|
+
config.legNode.size = [legPrimitive.size[0], legPrimitive.size[1], legPrimitive.size[2]];
|
|
260
|
+
(0, entity_utils_1.applyNodeDimensionsAxis)(config.legNode, legPrimitive, legOriginalSize, legOriginalCenter, 'y');
|
|
261
|
+
const legCenter = [
|
|
262
|
+
Number(config.legNode.center?.[0] ?? 0),
|
|
263
|
+
-legPrimitive.size[1] / 2,
|
|
264
|
+
Number(config.legNode.center?.[2] ?? 0),
|
|
265
|
+
];
|
|
266
|
+
config.legNode.center = legCenter;
|
|
267
|
+
config.footNode.size = [footPrimitive.size[0], footPrimitive.size[1], footPrimitive.size[2]];
|
|
268
|
+
(0, entity_utils_1.applyNodeDimensionsAxis)(config.footNode, footPrimitive, footOriginalSize, footOriginalCenter, 'y');
|
|
269
|
+
const thighBottom = (config.thighNode.center?.[1] ?? 0) - thighPrimitive.size[1] / 2;
|
|
270
|
+
(0, entity_utils_1.updateChildPositionAxis)(config.thighNode, config.legNode.id, 'y', thighBottom);
|
|
271
|
+
const legBottom = (config.legNode.center?.[1] ?? 0) - legPrimitive.size[1] / 2;
|
|
272
|
+
(0, entity_utils_1.updateChildPositionAxis)(config.legNode, config.footNode.id, 'y', legBottom);
|
|
273
|
+
const thighSizeDelta = thighPrimitive.size[1] - thighOriginalSize[1];
|
|
274
|
+
if (Math.abs(thighSizeDelta) > 1e-6 && Array.isArray(config.thighNode.children)) {
|
|
275
|
+
config.thighNode.children.forEach(child => {
|
|
276
|
+
if (child.id === config.legNode.id || !Array.isArray(child.position)) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
const updated = [...child.position];
|
|
280
|
+
updated[1] += thighSizeDelta;
|
|
281
|
+
child.position = updated;
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
const legSizeDelta = legPrimitive.size[1] - legOriginalSize[1];
|
|
285
|
+
if (Math.abs(legSizeDelta) > 1e-6 && Array.isArray(config.legNode.children)) {
|
|
286
|
+
config.legNode.children.forEach(child => {
|
|
287
|
+
if (child.id === config.footNode.id || !Array.isArray(child.position)) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const updated = [...child.position];
|
|
291
|
+
updated[1] += legSizeDelta;
|
|
292
|
+
child.position = updated;
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
newPrimitives.push(thighPrimitive, legPrimitive, footPrimitive);
|
|
296
|
+
});
|
|
297
|
+
const applyArmDimensions = (node, primitive, originalSize, originalCenter, orientation) => {
|
|
298
|
+
node.size = [primitive.size[0], primitive.size[1], primitive.size[2]];
|
|
299
|
+
const center = [
|
|
300
|
+
Number(originalCenter[0]),
|
|
301
|
+
Number(originalCenter[1]),
|
|
302
|
+
Number(originalCenter[2]),
|
|
303
|
+
];
|
|
304
|
+
center[0] = (0, entity_utils_1.anchorCenter)(Number(originalCenter[0]), Number(originalSize[0]), primitive.size[0], orientation);
|
|
305
|
+
node.center = center;
|
|
306
|
+
};
|
|
307
|
+
const armConfigs = [
|
|
308
|
+
{
|
|
309
|
+
primitiveId: 'arm_left_primitive',
|
|
310
|
+
armNode: leftArmNode,
|
|
311
|
+
forearmNode: leftForearmNode,
|
|
312
|
+
handNode: leftHandNode,
|
|
313
|
+
orientation: 1,
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
primitiveId: 'arm_right_primitive',
|
|
317
|
+
armNode: rightArmNode,
|
|
318
|
+
forearmNode: rightForearmNode,
|
|
319
|
+
handNode: rightHandNode,
|
|
320
|
+
orientation: -1,
|
|
321
|
+
},
|
|
322
|
+
];
|
|
323
|
+
armConfigs.forEach(config => {
|
|
324
|
+
const basePrimitive = cloneVoxelPrimitive(source, config.primitiveId);
|
|
325
|
+
const orientedPrimitive = config.orientation === -1 ? flipVoxelBox(basePrimitive) : basePrimitive;
|
|
326
|
+
const totalWidth = (0, common_1.roundSize)(orientedPrimitive.size[0]);
|
|
327
|
+
const armOriginalSize = [
|
|
328
|
+
Number(config.armNode.size?.[0] ?? 0),
|
|
329
|
+
Number(config.armNode.size?.[1] ?? 0),
|
|
330
|
+
Number(config.armNode.size?.[2] ?? 0),
|
|
331
|
+
];
|
|
332
|
+
const armOriginalCenter = [
|
|
333
|
+
Number(config.armNode.center?.[0] ?? 0),
|
|
334
|
+
Number(config.armNode.center?.[1] ?? 0),
|
|
335
|
+
Number(config.armNode.center?.[2] ?? 0),
|
|
336
|
+
];
|
|
337
|
+
const forearmOriginalSize = [
|
|
338
|
+
Number(config.forearmNode.size?.[0] ?? 0),
|
|
339
|
+
Number(config.forearmNode.size?.[1] ?? 0),
|
|
340
|
+
Number(config.forearmNode.size?.[2] ?? 0),
|
|
341
|
+
];
|
|
342
|
+
const forearmOriginalCenter = [
|
|
343
|
+
Number(config.forearmNode.center?.[0] ?? 0),
|
|
344
|
+
Number(config.forearmNode.center?.[1] ?? 0),
|
|
345
|
+
Number(config.forearmNode.center?.[2] ?? 0),
|
|
346
|
+
];
|
|
347
|
+
const handOriginalSize = [
|
|
348
|
+
Number(config.handNode.size?.[0] ?? 0),
|
|
349
|
+
Number(config.handNode.size?.[1] ?? 0),
|
|
350
|
+
Number(config.handNode.size?.[2] ?? 0),
|
|
351
|
+
];
|
|
352
|
+
const handOriginalCenter = [
|
|
353
|
+
Number(config.handNode.center?.[0] ?? 0),
|
|
354
|
+
Number(config.handNode.center?.[1] ?? 0),
|
|
355
|
+
Number(config.handNode.center?.[2] ?? 0),
|
|
356
|
+
];
|
|
357
|
+
const targetArmWidth = Math.min(Math.max((0, common_1.roundSize)(armOriginalSize[0]), 1), totalWidth - 2);
|
|
358
|
+
const remainderAfterArm = Math.max(totalWidth - targetArmWidth, 2);
|
|
359
|
+
const targetForearmWidth = Math.min(Math.max((0, common_1.roundSize)(forearmOriginalSize[0]), 1), remainderAfterArm - 1);
|
|
360
|
+
const targetHandWidth = Math.max(Math.min((0, common_1.roundSize)(handOriginalSize[0]), remainderAfterArm - targetForearmWidth), 1);
|
|
361
|
+
const armSplit = (0, slice_1.splitVoxelBoxClone)(orientedPrimitive, 'x', targetArmWidth);
|
|
362
|
+
const forearmSplit = (0, slice_1.splitVoxelBoxClone)(armSplit.second, 'x', targetForearmWidth);
|
|
363
|
+
const orientBack = (primitive) => {
|
|
364
|
+
return config.orientation === -1 ? flipVoxelBox(primitive) : primitive;
|
|
365
|
+
};
|
|
366
|
+
const armPrimitive = orientBack(armSplit.first);
|
|
367
|
+
const forearmPrimitive = orientBack(forearmSplit.first);
|
|
368
|
+
const handPrimitive = orientBack(forearmSplit.second);
|
|
369
|
+
armPrimitive.id = `${config.armNode.id}_voxel`;
|
|
370
|
+
forearmPrimitive.id = `${config.forearmNode.id}_voxel`;
|
|
371
|
+
handPrimitive.id = `${config.handNode.id}_voxel`;
|
|
372
|
+
config.armNode.mesh = armPrimitive.id;
|
|
373
|
+
config.forearmNode.mesh = forearmPrimitive.id;
|
|
374
|
+
config.handNode.mesh = handPrimitive.id;
|
|
375
|
+
applyArmDimensions(config.armNode, armPrimitive, armOriginalSize, armOriginalCenter, config.orientation);
|
|
376
|
+
applyArmDimensions(config.forearmNode, forearmPrimitive, forearmOriginalSize, forearmOriginalCenter, config.orientation);
|
|
377
|
+
applyArmDimensions(config.handNode, handPrimitive, handOriginalSize, handOriginalCenter, config.orientation);
|
|
378
|
+
newPrimitives.push(armPrimitive, forearmPrimitive, handPrimitive);
|
|
379
|
+
});
|
|
380
|
+
const paletteIds = (0, materials_1.collectPaletteIds)(newPrimitives);
|
|
381
|
+
const materials = (0, materials_1.cloneMaterialsByPalette)(source.materials, paletteIds);
|
|
382
|
+
const materialIds = new Set(materials.map(material => material.id));
|
|
383
|
+
source.materials?.forEach(material => {
|
|
384
|
+
if (materialIds.has(material.id)) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
materials.push(JSON.parse(JSON.stringify(material)));
|
|
388
|
+
materialIds.add(material.id);
|
|
389
|
+
});
|
|
390
|
+
templateClone.primitives = newPrimitives;
|
|
391
|
+
templateClone.materials = materials;
|
|
392
|
+
templateClone.patterns = source.patterns;
|
|
393
|
+
templateClone.textures = source.textures;
|
|
394
|
+
return templateClone;
|
|
395
|
+
}
|
|
396
|
+
//# sourceMappingURL=voxel-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voxel-builder.js","sourceRoot":"","sources":["../../../../src/humanoid/r15/voxel-builder.ts"],"names":[],"m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kB,EAClB,MAAM,CAAC,WAAW,CACnB,CAAC;QAEF,aAAa,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,IAAA,6BAAiB,EAAC,aAAa,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,IAAA,mCAAuB,EAAC,MAAM,CAAC,SAAuB,EAAE,UAAU,CAAC,CAAC;IACtF,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IACnE,MAAM,CAAC,SAAoC,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC/D,IAAI,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;YACjC,OAAO;QACT,CAAC;QACD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAa,CAAC,CAAC;QACjE,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,aAAa,CAAC,UAAU,GAAG,aAAa,CAAC;IACzC,aAAa,CAAC,SAAS,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAqB,CAAC;IACtD,aAAa,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAqB,CAAC;IAEtD,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Entity } from '../../types';
|
|
2
|
+
import type { HumanoidSourceScan } from './scanner';
|
|
3
|
+
export interface BuildHumanoidR6Options {
|
|
4
|
+
template: Entity;
|
|
5
|
+
source: HumanoidSourceScan;
|
|
6
|
+
geometryId: string;
|
|
7
|
+
outputId: string;
|
|
8
|
+
textureWidth: number;
|
|
9
|
+
textureHeight: number;
|
|
10
|
+
texturePixels: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildHumanoidR6Entity(options: BuildHumanoidR6Options): Entity;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildHumanoidR6Entity = buildHumanoidR6Entity;
|
|
4
|
+
const materials_1 = require("../../materials");
|
|
5
|
+
const face_map_1 = require("./textures/face-map");
|
|
6
|
+
const artifacts_1 = require("./textures/artifacts");
|
|
7
|
+
function buildHumanoidR6Entity(options) {
|
|
8
|
+
const { template, source, outputId } = options;
|
|
9
|
+
const entity = JSON.parse(JSON.stringify(template));
|
|
10
|
+
entity.id = outputId;
|
|
11
|
+
entity.geometry.id = `${outputId}_geometry`;
|
|
12
|
+
const textureScaleX = source.textureScaleX ?? 1;
|
|
13
|
+
const textureScaleY = source.textureScaleY ?? 1;
|
|
14
|
+
const nodesById = new Map();
|
|
15
|
+
(function collect(node) {
|
|
16
|
+
nodesById.set(node.id, node);
|
|
17
|
+
node.children.forEach((child) => collect(child));
|
|
18
|
+
})(entity.geometry.root);
|
|
19
|
+
const primitives = [];
|
|
20
|
+
const materials = [];
|
|
21
|
+
const patterns = [];
|
|
22
|
+
const textures = [];
|
|
23
|
+
const materialEnsurer = (0, materials_1.createMaterialEnsurer)(materials, { prefix: 'humanoid_r6_mat' });
|
|
24
|
+
const ensureMaterial = (color) => materialEnsurer.ensure(color);
|
|
25
|
+
const registerPrimitive = (nodeId, primitive) => {
|
|
26
|
+
const node = nodesById.get(nodeId);
|
|
27
|
+
if (!node) {
|
|
28
|
+
throw new Error(`Template node "${nodeId}" is missing`);
|
|
29
|
+
}
|
|
30
|
+
node.mesh = primitive.id;
|
|
31
|
+
primitives.push(primitive);
|
|
32
|
+
};
|
|
33
|
+
const torsoNode = nodesById.get('torso');
|
|
34
|
+
const torsoSource = source.parts.get('torso');
|
|
35
|
+
const torsoWidth = Number(torsoSource?.base.cube.size?.[0] ?? torsoNode?.size?.[0] ?? 8);
|
|
36
|
+
const partToNode = {
|
|
37
|
+
torso: 'torso',
|
|
38
|
+
head: 'head',
|
|
39
|
+
arm_left: 'arm_left',
|
|
40
|
+
arm_right: 'arm_right',
|
|
41
|
+
leg_left: 'leg_left',
|
|
42
|
+
leg_right: 'leg_right',
|
|
43
|
+
};
|
|
44
|
+
Object.keys(partToNode).forEach(partKey => {
|
|
45
|
+
const part = source.parts.get(partKey);
|
|
46
|
+
if (!part) {
|
|
47
|
+
throw new Error(`Conversion source missing part "${partKey}"`);
|
|
48
|
+
}
|
|
49
|
+
const nodeId = partToNode[partKey];
|
|
50
|
+
const node = nodesById.get(nodeId);
|
|
51
|
+
if (!node) {
|
|
52
|
+
throw new Error(`Template missing node "${nodeId}"`);
|
|
53
|
+
}
|
|
54
|
+
const sourceSizeRaw = part.base.cube.size ?? [0, 0, 0];
|
|
55
|
+
const sourceSize = sourceSizeRaw.map(value => Number(value));
|
|
56
|
+
const hasSourceSize = sourceSize.every(value => Number.isFinite(value) && value > 0);
|
|
57
|
+
const basePosition = [
|
|
58
|
+
Number(node.position?.[0] ?? 0),
|
|
59
|
+
Number(node.position?.[1] ?? 0),
|
|
60
|
+
Number(node.position?.[2] ?? 0),
|
|
61
|
+
];
|
|
62
|
+
let targetSize;
|
|
63
|
+
if (partKey === 'arm_left' || partKey === 'arm_right') {
|
|
64
|
+
const sign = partKey === 'arm_right' ? -1 : 1;
|
|
65
|
+
const [width, height, depth] = sourceSize;
|
|
66
|
+
const length = height;
|
|
67
|
+
const thicknessY = width;
|
|
68
|
+
const thicknessZ = depth;
|
|
69
|
+
targetSize = [length, thicknessY, thicknessZ];
|
|
70
|
+
node.size = [...targetSize];
|
|
71
|
+
node.center = [sign * (length / 2 - thicknessY / 2), 0, 0];
|
|
72
|
+
node.position = [
|
|
73
|
+
sign * (torsoWidth / 2 + thicknessY / 2),
|
|
74
|
+
basePosition[1],
|
|
75
|
+
basePosition[2],
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
else if (partKey === 'leg_left' || partKey === 'leg_right') {
|
|
79
|
+
const [width, height, depth] = sourceSize;
|
|
80
|
+
targetSize = [width, height, depth];
|
|
81
|
+
node.size = [...targetSize];
|
|
82
|
+
node.center = [0, -height / 2, 0];
|
|
83
|
+
const pivotX = Number(part.base.bone.pivot?.[0]);
|
|
84
|
+
const targetX = Number.isFinite(pivotX) ? pivotX : basePosition[0];
|
|
85
|
+
node.position = [targetX, basePosition[1], basePosition[2]];
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
const templateSize = (node.size ?? sourceSize).map(value => Number(value));
|
|
89
|
+
targetSize = hasSourceSize ? sourceSize : templateSize;
|
|
90
|
+
node.size = [...targetSize];
|
|
91
|
+
if (Array.isArray(node.center)) {
|
|
92
|
+
node.center = node.center.map(value => Number(value));
|
|
93
|
+
}
|
|
94
|
+
node.position = [...basePosition];
|
|
95
|
+
}
|
|
96
|
+
const faceTransforms = (face_map_1.PART_FACE_TRANSFORMS[partKey] ?? face_map_1.PART_FACE_TRANSFORMS.torso);
|
|
97
|
+
const primitive = {
|
|
98
|
+
id: `${nodeId}_primitive`,
|
|
99
|
+
kind: 'textured_box',
|
|
100
|
+
size: [...targetSize],
|
|
101
|
+
};
|
|
102
|
+
let primitiveNeedsCutout = false;
|
|
103
|
+
['up', 'down', 'north', 'south', 'east', 'west'].forEach(face => {
|
|
104
|
+
const transform = faceTransforms[face] ?? face_map_1.PART_FACE_TRANSFORMS.torso[face];
|
|
105
|
+
const expectedDimensions = (0, face_map_1.getFaceDimensions)(targetSize, face);
|
|
106
|
+
const scaledExpected = [
|
|
107
|
+
Math.max(1, Math.round(expectedDimensions[0] * textureScaleX)),
|
|
108
|
+
Math.max(1, Math.round(expectedDimensions[1] * textureScaleY)),
|
|
109
|
+
];
|
|
110
|
+
const baseArtifacts = (0, artifacts_1.createFaceArtifacts)({
|
|
111
|
+
baseId: `${nodeId}_${face}`,
|
|
112
|
+
face,
|
|
113
|
+
source: part.base,
|
|
114
|
+
transform,
|
|
115
|
+
expectedSize: scaledExpected,
|
|
116
|
+
textureWidth: source.textureWidth,
|
|
117
|
+
textureHeight: source.textureHeight,
|
|
118
|
+
texturePixels: source.texturePixels,
|
|
119
|
+
ensureMaterial,
|
|
120
|
+
});
|
|
121
|
+
if (!baseArtifacts.pattern || !baseArtifacts.texture) {
|
|
122
|
+
throw new Error(`Base layer for "${nodeId}" face "${face}" produced no visible pixels`);
|
|
123
|
+
}
|
|
124
|
+
patterns.push(baseArtifacts.pattern);
|
|
125
|
+
textures.push(baseArtifacts.texture);
|
|
126
|
+
if (baseArtifacts.hasTransparency) {
|
|
127
|
+
primitiveNeedsCutout = true;
|
|
128
|
+
}
|
|
129
|
+
switch (face) {
|
|
130
|
+
case 'up':
|
|
131
|
+
primitive.top = baseArtifacts.texture.id;
|
|
132
|
+
break;
|
|
133
|
+
case 'down':
|
|
134
|
+
primitive.bottom = baseArtifacts.texture.id;
|
|
135
|
+
break;
|
|
136
|
+
case 'north':
|
|
137
|
+
primitive.north = baseArtifacts.texture.id;
|
|
138
|
+
break;
|
|
139
|
+
case 'south':
|
|
140
|
+
primitive.south = baseArtifacts.texture.id;
|
|
141
|
+
break;
|
|
142
|
+
case 'east':
|
|
143
|
+
primitive.east = baseArtifacts.texture.id;
|
|
144
|
+
break;
|
|
145
|
+
case 'west':
|
|
146
|
+
primitive.west = baseArtifacts.texture.id;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
if (part.overlay) {
|
|
150
|
+
const overlayArtifacts = (0, artifacts_1.createFaceArtifacts)({
|
|
151
|
+
baseId: `${nodeId}_${face}`,
|
|
152
|
+
face,
|
|
153
|
+
source: part.overlay,
|
|
154
|
+
transform,
|
|
155
|
+
expectedSize: scaledExpected,
|
|
156
|
+
textureWidth: source.textureWidth,
|
|
157
|
+
textureHeight: source.textureHeight,
|
|
158
|
+
texturePixels: source.texturePixels,
|
|
159
|
+
ensureMaterial,
|
|
160
|
+
variant: 'overlay',
|
|
161
|
+
});
|
|
162
|
+
if (overlayArtifacts.pattern && overlayArtifacts.texture && overlayArtifacts.hasVisiblePixels) {
|
|
163
|
+
patterns.push(overlayArtifacts.pattern);
|
|
164
|
+
textures.push(overlayArtifacts.texture);
|
|
165
|
+
switch (face) {
|
|
166
|
+
case 'up':
|
|
167
|
+
primitive.topOverlay = overlayArtifacts.texture.id;
|
|
168
|
+
break;
|
|
169
|
+
case 'down':
|
|
170
|
+
primitive.bottomOverlay = overlayArtifacts.texture.id;
|
|
171
|
+
break;
|
|
172
|
+
case 'north':
|
|
173
|
+
primitive.northOverlay = overlayArtifacts.texture.id;
|
|
174
|
+
break;
|
|
175
|
+
case 'south':
|
|
176
|
+
primitive.southOverlay = overlayArtifacts.texture.id;
|
|
177
|
+
break;
|
|
178
|
+
case 'east':
|
|
179
|
+
primitive.eastOverlay = overlayArtifacts.texture.id;
|
|
180
|
+
break;
|
|
181
|
+
case 'west':
|
|
182
|
+
primitive.westOverlay = overlayArtifacts.texture.id;
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
if (primitiveNeedsCutout) {
|
|
189
|
+
primitive.renderMode = 'cutout';
|
|
190
|
+
}
|
|
191
|
+
registerPrimitive(nodeId, primitive);
|
|
192
|
+
});
|
|
193
|
+
entity.primitives = primitives;
|
|
194
|
+
entity.materials = materials;
|
|
195
|
+
entity.patterns = patterns;
|
|
196
|
+
entity.textures = textures;
|
|
197
|
+
return entity;
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../src/humanoid/r6/builder.ts"],"names":[],"mappings":";;AAqBA,sDAsNC;AA1OD,+CAAwD;AAExD,kDAK6B;AAC7B,oDAA2D;A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