@fps-games/editor 0.1.4-beta.4 → 0.1.5-beta.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/dist/build-info.json +45 -0
- package/dist/local-editor-harness.d.ts +25 -5
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +518 -90
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +12 -0
- package/dist/local-editor-performance-stats.d.ts.map +1 -0
- package/dist/local-editor-performance-stats.js +46 -0
- package/dist/local-editor-performance-stats.js.map +1 -0
- package/dist/playable-babylon-facade.d.ts +4 -4
- package/dist/playable-babylon-facade.d.ts.map +1 -1
- package/dist/playable-babylon-facade.js +2 -2
- package/dist/playable-babylon-facade.js.map +1 -1
- package/dist/playable-babylon-rendering.d.ts +66 -9
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +567 -13
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +12 -9
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk-vite.d.ts +2 -0
- package/dist/playable-sdk-vite.d.ts.map +1 -0
- package/dist/playable-sdk-vite.js +2 -0
- package/dist/playable-sdk-vite.js.map +1 -0
- package/dist/playable-sdk.d.ts +6 -4
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +3 -2
- package/dist/playable-sdk.js.map +1 -1
- package/dist/static-shadow-cpu-worker.d.ts +7 -0
- package/dist/static-shadow-cpu-worker.d.ts.map +1 -0
- package/dist/static-shadow-cpu-worker.js +221 -0
- package/dist/static-shadow-cpu-worker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-shaders.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-shaders.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-shaders.js +46 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-shaders.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js +398 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js +584 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts +61 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js +382 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts +47 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js +285 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts +88 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js +813 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts +27 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js +220 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts +38 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js +173 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts +286 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js +82 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts +34 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js +272 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.d.ts +49 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +141 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +137 -6
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts +19 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js +66 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +17 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +256 -8
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +19 -2
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts +8 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +10 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +494 -43
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +72 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +595 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +3 -3
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +14 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +34 -10
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +2 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +11 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts +7 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +10 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +5 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +34 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +272 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +0 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts +12 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +161 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts +4 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js +57 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts +7 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +1003 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts +12 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js +521 -6
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +217 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts +9 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js +12 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +75 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +262 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +21 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts +151 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js +445 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-core.d.ts +36 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-core.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-core.js +65 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-core.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-node.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-node.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-node.js +87 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/build-info-node.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +226 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +64 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +7 -3
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +12 -8
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { Camera } from '@babylonjs/core/Cameras/camera.js';
|
|
2
|
+
import { FreeCamera } from '@babylonjs/core/Cameras/freeCamera.js';
|
|
3
|
+
import { Color3, Color4 } from '@babylonjs/core/Maths/math.color.js';
|
|
4
|
+
import { Matrix, Vector3 } from '@babylonjs/core/Maths/math.vector.js';
|
|
5
|
+
import { Material } from '@babylonjs/core/Materials/material.js';
|
|
6
|
+
import { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial.js';
|
|
7
|
+
import { RenderTargetTexture } from '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
|
|
8
|
+
import { Texture } from '@babylonjs/core/Materials/Textures/texture.js';
|
|
9
|
+
import { VertexBuffer } from '@babylonjs/core/Buffers/buffer.js';
|
|
10
|
+
import { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh.js';
|
|
11
|
+
import { InstancedMesh } from '@babylonjs/core/Meshes/instancedMesh.js';
|
|
12
|
+
import { Mesh } from '@babylonjs/core/Meshes/mesh.js';
|
|
13
|
+
import { VertexData } from '@babylonjs/core/Meshes/mesh.vertexData.js';
|
|
14
|
+
import { markStaticProjectedShadowInternal, STATIC_PROJECTED_SHADOW_ALPHA_INDEX, } from './static-projected-shadow-rendering.js';
|
|
15
|
+
export const STATIC_PROJECTED_BAKE_LAYER_MASK = 0x10000000;
|
|
16
|
+
export function collectStaticProjectedShadowNodeMeshes(root) {
|
|
17
|
+
const meshes = new Set();
|
|
18
|
+
meshes.add(root);
|
|
19
|
+
for (const child of root.getChildMeshes(false))
|
|
20
|
+
meshes.add(child);
|
|
21
|
+
return [...meshes];
|
|
22
|
+
}
|
|
23
|
+
export function buildStaticProjectedShadowBounds(meshes, options) {
|
|
24
|
+
const lightDir = options.lightDir.clone().normalize();
|
|
25
|
+
if (Math.abs(lightDir.y) < 1e-5)
|
|
26
|
+
return null;
|
|
27
|
+
const points = [];
|
|
28
|
+
for (const mesh of meshes) {
|
|
29
|
+
const geometrySource = mesh instanceof InstancedMesh ? mesh.sourceMesh : mesh;
|
|
30
|
+
if (!(geometrySource instanceof Mesh))
|
|
31
|
+
continue;
|
|
32
|
+
const positions = geometrySource.getVerticesData(VertexBuffer.PositionKind);
|
|
33
|
+
if (!positions || positions.length < 3)
|
|
34
|
+
continue;
|
|
35
|
+
mesh.computeWorldMatrix(true);
|
|
36
|
+
const matrix = mesh.getWorldMatrix();
|
|
37
|
+
for (let index = 0; index < positions.length; index += 3) {
|
|
38
|
+
const point = Vector3.TransformCoordinates(new Vector3(Number(positions[index]), Number(positions[index + 1]), Number(positions[index + 2])), matrix);
|
|
39
|
+
const t = (options.planeY - point.y) / lightDir.y;
|
|
40
|
+
if (t < -1e-4)
|
|
41
|
+
continue;
|
|
42
|
+
points.push(point.add(lightDir.scale(Math.max(0, t))));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return buildStaticProjectedShadowBoundsFromPoints(points, options);
|
|
46
|
+
}
|
|
47
|
+
export function buildStaticProjectedShadowBoundsFromPoints(points, options) {
|
|
48
|
+
if (points.length === 0)
|
|
49
|
+
return null;
|
|
50
|
+
let minX = Infinity;
|
|
51
|
+
let maxX = -Infinity;
|
|
52
|
+
let minZ = Infinity;
|
|
53
|
+
let maxZ = -Infinity;
|
|
54
|
+
for (const point of points) {
|
|
55
|
+
minX = Math.min(minX, point.x);
|
|
56
|
+
maxX = Math.max(maxX, point.x);
|
|
57
|
+
minZ = Math.min(minZ, point.z);
|
|
58
|
+
maxZ = Math.max(maxZ, point.z);
|
|
59
|
+
}
|
|
60
|
+
if (![minX, maxX, minZ, maxZ].every(Number.isFinite))
|
|
61
|
+
return null;
|
|
62
|
+
const paddingX = Math.max(options.padding, (maxX - minX) * options.padding);
|
|
63
|
+
const paddingZ = Math.max(options.padding, (maxZ - minZ) * options.padding);
|
|
64
|
+
minX -= paddingX;
|
|
65
|
+
maxX += paddingX;
|
|
66
|
+
minZ -= paddingZ;
|
|
67
|
+
maxZ += paddingZ;
|
|
68
|
+
const centerX = (minX + maxX) * 0.5;
|
|
69
|
+
const centerZ = (minZ + maxZ) * 0.5;
|
|
70
|
+
let width = maxX - minX;
|
|
71
|
+
let depth = maxZ - minZ;
|
|
72
|
+
const maxSize = options.maxSize;
|
|
73
|
+
if (maxSize && width > maxSize) {
|
|
74
|
+
width = maxSize;
|
|
75
|
+
minX = centerX - width * 0.5;
|
|
76
|
+
maxX = centerX + width * 0.5;
|
|
77
|
+
}
|
|
78
|
+
if (maxSize && depth > maxSize) {
|
|
79
|
+
depth = maxSize;
|
|
80
|
+
minZ = centerZ - depth * 0.5;
|
|
81
|
+
maxZ = centerZ + depth * 0.5;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
center: new Vector3((minX + maxX) * 0.5, options.planeY, (minZ + maxZ) * 0.5),
|
|
85
|
+
width,
|
|
86
|
+
depth,
|
|
87
|
+
minX,
|
|
88
|
+
maxX,
|
|
89
|
+
minZ,
|
|
90
|
+
maxZ,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export function createStaticProjectedShadowMaskTexture(meshes, options) {
|
|
94
|
+
const resolution = resolveBakeTextureSize(options.resolution);
|
|
95
|
+
const bakeMeshes = createProjectedBakeMeshes(meshes, {
|
|
96
|
+
scene: options.scene,
|
|
97
|
+
name: options.name,
|
|
98
|
+
bounds: options.bounds,
|
|
99
|
+
lightDir: options.lightDir,
|
|
100
|
+
planeY: options.planeY,
|
|
101
|
+
});
|
|
102
|
+
if (bakeMeshes.length === 0)
|
|
103
|
+
return Promise.resolve(null);
|
|
104
|
+
const bakeCamera = createBakeCamera(`${options.name}_staticProjectedBakeCamera`, options.scene, options.bounds);
|
|
105
|
+
const bakeMaterial = createBakeMaterial(`${options.name}_staticProjectedBakeMaterial`, options.scene);
|
|
106
|
+
for (const mesh of bakeMeshes)
|
|
107
|
+
mesh.material = bakeMaterial;
|
|
108
|
+
const texture = new RenderTargetTexture(`${options.name}_staticProjectedShadowMask`, resolution, options.scene, false, false);
|
|
109
|
+
texture.clearColor = new Color4(0, 0, 0, 0);
|
|
110
|
+
texture.hasAlpha = true;
|
|
111
|
+
texture.wrapU = Texture.CLAMP_ADDRESSMODE;
|
|
112
|
+
texture.wrapV = Texture.CLAMP_ADDRESSMODE;
|
|
113
|
+
texture.updateSamplingMode(Texture.NEAREST_SAMPLINGMODE);
|
|
114
|
+
texture.renderList = bakeMeshes;
|
|
115
|
+
texture.activeCamera = bakeCamera;
|
|
116
|
+
texture.cameraForLOD = bakeCamera;
|
|
117
|
+
texture.disableImageProcessing = true;
|
|
118
|
+
texture.renderParticles = false;
|
|
119
|
+
texture.renderSprites = false;
|
|
120
|
+
texture.enableOutlineRendering = false;
|
|
121
|
+
texture.refreshRate = RenderTargetTexture.REFRESHRATE_RENDER_ONCE;
|
|
122
|
+
texture.setMaterialForRendering(bakeMeshes, bakeMaterial);
|
|
123
|
+
const disposeTransient = () => {
|
|
124
|
+
texture.renderList = [];
|
|
125
|
+
texture.activeCamera = null;
|
|
126
|
+
texture.cameraForLOD = null;
|
|
127
|
+
for (const mesh of bakeMeshes)
|
|
128
|
+
mesh.dispose();
|
|
129
|
+
bakeCamera.dispose();
|
|
130
|
+
bakeMaterial.dispose();
|
|
131
|
+
};
|
|
132
|
+
try {
|
|
133
|
+
return renderStaticProjectedShadowMaskTexture(texture, bakeMeshes, bakeMaterial)
|
|
134
|
+
.then(() => {
|
|
135
|
+
disposeTransient();
|
|
136
|
+
return {
|
|
137
|
+
texture,
|
|
138
|
+
dispose() {
|
|
139
|
+
const targetIndex = options.scene.customRenderTargets.indexOf(texture);
|
|
140
|
+
if (targetIndex >= 0)
|
|
141
|
+
options.scene.customRenderTargets.splice(targetIndex, 1);
|
|
142
|
+
texture.dispose();
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
})
|
|
146
|
+
.catch(() => {
|
|
147
|
+
disposeTransient();
|
|
148
|
+
const targetIndex = options.scene.customRenderTargets.indexOf(texture);
|
|
149
|
+
if (targetIndex >= 0)
|
|
150
|
+
options.scene.customRenderTargets.splice(targetIndex, 1);
|
|
151
|
+
texture.dispose();
|
|
152
|
+
return null;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
disposeTransient();
|
|
157
|
+
const targetIndex = options.scene.customRenderTargets.indexOf(texture);
|
|
158
|
+
if (targetIndex >= 0)
|
|
159
|
+
options.scene.customRenderTargets.splice(targetIndex, 1);
|
|
160
|
+
texture.dispose();
|
|
161
|
+
return Promise.resolve(null);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async function renderStaticProjectedShadowMaskTexture(texture, bakeMeshes, bakeMaterial) {
|
|
165
|
+
await Promise.all(bakeMeshes.map(mesh => bakeMaterial.forceCompilationAsync(mesh)));
|
|
166
|
+
if (!await waitForRenderTargetReady(texture)) {
|
|
167
|
+
throw new Error('Static projected shadow bake target is not ready.');
|
|
168
|
+
}
|
|
169
|
+
try {
|
|
170
|
+
texture.render(false);
|
|
171
|
+
}
|
|
172
|
+
catch {
|
|
173
|
+
throw new Error('Static projected shadow bake render failed.');
|
|
174
|
+
}
|
|
175
|
+
await waitNextFrame();
|
|
176
|
+
}
|
|
177
|
+
async function waitForRenderTargetReady(texture) {
|
|
178
|
+
const maxAttempts = 30;
|
|
179
|
+
for (let attempt = 0; attempt < maxAttempts; attempt += 1) {
|
|
180
|
+
if (texture.isReadyForRendering())
|
|
181
|
+
return true;
|
|
182
|
+
await waitNextFrame();
|
|
183
|
+
}
|
|
184
|
+
return texture.isReadyForRendering();
|
|
185
|
+
}
|
|
186
|
+
function createProjectedBakeMeshes(meshes, options) {
|
|
187
|
+
const lightDir = options.lightDir.clone().normalize();
|
|
188
|
+
if (Math.abs(lightDir.y) < 1e-5)
|
|
189
|
+
return [];
|
|
190
|
+
const bakeMeshes = [];
|
|
191
|
+
meshes.forEach((mesh, meshIndex) => {
|
|
192
|
+
const geometrySource = mesh instanceof InstancedMesh ? mesh.sourceMesh : mesh;
|
|
193
|
+
if (!(geometrySource instanceof Mesh))
|
|
194
|
+
return;
|
|
195
|
+
const positions = geometrySource.getVerticesData(VertexBuffer.PositionKind);
|
|
196
|
+
const indices = geometrySource.getIndices();
|
|
197
|
+
if (!positions || positions.length < 3 || !indices || indices.length < 3)
|
|
198
|
+
return;
|
|
199
|
+
mesh.computeWorldMatrix(true);
|
|
200
|
+
const matrix = mesh.getWorldMatrix();
|
|
201
|
+
const projectedPositions = projectStaticShadowMeshPositions(positions, matrix, lightDir, {
|
|
202
|
+
bounds: options.bounds,
|
|
203
|
+
planeY: options.planeY,
|
|
204
|
+
mirrorXForBakeCamera: true,
|
|
205
|
+
});
|
|
206
|
+
const bakeMesh = new Mesh(`${options.name}_staticProjectedBakeProjection_${meshIndex}`, options.scene);
|
|
207
|
+
const vertexData = new VertexData();
|
|
208
|
+
vertexData.positions = projectedPositions;
|
|
209
|
+
vertexData.indices = [...indices];
|
|
210
|
+
vertexData.normals = createStaticShadowBakeNormals(projectedPositions.length / 3);
|
|
211
|
+
vertexData.applyToMesh(bakeMesh);
|
|
212
|
+
bakeMesh.isPickable = false;
|
|
213
|
+
bakeMesh.receiveShadows = false;
|
|
214
|
+
bakeMesh.alphaIndex = STATIC_PROJECTED_SHADOW_ALPHA_INDEX;
|
|
215
|
+
bakeMesh.layerMask = STATIC_PROJECTED_BAKE_LAYER_MASK;
|
|
216
|
+
markStaticProjectedShadowInternal(bakeMesh);
|
|
217
|
+
bakeMeshes.push(bakeMesh);
|
|
218
|
+
});
|
|
219
|
+
return bakeMeshes;
|
|
220
|
+
}
|
|
221
|
+
function createStaticShadowBakeNormals(vertexCount) {
|
|
222
|
+
const normals = [];
|
|
223
|
+
for (let index = 0; index < vertexCount; index += 1) {
|
|
224
|
+
normals.push(0, 1, 0);
|
|
225
|
+
}
|
|
226
|
+
return normals;
|
|
227
|
+
}
|
|
228
|
+
export function projectStaticShadowMeshPositions(positions, matrix, lightDir, options) {
|
|
229
|
+
const projectedPositions = [];
|
|
230
|
+
for (let index = 0; index < positions.length; index += 3) {
|
|
231
|
+
const point = Vector3.TransformCoordinates(new Vector3(Number(positions[index]), Number(positions[index + 1]), Number(positions[index + 2])), matrix);
|
|
232
|
+
const t = (options.planeY - point.y) / lightDir.y;
|
|
233
|
+
const projected = point.add(lightDir.scale(Math.max(0, t)));
|
|
234
|
+
// The top-down RTT camera writes world X mirrored into texture U, while runtime quads sample U as minX -> maxX.
|
|
235
|
+
const x = options.mirrorXForBakeCamera
|
|
236
|
+
? options.bounds.center.x - (projected.x - options.bounds.center.x)
|
|
237
|
+
: projected.x;
|
|
238
|
+
projectedPositions.push(x, options.planeY, projected.z);
|
|
239
|
+
}
|
|
240
|
+
return projectedPositions;
|
|
241
|
+
}
|
|
242
|
+
function createBakeCamera(name, scene, bounds) {
|
|
243
|
+
const cameraHeight = Math.max(bounds.width, bounds.depth, 1) + 10;
|
|
244
|
+
const camera = new FreeCamera(name, new Vector3(bounds.center.x, bounds.center.y + cameraHeight, bounds.center.z), scene);
|
|
245
|
+
camera.mode = Camera.ORTHOGRAPHIC_CAMERA;
|
|
246
|
+
camera.orthoLeft = -Math.max(bounds.width, 1e-4) * 0.5;
|
|
247
|
+
camera.orthoRight = Math.max(bounds.width, 1e-4) * 0.5;
|
|
248
|
+
camera.orthoBottom = -Math.max(bounds.depth, 1e-4) * 0.5;
|
|
249
|
+
camera.orthoTop = Math.max(bounds.depth, 1e-4) * 0.5;
|
|
250
|
+
camera.minZ = 0.01;
|
|
251
|
+
camera.maxZ = cameraHeight + 1;
|
|
252
|
+
camera.layerMask = STATIC_PROJECTED_BAKE_LAYER_MASK;
|
|
253
|
+
camera.upVector = Vector3.Forward();
|
|
254
|
+
camera.setTarget(bounds.center);
|
|
255
|
+
return camera;
|
|
256
|
+
}
|
|
257
|
+
function createBakeMaterial(name, scene) {
|
|
258
|
+
const material = new StandardMaterial(name, scene);
|
|
259
|
+
material.diffuseColor = Color3.White();
|
|
260
|
+
material.emissiveColor = Color3.White();
|
|
261
|
+
material.alpha = 1;
|
|
262
|
+
material.backFaceCulling = false;
|
|
263
|
+
material.disableLighting = true;
|
|
264
|
+
material.disableDepthWrite = true;
|
|
265
|
+
material.transparencyMode = Material.MATERIAL_OPAQUE;
|
|
266
|
+
return material;
|
|
267
|
+
}
|
|
268
|
+
function waitNextFrame() {
|
|
269
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
270
|
+
return new Promise(resolve => requestAnimationFrame(() => resolve()));
|
|
271
|
+
}
|
|
272
|
+
return new Promise(resolve => setTimeout(resolve, 0));
|
|
273
|
+
}
|
|
274
|
+
function clamp(value, min, max) {
|
|
275
|
+
return Math.min(max, Math.max(min, value));
|
|
276
|
+
}
|
|
277
|
+
function resolveBakeTextureSize(value) {
|
|
278
|
+
if (typeof value === 'number')
|
|
279
|
+
return clamp(Math.round(value), 16, 4096);
|
|
280
|
+
return {
|
|
281
|
+
width: clamp(Math.round(value.width), 1, 4096),
|
|
282
|
+
height: clamp(Math.round(value.height), 1, 4096),
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
//# sourceMappingURL=static-projected-shadow-bake.js.map
|
package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-projected-shadow-bake.js","sourceRoot":"","sources":["../../src/shadows/static-projected-shadow-bake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MA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AAC,CAAC;AACxD,CAAC;AAED,SAAS,KAAK,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IACpD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,sBAAsB,CAAC,KAAiD;IAC/E,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACzE,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;QAC9C,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;KACjD,CAAC;AACJ,CAAC"}
|
package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { DirectionalLight } from '@babylonjs/core/Lights/directionalLight';
|
|
2
|
+
import { RenderTargetTexture } from '@babylonjs/core/Materials/Textures/renderTargetTexture';
|
|
3
|
+
import { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh';
|
|
4
|
+
import type { Scene } from '@babylonjs/core/scene';
|
|
5
|
+
import { type StaticProjectedShadowBakeBounds } from './static-projected-shadow-bake';
|
|
6
|
+
import { type StaticProjectedShadowArtifact, type StaticProjectedShadowArtifactHashInput, type StaticProjectedShadowOptions } from './types';
|
|
7
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
8
|
+
export interface StaticProjectedShadowBakerMaskPixelsInput {
|
|
9
|
+
texture: RenderTargetTexture;
|
|
10
|
+
chunkId: string;
|
|
11
|
+
bounds: StaticProjectedShadowBakeBounds;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
}
|
|
15
|
+
export interface StaticProjectedShadowBakerMaskPixels {
|
|
16
|
+
pixels: ArrayBufferView;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}
|
|
20
|
+
export type StaticProjectedShadowBakerMaskPixelReader = (input: StaticProjectedShadowBakerMaskPixelsInput) => MaybePromise<StaticProjectedShadowBakerMaskPixels | null | undefined>;
|
|
21
|
+
export interface StaticProjectedShadowBakerAtlasEncodeInput {
|
|
22
|
+
pageId: string;
|
|
23
|
+
pixels: Uint8ClampedArray;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
export type StaticProjectedShadowBakerAtlasEncoder = (input: StaticProjectedShadowBakerAtlasEncodeInput) => MaybePromise<string | null | undefined>;
|
|
28
|
+
export interface StaticProjectedShadowBakerSdfTileInput {
|
|
29
|
+
chunkId: string;
|
|
30
|
+
pixels: ArrayBufferView;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
sdfRadiusPx: number;
|
|
34
|
+
}
|
|
35
|
+
export interface StaticProjectedShadowBakerSdfTile {
|
|
36
|
+
sdfAlpha: Uint8ClampedArray;
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
hasCoverage: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type StaticProjectedShadowBakerSdfTileProcessor = (input: StaticProjectedShadowBakerSdfTileInput) => MaybePromise<StaticProjectedShadowBakerSdfTile | null | undefined>;
|
|
42
|
+
export type StaticProjectedShadowBakeProgressPhase = 'collect' | 'reuse' | 'chunk' | 'sdf' | 'pack' | 'encode' | 'complete';
|
|
43
|
+
export interface StaticProjectedShadowBakeProgress {
|
|
44
|
+
phase: StaticProjectedShadowBakeProgressPhase;
|
|
45
|
+
sourceRootCount: number;
|
|
46
|
+
sourceMeshCount: number;
|
|
47
|
+
completedChunkCount: number;
|
|
48
|
+
totalChunkCount: number;
|
|
49
|
+
encodedTextureCount: number;
|
|
50
|
+
currentChunkId?: string;
|
|
51
|
+
atlasPageCount?: number;
|
|
52
|
+
effectiveTexelsPerMeter?: number;
|
|
53
|
+
effectiveSpatialChunkSize?: number;
|
|
54
|
+
bakedChunkCount?: number;
|
|
55
|
+
reusedChunkCount?: number;
|
|
56
|
+
}
|
|
57
|
+
export type StaticProjectedShadowBakeProgressCallback = (progress: StaticProjectedShadowBakeProgress) => MaybePromise<void>;
|
|
58
|
+
export interface StaticProjectedShadowBakerOptions {
|
|
59
|
+
scene: Scene;
|
|
60
|
+
directionalLight?: DirectionalLight | null;
|
|
61
|
+
options?: Partial<StaticProjectedShadowOptions>;
|
|
62
|
+
roots?: readonly AbstractMesh[];
|
|
63
|
+
previousArtifact?: StaticProjectedShadowArtifact | null;
|
|
64
|
+
readMaskTexturePixels?: StaticProjectedShadowBakerMaskPixelReader;
|
|
65
|
+
processSdfTile?: StaticProjectedShadowBakerSdfTileProcessor;
|
|
66
|
+
encodeAtlasTexture?: StaticProjectedShadowBakerAtlasEncoder;
|
|
67
|
+
yieldToMainThread?: StaticProjectedShadowBakeProgressCallback;
|
|
68
|
+
onProgress?: StaticProjectedShadowBakeProgressCallback;
|
|
69
|
+
now?: () => string;
|
|
70
|
+
}
|
|
71
|
+
export interface StaticProjectedShadowBaker {
|
|
72
|
+
bake(input?: {
|
|
73
|
+
roots?: readonly AbstractMesh[];
|
|
74
|
+
previousArtifact?: StaticProjectedShadowArtifact | null;
|
|
75
|
+
}): Promise<StaticProjectedShadowArtifact>;
|
|
76
|
+
}
|
|
77
|
+
export interface StaticProjectedShadowBakeHashOptions {
|
|
78
|
+
scene: Scene;
|
|
79
|
+
directionalLight?: DirectionalLight | null;
|
|
80
|
+
options?: Partial<StaticProjectedShadowOptions>;
|
|
81
|
+
roots?: readonly AbstractMesh[];
|
|
82
|
+
}
|
|
83
|
+
export declare function createStaticProjectedShadowBaker(options: StaticProjectedShadowBakerOptions): StaticProjectedShadowBaker;
|
|
84
|
+
export declare function collectStaticProjectedShadowBakeRoots(scene: Scene): AbstractMesh[];
|
|
85
|
+
export declare function createStaticProjectedShadowBakeHashes(input: StaticProjectedShadowBakeHashOptions): Required<StaticProjectedShadowArtifactHashInput>;
|
|
86
|
+
export declare function createStaticProjectedShadowProfileHash(options?: Partial<StaticProjectedShadowOptions>): string;
|
|
87
|
+
export {};
|
|
88
|
+
//# sourceMappingURL=static-projected-shadow-baker.d.ts.map
|
package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-projected-shadow-baker.d.ts","sourceRoot":"","sources":["../../src/shadows/static-projected-shadow-baker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAIL,KAAK,+BAA+B,EACrC,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EAEL,KAAK,6BAA6B,EAGlC,KAAK,sCAAsC,EAC3C,KAAK,4BAA4B,EAClC,MAAM,SAAS,CAAC;AAEjB,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,yCAAyC;IACxD,OAAO,EAAE,mBAAmB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,+BAA+B,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oCAAoC;IACnD,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;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