@fps-games/editor 0.1.3-beta.4 → 0.1.4-beta.2
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/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/local-editor-agent-actions.d.ts +38 -0
- package/dist/local-editor-agent-actions.d.ts.map +1 -0
- package/dist/local-editor-agent-actions.js +134 -0
- package/dist/local-editor-agent-actions.js.map +1 -0
- package/dist/local-editor-agent-context.d.ts +29 -0
- package/dist/local-editor-agent-context.d.ts.map +1 -0
- package/dist/local-editor-agent-context.js +266 -0
- package/dist/local-editor-agent-context.js.map +1 -0
- package/dist/local-editor-harness.d.ts +28 -1
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +662 -123
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-viewport-render-coordinator.d.ts.map +1 -1
- package/dist/local-editor-viewport-render-coordinator.js +34 -14
- package/dist/local-editor-viewport-render-coordinator.js.map +1 -1
- package/dist/playable-babylon-facade.d.ts +15 -0
- package/dist/playable-babylon-facade.d.ts.map +1 -0
- package/dist/playable-babylon-facade.js +12 -0
- package/dist/playable-babylon-facade.js.map +1 -0
- package/dist/playable-babylon-outline-inspector.d.ts +32 -0
- package/dist/playable-babylon-outline-inspector.d.ts.map +1 -0
- package/dist/playable-babylon-outline-inspector.js +182 -0
- package/dist/playable-babylon-outline-inspector.js.map +1 -0
- package/dist/playable-babylon-outline-runtime.d.ts +19 -0
- package/dist/playable-babylon-outline-runtime.d.ts.map +1 -0
- package/dist/playable-babylon-outline-runtime.js +67 -0
- package/dist/playable-babylon-outline-runtime.js.map +1 -0
- package/dist/playable-babylon-rendering.d.ts +51 -0
- package/dist/playable-babylon-rendering.d.ts.map +1 -0
- package/dist/playable-babylon-rendering.js +178 -0
- package/dist/playable-babylon-rendering.js.map +1 -0
- package/dist/playable-local-editor-host.d.ts +511 -0
- package/dist/playable-local-editor-host.d.ts.map +1 -0
- package/dist/playable-local-editor-host.js +528 -0
- package/dist/playable-local-editor-host.js.map +1 -0
- package/dist/playable-sdk.d.ts +10 -0
- package/dist/playable-sdk.d.ts.map +1 -0
- package/dist/playable-sdk.js +6 -0
- package/dist/playable-sdk.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js +79 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/environment-texture-controller.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.js +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js +26 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/profile.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts +13 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js +6 -0
- package/node_modules/@fps-games/babylon-renderer/dist/environment/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -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 +7 -4
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.js +45 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/apply.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.d.ts +7 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/babylon-default/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.d.ts +3 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.d.ts +7 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.js +2 -0
- package/node_modules/@fps-games/babylon-renderer/dist/outlines/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +83 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.js +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/index.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.d.ts +5 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.js +155 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/profile.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts +77 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js +24 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/types.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.js +105 -0
- package/node_modules/@fps-games/babylon-renderer/dist/post-process/volume-stack.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js +14 -14
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +99 -28
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/edit-session.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +24 -24
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.js +396 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid-layer.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js +2 -567
- package/node_modules/@fps-games/editor-babylon/dist/infinite-grid.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/inspector-host.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/legacy-runtime.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/main-camera-preview.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts +3 -2
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js +401 -96
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/monitor.js +2 -2
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.js +7 -23
- package/node_modules/@fps-games/editor-babylon/dist/outline-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +10 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +258 -151
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-camera-preview.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +4 -4
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-input-controller.js +10 -10
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-input-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/tool-controller.js +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts +12 -2
- 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 +69 -17
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/types.d.ts.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 +9 -2
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js +8 -2
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.d.ts +20 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.js +88 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-clipboard.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts +12 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js +34 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-inspector-groups.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +2 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts +55 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js +144 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-dock-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js +45 -10
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.js +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-auto-scroll.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +312 -126
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts +43 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js +28 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-drag-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +4 -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 +48 -0
- 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-hierarchy-view.d.ts +3 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +182 -20
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.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 +24 -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 +2 -0
- 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 +373 -63
- 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-primitives.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js +17 -12
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts +2 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +9 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js +42 -19
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shortcuts.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.d.ts +19 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.js +40 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-auto-scroll.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts +59 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js +182 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.d.ts +16 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.js +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-preview.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.d.ts +11 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.js +18 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-structured-drag-session.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-tooltip.js +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +34 -6
- 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-workbench.d.ts +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js +88 -37
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-workbench.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +16 -2
- 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 +630 -140
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.d.ts +40 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.js +685 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-camera-debug-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.d.ts +73 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.js +370 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-debug-panel-shell.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.d.ts +15 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.js +350 -0
- package/node_modules/@fps-games/editor-browser/dist/runtime-lighting-debug-panel.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/package.json +3 -2
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +17 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +14 -0
- package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/index.js +14 -12
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +9 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +108 -0
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +5 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js +2 -0
- package/node_modules/@fps-games/editor-core/dist/scene-graph.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.d.ts +27 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.js +35 -0
- package/node_modules/@fps-games/editor-core/dist/transform-operation-policy.js.map +1 -0
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +23 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +43 -0
- package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.js +93 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/drop-cache.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.d.ts +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js +169 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts +46 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-bridge/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +64 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts +23 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +120 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.js +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +35 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js +22 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/result.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.js +42 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/transport.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js +36 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-registration/workflow.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/constants.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.js +66 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/drift.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.js +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring/source.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.js +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/client.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.d.ts +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-client/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/handler.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/response.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/routes.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts +54 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/authoring-server/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.js +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/payload.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts +43 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.js +89 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/readers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.d.ts +79 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.js +42 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.d.ts +74 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.js +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/fields.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.js +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.js +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.d.ts +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.js +46 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/pan.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.js +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-format.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.d.ts +38 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.js +98 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-state.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.js +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-storage.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.js +149 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/panel-text.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.js +214 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/rig.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.js +84 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/save-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.d.ts +32 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.js +85 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/snapshot.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.d.ts +39 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/camera-debug/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.js +88 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.d.ts +50 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/commands/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/core-contracts/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +112 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.js +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +201 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +81 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-property.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +47 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +545 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.js +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/format.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts +12 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.js +99 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/readonly.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.d.ts +58 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.js +557 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-sections.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.d.ts +30 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime-summary.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.js +56 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/runtime.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.js +33 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/safe-value.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.d.ts +61 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js +61 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.js +48 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/fields.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js +95 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.js +162 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/save-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.js +71 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/snapshot.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.js +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/storage.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.js +108 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/text.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.d.ts +72 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.js +70 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/math.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.js +86 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.d.ts +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-preview/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +39 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +371 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +58 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +125 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +87 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.js +82 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/loading-overlay.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js +140 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/project-asset-commands.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.js +16 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/timing.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +40 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts +13 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +299 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.js +251 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/duplicate.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.js +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts +28 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +188 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.js +222 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/paths.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.d.ts +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.js +97 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/preview.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.js +128 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js +259 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/reimport.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.d.ts +22 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.js +49 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts +433 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +224 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.js +76 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/json-field.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +242 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js +30 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts +62 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js +131 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/aliases.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts +41 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/package-resolution/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.js +45 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/draft.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +759 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts +11 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js +512 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.js +73 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/route.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +290 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js +136 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js +65 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +212 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.js +78 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/artifacts.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +73 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js +43 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js +49 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/driver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.js +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +81 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +37 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.js +60 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/validation.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +164 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.d.ts +34 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.d.ts +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.js +24 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/classification.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js +207 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js +47 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts +8 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts +91 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +579 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.d.ts +14 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.js +90 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/transform.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.js +15 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/http.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shared/json.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +268 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.d.ts +7 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.js +38 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/report.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts +87 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +20 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +113 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.js +5 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +45 -4
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +115 -2
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +13 -7
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const EDITOR_SCENE_DEFAULT_DIRECTIONAL_LIGHT_DIRECTION = { x: -0.3, y: -1, z: -0.2 };
|
|
2
|
+
export const EDITOR_SCENE_LIGHT_DIRECTION_HORIZONTAL_MIN_DEG = -180;
|
|
3
|
+
export const EDITOR_SCENE_LIGHT_DIRECTION_HORIZONTAL_MAX_DEG = 180;
|
|
4
|
+
export const EDITOR_SCENE_LIGHT_DIRECTION_ELEVATION_MIN_DEG = -90;
|
|
5
|
+
export const EDITOR_SCENE_LIGHT_DIRECTION_ELEVATION_MAX_DEG = 90;
|
|
6
|
+
export function normalizeEditorSceneLightDirectionVector(direction, fallback = EDITOR_SCENE_DEFAULT_DIRECTIONAL_LIGHT_DIRECTION) {
|
|
7
|
+
const candidate = direction && isVec3(direction) ? direction : fallback;
|
|
8
|
+
const length = Math.hypot(candidate.x, candidate.y, candidate.z);
|
|
9
|
+
if (!Number.isFinite(length) || length <= 0.000001) {
|
|
10
|
+
const fallbackLength = Math.hypot(fallback.x, fallback.y, fallback.z) || 1;
|
|
11
|
+
return {
|
|
12
|
+
x: fallback.x / fallbackLength,
|
|
13
|
+
y: fallback.y / fallbackLength,
|
|
14
|
+
z: fallback.z / fallbackLength,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
x: candidate.x / length,
|
|
19
|
+
y: candidate.y / length,
|
|
20
|
+
z: candidate.z / length,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function readEditorSceneDirectionalLightAngles(direction) {
|
|
24
|
+
const normalized = normalizeEditorSceneLightDirectionVector(direction);
|
|
25
|
+
return {
|
|
26
|
+
horizontalAngleDeg: Math.round(normalizeEditorSceneLightingAngleDegrees(radiansToDegrees(Math.atan2(normalized.z, normalized.x)))),
|
|
27
|
+
elevationAngleDeg: Math.round(radiansToDegrees(Math.asin(clampNumber(-normalized.y, -1, 1)))),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function createEditorSceneDirectionalLightDirectionFromAngles(horizontalAngleDeg, elevationAngleDeg) {
|
|
31
|
+
const horizontal = degreesToRadians(normalizeEditorSceneLightingAngleDegrees(horizontalAngleDeg));
|
|
32
|
+
const elevation = degreesToRadians(clampNumber(elevationAngleDeg, EDITOR_SCENE_LIGHT_DIRECTION_ELEVATION_MIN_DEG, EDITOR_SCENE_LIGHT_DIRECTION_ELEVATION_MAX_DEG));
|
|
33
|
+
const horizontalLength = Math.cos(elevation);
|
|
34
|
+
return {
|
|
35
|
+
x: roundVectorComponent(horizontalLength * Math.cos(horizontal)),
|
|
36
|
+
y: roundVectorComponent(-Math.sin(elevation)),
|
|
37
|
+
z: roundVectorComponent(horizontalLength * Math.sin(horizontal)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function readEditorSceneLightingProjectedLengthMultiplier(direction) {
|
|
41
|
+
const normalized = normalizeEditorSceneLightDirectionVector(direction);
|
|
42
|
+
const vertical = Math.abs(normalized.y);
|
|
43
|
+
if (vertical <= 0.000001)
|
|
44
|
+
return 999;
|
|
45
|
+
return Math.min(999, Math.hypot(normalized.x, normalized.z) / vertical);
|
|
46
|
+
}
|
|
47
|
+
export function colorToEditorSceneLightingHex(color) {
|
|
48
|
+
const toByte = (value) => Math.max(0, Math.min(255, Math.round(value * 255)));
|
|
49
|
+
return `#${[toByte(color.r), toByte(color.g), toByte(color.b)]
|
|
50
|
+
.map(value => value.toString(16).padStart(2, '0'))
|
|
51
|
+
.join('')}`;
|
|
52
|
+
}
|
|
53
|
+
export function colorFromEditorSceneLightingHex(value, fallback) {
|
|
54
|
+
const match = /^#?([0-9a-f]{6})$/i.exec(value.trim());
|
|
55
|
+
if (!match)
|
|
56
|
+
return fallback;
|
|
57
|
+
const hex = match[1];
|
|
58
|
+
return {
|
|
59
|
+
r: parseInt(hex.slice(0, 2), 16) / 255,
|
|
60
|
+
g: parseInt(hex.slice(2, 4), 16) / 255,
|
|
61
|
+
b: parseInt(hex.slice(4, 6), 16) / 255,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function roundEditorSceneLightingNumber(value, digits = 3) {
|
|
65
|
+
const factor = 10 ** digits;
|
|
66
|
+
return Math.round(value * factor) / factor;
|
|
67
|
+
}
|
|
68
|
+
export function formatEditorSceneLightingNumber(value, digits = 3) {
|
|
69
|
+
return value.toFixed(digits);
|
|
70
|
+
}
|
|
71
|
+
export function normalizeEditorSceneLightingAngleDegrees(value) {
|
|
72
|
+
const normalized = ((((value + 180) % 360) + 360) % 360) - 180;
|
|
73
|
+
return normalized === -180 ? 180 : normalized;
|
|
74
|
+
}
|
|
75
|
+
function isVec3(value) {
|
|
76
|
+
return typeof value.x === 'number'
|
|
77
|
+
&& Number.isFinite(value.x)
|
|
78
|
+
&& typeof value.y === 'number'
|
|
79
|
+
&& Number.isFinite(value.y)
|
|
80
|
+
&& typeof value.z === 'number'
|
|
81
|
+
&& Number.isFinite(value.z);
|
|
82
|
+
}
|
|
83
|
+
function radiansToDegrees(value) {
|
|
84
|
+
return (value * 180) / Math.PI;
|
|
85
|
+
}
|
|
86
|
+
function degreesToRadians(value) {
|
|
87
|
+
return (value * Math.PI) / 180;
|
|
88
|
+
}
|
|
89
|
+
function roundVectorComponent(value) {
|
|
90
|
+
return Math.round(value * 1000000) / 1000000;
|
|
91
|
+
}
|
|
92
|
+
function clampNumber(value, min, max) {
|
|
93
|
+
return Math.min(max, Math.max(min, value));
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=math.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.js","sourceRoot":"","sources":["../../src/lighting-debug/math.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gDAAgD,GAAoB,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;AAC7G,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,GAAG,CAAC;AACpE,MAAM,CAAC,MAAM,+CAA+C,GAAG,GAAG,CAAC;AACnE,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC,EAAE,CAAC;AAClE,MAAM,CAAC,MAAM,8CAA8C,GAAG,EAAE,CAAC;AA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AAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EditorSceneDocument, EditorSceneGameObject } from '../document/index';
|
|
2
|
+
import type { EditorSceneDirectionalLightConfig, EditorSceneHemisphericLightConfig, EditorSceneRuntimeLightBinding, EditorSceneRuntimeLightingPatch, EditorSceneRuntimeLightingPatchOptions, EditorSceneRuntimeLightingPatchResult } from './types';
|
|
3
|
+
export declare function patchEditorSceneRuntimeLights<TDocument extends EditorSceneDocument = EditorSceneDocument, TGameObject extends EditorSceneGameObject = EditorSceneGameObject>(document: TDocument, patches: EditorSceneRuntimeLightingPatch[], options?: EditorSceneRuntimeLightingPatchOptions<TDocument, TGameObject>): EditorSceneRuntimeLightingPatchResult<TDocument>;
|
|
4
|
+
export declare function findEditorSceneRuntimeLightTarget<TGameObject extends EditorSceneGameObject = EditorSceneGameObject>(document: EditorSceneDocument<TGameObject>, binding: Pick<EditorSceneRuntimeLightBinding, 'objectGuid' | 'objectId'>, originalGuidById?: Map<string, string>): TGameObject | null;
|
|
5
|
+
export declare function sanitizeEditorSceneRuntimeLightingPatch(patch: EditorSceneRuntimeLightingPatch): EditorSceneRuntimeLightingPatch;
|
|
6
|
+
export declare function sanitizeEditorSceneRuntimeHemisphericLight(light: EditorSceneHemisphericLightConfig): EditorSceneHemisphericLightConfig;
|
|
7
|
+
export declare function sanitizeEditorSceneRuntimeDirectionalLight(light: EditorSceneDirectionalLightConfig): EditorSceneDirectionalLightConfig;
|
|
8
|
+
//# sourceMappingURL=save-patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-patch.d.ts","sourceRoot":"","sources":["../../src/lighting-debug/save-patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mBAAmB,EACnB,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,KAAK,EACV,iCAAiC,EACjC,iCAAiC,EAEjC,8BAA8B,EAC9B,+BAA+B,EAC/B,sCAAsC,EACtC,qCAAqC,EACtC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,6BAA6B,CAC3C,SAAS,SAAS,mBAAmB,GAAG,mBAAmB,EAC3D,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,EAEjE,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,+BAA+B,EAAE,EAC1C,OAAO,GAAE,sCAAsC,CAAC,SAAS,EAAE,WAAW,CAAM,GAC3E,qCAAqC,CAAC,SAAS,CAAC,CA+ClD;AAED,wBAAgB,iCAAiC,CAC/C,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,EAEjE,QAAQ,EAAE,mBAAmB,CAAC,WAAW,CAAC,EAC1C,OAAO,EAAE,IAAI,CAAC,8BAA8B,EAAE,YAAY,GAAG,UAAU,CAAC,EACxE,gBAAgB,GAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAA+C,GAClF,WAAW,GAAG,IAAI,CAmBpB;AAED,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,+BAA+B,GACrC,+BAA+B,CAcjC;AAED,wBAAgB,0CAA0C,CACxD,KAAK,EAAE,iCAAiC,GACvC,iCAAiC,CAQnC;AAED,wBAAgB,0CAA0C,CACxD,KAAK,EAAE,iCAAiC,GACvC,iCAAiC,CAQnC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { patchEditorSceneGameObjectField, } from '../mutation/index.js';
|
|
2
|
+
import { ensureEditorSceneGameObjectGuids, isEditorSceneLightGameObject, } from '../session/index.js';
|
|
3
|
+
import { normalizeEditorSceneLightDirectionVector, } from './math.js';
|
|
4
|
+
import { normalizeEditorSceneRuntimeLightBinding, } from './binding.js';
|
|
5
|
+
export function patchEditorSceneRuntimeLights(document, patches, options = {}) {
|
|
6
|
+
const originalGuidById = createOriginalEditorSceneGuidById(document);
|
|
7
|
+
let nextDocument = ensureEditorSceneGameObjectGuids(document);
|
|
8
|
+
const targets = [];
|
|
9
|
+
for (const patch of patches) {
|
|
10
|
+
const sanitizedPatch = sanitizeEditorSceneRuntimeLightingPatch(patch);
|
|
11
|
+
const binding = normalizeEditorSceneRuntimeLightBinding(sanitizedPatch.binding);
|
|
12
|
+
if (options.expectedSourceId && binding.sourceId !== options.expectedSourceId) {
|
|
13
|
+
throw new Error(`Runtime light binding source mismatch: ${binding.sourceId} !== ${options.expectedSourceId}`);
|
|
14
|
+
}
|
|
15
|
+
const target = findEditorSceneRuntimeLightTarget(nextDocument, binding, originalGuidById);
|
|
16
|
+
if (!target) {
|
|
17
|
+
throw new Error('Runtime light binding did not match an editor light object.');
|
|
18
|
+
}
|
|
19
|
+
assertEditorSceneRuntimeLightTarget(target, sanitizedPatch.light.type, binding);
|
|
20
|
+
nextDocument = patchRuntimeLightField(nextDocument, target.id, 'enabled', sanitizedPatch.enabled, options);
|
|
21
|
+
nextDocument = patchRuntimeLightField(nextDocument, target.id, 'light.intensity', sanitizedPatch.light.intensity, options);
|
|
22
|
+
if (sanitizedPatch.light.diffuseColor) {
|
|
23
|
+
nextDocument = patchRuntimeLightField(nextDocument, target.id, 'light.diffuseColor', sanitizedPatch.light.diffuseColor, options);
|
|
24
|
+
}
|
|
25
|
+
if (sanitizedPatch.light.type === 'hemispheric') {
|
|
26
|
+
if (sanitizedPatch.light.groundColor) {
|
|
27
|
+
nextDocument = patchRuntimeLightField(nextDocument, target.id, 'light.groundColor', sanitizedPatch.light.groundColor, options);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
nextDocument = patchRuntimeLightField(nextDocument, target.id, 'light.direction', sanitizedPatch.light.direction, options);
|
|
32
|
+
}
|
|
33
|
+
targets.push({
|
|
34
|
+
id: target.id,
|
|
35
|
+
...(target.guid ? { objectGuid: target.guid } : {}),
|
|
36
|
+
lightType: sanitizedPatch.light.type,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
document: nextDocument,
|
|
41
|
+
targets,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function findEditorSceneRuntimeLightTarget(document, binding, originalGuidById = createOriginalEditorSceneGuidById(document)) {
|
|
45
|
+
if (binding.objectGuid) {
|
|
46
|
+
const guidMatch = document.scene.gameObjects.find((gameObject) => gameObject.guid === binding.objectGuid) ?? null;
|
|
47
|
+
if (guidMatch) {
|
|
48
|
+
if (binding.objectId && guidMatch.id !== binding.objectId) {
|
|
49
|
+
throw new Error(`Runtime light binding guid/id conflict: ${binding.objectGuid} belongs to ${guidMatch.id}, not ${binding.objectId}.`);
|
|
50
|
+
}
|
|
51
|
+
return guidMatch;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (!binding.objectId)
|
|
55
|
+
return null;
|
|
56
|
+
const idMatch = document.scene.gameObjects.find((gameObject) => gameObject.id === binding.objectId) ?? null;
|
|
57
|
+
if (!idMatch)
|
|
58
|
+
return null;
|
|
59
|
+
const originalGuid = originalGuidById.get(idMatch.id);
|
|
60
|
+
if (binding.objectGuid && originalGuid && originalGuid !== binding.objectGuid) {
|
|
61
|
+
throw new Error(`Runtime light binding guid conflict for ${idMatch.id}.`);
|
|
62
|
+
}
|
|
63
|
+
return idMatch;
|
|
64
|
+
}
|
|
65
|
+
export function sanitizeEditorSceneRuntimeLightingPatch(patch) {
|
|
66
|
+
const enabled = readRuntimeBoolean(patch.enabled, 'enabled');
|
|
67
|
+
if (patch.light.type === 'hemispheric') {
|
|
68
|
+
return {
|
|
69
|
+
binding: patch.binding,
|
|
70
|
+
enabled,
|
|
71
|
+
light: sanitizeEditorSceneRuntimeHemisphericLight(patch.light),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
binding: patch.binding,
|
|
76
|
+
enabled,
|
|
77
|
+
light: sanitizeEditorSceneRuntimeDirectionalLight(patch.light),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function sanitizeEditorSceneRuntimeHemisphericLight(light) {
|
|
81
|
+
if (light.type !== 'hemispheric')
|
|
82
|
+
throw new Error('Runtime light patch must be hemispheric.');
|
|
83
|
+
return {
|
|
84
|
+
type: 'hemispheric',
|
|
85
|
+
intensity: readNonNegativeRuntimeNumber(light.intensity, 'hemispheric.intensity'),
|
|
86
|
+
...(light.diffuseColor ? { diffuseColor: readRuntimeColor(light.diffuseColor, 'hemispheric.diffuseColor') } : {}),
|
|
87
|
+
...(light.groundColor ? { groundColor: readRuntimeColor(light.groundColor, 'hemispheric.groundColor') } : {}),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export function sanitizeEditorSceneRuntimeDirectionalLight(light) {
|
|
91
|
+
if (light.type !== 'directional')
|
|
92
|
+
throw new Error('Runtime light patch must be directional.');
|
|
93
|
+
return {
|
|
94
|
+
type: 'directional',
|
|
95
|
+
intensity: readNonNegativeRuntimeNumber(light.intensity, 'directional.intensity'),
|
|
96
|
+
direction: normalizeEditorSceneLightDirectionVector(readRuntimeVec3(light.direction, 'directional.direction')),
|
|
97
|
+
...(light.diffuseColor ? { diffuseColor: readRuntimeColor(light.diffuseColor, 'directional.diffuseColor') } : {}),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function patchRuntimeLightField(document, targetId, path, value, options) {
|
|
101
|
+
return options.patchLightField
|
|
102
|
+
? options.patchLightField(document, targetId, path, value)
|
|
103
|
+
: patchEditorSceneGameObjectField(document, targetId, path, value, options.fieldMutation);
|
|
104
|
+
}
|
|
105
|
+
function assertEditorSceneRuntimeLightTarget(target, lightType, binding) {
|
|
106
|
+
if (!isEditorSceneLightGameObject(target)) {
|
|
107
|
+
throw new Error(`Runtime light binding target is not a light object: ${target.id}`);
|
|
108
|
+
}
|
|
109
|
+
if (!target.light) {
|
|
110
|
+
throw new Error(`Runtime light binding target is missing light config: ${target.id}`);
|
|
111
|
+
}
|
|
112
|
+
if (target.light.type !== lightType) {
|
|
113
|
+
throw new Error(`Runtime light binding type mismatch for ${target.id}: ${target.light.type} !== ${lightType}`);
|
|
114
|
+
}
|
|
115
|
+
if (binding.lightType && binding.lightType !== lightType) {
|
|
116
|
+
throw new Error(`Runtime light binding metadata type mismatch: ${binding.lightType} !== ${lightType}`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function createOriginalEditorSceneGuidById(document) {
|
|
120
|
+
const result = new Map();
|
|
121
|
+
for (const gameObject of document.scene.gameObjects) {
|
|
122
|
+
const guid = readNonEmptyString(gameObject.guid);
|
|
123
|
+
if (guid)
|
|
124
|
+
result.set(gameObject.id, guid);
|
|
125
|
+
}
|
|
126
|
+
return result;
|
|
127
|
+
}
|
|
128
|
+
function readRuntimeBoolean(value, label) {
|
|
129
|
+
if (typeof value !== 'boolean')
|
|
130
|
+
throw new Error(`Runtime light ${label} must be a boolean.`);
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
function readNonNegativeRuntimeNumber(value, label) {
|
|
134
|
+
if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
|
|
135
|
+
throw new Error(`Runtime light ${label} must be a non-negative finite number.`);
|
|
136
|
+
}
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
function readRuntimeColor(value, label) {
|
|
140
|
+
return {
|
|
141
|
+
r: readFiniteRuntimeNumber(value.r, `${label}.r`),
|
|
142
|
+
g: readFiniteRuntimeNumber(value.g, `${label}.g`),
|
|
143
|
+
b: readFiniteRuntimeNumber(value.b, `${label}.b`),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function readRuntimeVec3(value, label) {
|
|
147
|
+
return {
|
|
148
|
+
x: readFiniteRuntimeNumber(value.x, `${label}.x`),
|
|
149
|
+
y: readFiniteRuntimeNumber(value.y, `${label}.y`),
|
|
150
|
+
z: readFiniteRuntimeNumber(value.z, `${label}.z`),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function readFiniteRuntimeNumber(value, label) {
|
|
154
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) {
|
|
155
|
+
throw new Error(`Runtime light ${label} must be a finite number.`);
|
|
156
|
+
}
|
|
157
|
+
return value;
|
|
158
|
+
}
|
|
159
|
+
function readNonEmptyString(value) {
|
|
160
|
+
return typeof value === 'string' && value.trim() ? value.trim() : null;
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=save-patch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-patch.js","sourceRoot":"","sources":["../../src/lighting-debug/save-patch.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,+BAA+B,GAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,wCAAwC,GACzC,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,uCAAuC,GACxC,MAAM,WAAW,CAAC;AAWnB,MAAM,UAAU,6BAA6B,CAI3C,QAAmB,EACnB,OAA0C,EAC1C,UAA0E,EAAE;IAE5E,MAAM,gBAAgB,GAAG,iCAAiC,CAAC,QAAQ,CAAC,CAAC;IACrE,IAAI,YAAY,GAAG,gCAAgC,CAAC,QAAQ,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAgE,EAAE,CAAC;IAEhF,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,cAAc,GAAG,uCAAuC,CAAC,KAAK,CAAC,CAAC;QACtE,MAAM,OAAO,GAAG,uCAAuC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAChF,IAAI,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC9E,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,CAAC,QAAQ,QAAQ,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAChH,CAAC;QAED,MAAM,MAAM,GAAG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,EAAE,KAAa;IACjE,OAAO;QACL,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;QACjD,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;QACjD,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAsB,EAAE,KAAa;IAC5D,OAAO;QACL,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;QACjD,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;QACjD,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;KAClD,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAc,EAAE,KAAa;IAC5D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAK,2BAA2B,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EditorSceneColorRgb, EditorSceneVec3 } from '../document/index';
|
|
2
|
+
import type { EditorSceneLightingDebugColorField, EditorSceneLightingDebugNumberField, EditorSceneLightingDebugSnapshot, EditorSceneRuntimeLightingPatch } from './types';
|
|
3
|
+
export declare function cloneEditorSceneLightingDebugSnapshot(snapshot: EditorSceneLightingDebugSnapshot): EditorSceneLightingDebugSnapshot;
|
|
4
|
+
export declare function canSaveEditorSceneLightingDebugSnapshot(snapshot: EditorSceneLightingDebugSnapshot): boolean;
|
|
5
|
+
export declare function toEditorSceneRuntimeLightingPatches(snapshot: EditorSceneLightingDebugSnapshot): EditorSceneRuntimeLightingPatch[];
|
|
6
|
+
export declare function readEditorSceneLightingDebugNumberSnapshotField(snapshot: EditorSceneLightingDebugSnapshot, field: EditorSceneLightingDebugNumberField): number;
|
|
7
|
+
export declare function readEditorSceneLightingDebugColorSnapshotField(snapshot: EditorSceneLightingDebugSnapshot, field: EditorSceneLightingDebugColorField): EditorSceneColorRgb;
|
|
8
|
+
export declare function updateEditorSceneLightingDebugSnapshotFromAngles(snapshot: EditorSceneLightingDebugSnapshot, horizontalAngleDeg: number, elevationAngleDeg: number): EditorSceneLightingDebugSnapshot;
|
|
9
|
+
export declare function updateEditorSceneLightingDebugSnapshotDirection(snapshot: EditorSceneLightingDebugSnapshot, direction: EditorSceneVec3): EditorSceneLightingDebugSnapshot;
|
|
10
|
+
//# sourceMappingURL=snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/lighting-debug/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,KAAK,EACV,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAEjB,wBAAgB,qCAAqC,CACnD,QAAQ,EAAE,gCAAgC,GACzC,gCAAgC,CAwBlC;AAED,wBAAgB,uCAAuC,CAAC,QAAQ,EAAE,gCAAgC,GAAG,OAAO,CAE3G;AAED,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,gCAAgC,GACzC,+BAA+B,EAAE,CAcnC;AAED,wBAAgB,+CAA+C,CAC7D,QAAQ,EAAE,gCAAgC,EAC1C,KAAK,EAAE,mCAAmC,GACzC,MAAM,CAOR;AAED,wBAAgB,8CAA8C,CAC5D,QAAQ,EAAE,gCAAgC,EAC1C,KAAK,EAAE,kCAAkC,GACxC,mBAAmB,CAMrB;AAED,wBAAgB,gDAAgD,CAC9D,QAAQ,EAAE,gCAAgC,EAC1C,kBAAkB,EAAE,MAAM,EAC1B,iBAAiB,EAAE,MAAM,GACxB,gCAAgC,CAGlC;AAED,wBAAgB,+CAA+C,CAC7D,QAAQ,EAAE,gCAAgC,EAC1C,SAAS,EAAE,eAAe,GACzB,gCAAgC,CAKlC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createEditorSceneDirectionalLightDirectionFromAngles, readEditorSceneDirectionalLightAngles, readEditorSceneLightingProjectedLengthMultiplier, } from './math.js';
|
|
2
|
+
export function cloneEditorSceneLightingDebugSnapshot(snapshot) {
|
|
3
|
+
return {
|
|
4
|
+
environment: {
|
|
5
|
+
enabled: snapshot.environment.enabled,
|
|
6
|
+
binding: snapshot.environment.binding ? { ...snapshot.environment.binding } : null,
|
|
7
|
+
light: {
|
|
8
|
+
type: 'hemispheric',
|
|
9
|
+
intensity: snapshot.environment.light.intensity,
|
|
10
|
+
...(snapshot.environment.light.diffuseColor ? { diffuseColor: { ...snapshot.environment.light.diffuseColor } } : {}),
|
|
11
|
+
...(snapshot.environment.light.groundColor ? { groundColor: { ...snapshot.environment.light.groundColor } } : {}),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
directional: {
|
|
15
|
+
enabled: snapshot.directional.enabled,
|
|
16
|
+
binding: snapshot.directional.binding ? { ...snapshot.directional.binding } : null,
|
|
17
|
+
light: {
|
|
18
|
+
type: 'directional',
|
|
19
|
+
intensity: snapshot.directional.light.intensity,
|
|
20
|
+
direction: { ...snapshot.directional.light.direction },
|
|
21
|
+
...(snapshot.directional.light.diffuseColor ? { diffuseColor: { ...snapshot.directional.light.diffuseColor } } : {}),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
shadow: { ...snapshot.shadow },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function canSaveEditorSceneLightingDebugSnapshot(snapshot) {
|
|
28
|
+
return !!snapshot.environment.binding && !!snapshot.directional.binding;
|
|
29
|
+
}
|
|
30
|
+
export function toEditorSceneRuntimeLightingPatches(snapshot) {
|
|
31
|
+
if (!canSaveEditorSceneLightingDebugSnapshot(snapshot))
|
|
32
|
+
return [];
|
|
33
|
+
return [
|
|
34
|
+
{
|
|
35
|
+
binding: snapshot.environment.binding,
|
|
36
|
+
enabled: snapshot.environment.enabled,
|
|
37
|
+
light: snapshot.environment.light,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
binding: snapshot.directional.binding,
|
|
41
|
+
enabled: snapshot.directional.enabled,
|
|
42
|
+
light: snapshot.directional.light,
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export function readEditorSceneLightingDebugNumberSnapshotField(snapshot, field) {
|
|
47
|
+
switch (field) {
|
|
48
|
+
case 'environmentIntensity': return snapshot.environment.light.intensity;
|
|
49
|
+
case 'directionalIntensity': return snapshot.directional.light.intensity;
|
|
50
|
+
case 'directionalHorizontalAngle': return readEditorSceneDirectionalLightAngles(snapshot.directional.light.direction).horizontalAngleDeg;
|
|
51
|
+
case 'directionalElevationAngle': return readEditorSceneDirectionalLightAngles(snapshot.directional.light.direction).elevationAngleDeg;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export function readEditorSceneLightingDebugColorSnapshotField(snapshot, field) {
|
|
55
|
+
switch (field) {
|
|
56
|
+
case 'environmentDiffuseColor': return snapshot.environment.light.diffuseColor ?? { r: 1, g: 1, b: 1 };
|
|
57
|
+
case 'environmentGroundColor': return snapshot.environment.light.groundColor ?? { r: 0.48, g: 0.52, b: 0.62 };
|
|
58
|
+
case 'directionalDiffuseColor': return snapshot.directional.light.diffuseColor ?? { r: 1, g: 1, b: 1 };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export function updateEditorSceneLightingDebugSnapshotFromAngles(snapshot, horizontalAngleDeg, elevationAngleDeg) {
|
|
62
|
+
const direction = createEditorSceneDirectionalLightDirectionFromAngles(horizontalAngleDeg, elevationAngleDeg);
|
|
63
|
+
return updateEditorSceneLightingDebugSnapshotDirection(snapshot, direction);
|
|
64
|
+
}
|
|
65
|
+
export function updateEditorSceneLightingDebugSnapshotDirection(snapshot, direction) {
|
|
66
|
+
const next = cloneEditorSceneLightingDebugSnapshot(snapshot);
|
|
67
|
+
next.directional.light.direction = { ...direction };
|
|
68
|
+
next.shadow.projectedLengthMultiplier = readEditorSceneLightingProjectedLengthMultiplier(direction);
|
|
69
|
+
return next;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/lighting-debug/snapshot.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oDAAoD,EACpD,qCAAqC,EACrC,gDAAgD,GACjD,MAAM,QAAQ,CAAC;AAQhB,MAAM,UAAU,qCAAqC,CACnD,QAA0C;IAE1C,OAAO;QACL,WAAW,EAAE;YACX,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,OAAO;YACrC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;YAClF,KAAK,EAAE;gBACL,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS;gBAC/C,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE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,WAAW,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;QAC9G,KAAK,yBAAyB,CAAC,CAAC,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACzG,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gDAAgD,CAC9D,QAA0C,EAC1C,kBAA0B,EAC1B,iBAAyB;IAEzB,MAAM,SAAS,GAAG,oDAAoD,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;IAC9G,OAAO,+CAA+C,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,+CAA+C,CAC7D,QAA0C,EAC1C,SAA0B;IAE1B,MAAM,IAAI,GAAG,qCAAqC,CAAC,QAAQ,CAAC,CAAC;IAC7D,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;IACpD,IAAI,CAAC,MAAM,CAAC,yBAAyB,GAAG,gDAAgD,CAAC,SAAS,CAAC,CAAC;IACpG,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EditorSceneLightingDebugLanguage } from './types';
|
|
2
|
+
export interface EditorSceneLightingDebugStorageLike {
|
|
3
|
+
getItem(key: string): string | null;
|
|
4
|
+
setItem(key: string, value: string): void;
|
|
5
|
+
}
|
|
6
|
+
export interface EditorSceneLightingDebugWindowLike {
|
|
7
|
+
localStorage?: EditorSceneLightingDebugStorageLike | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function readStoredEditorSceneLightingDebugOpen(win: EditorSceneLightingDebugWindowLike | null | undefined): boolean;
|
|
10
|
+
export declare function writeStoredEditorSceneLightingDebugOpen(win: EditorSceneLightingDebugWindowLike | null | undefined, value: boolean): void;
|
|
11
|
+
export declare function readStoredEditorSceneLightingDebugLanguage(win: EditorSceneLightingDebugWindowLike | null | undefined): EditorSceneLightingDebugLanguage;
|
|
12
|
+
export declare function writeStoredEditorSceneLightingDebugLanguage(win: EditorSceneLightingDebugWindowLike | null | undefined, value: EditorSceneLightingDebugLanguage): void;
|
|
13
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/lighting-debug/storage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,kCAAkC;IACjD,YAAY,CAAC,EAAE,mCAAmC,GAAG,IAAI,CAAC;CAC3D;AAED,wBAAgB,sCAAsC,CACpD,GAAG,EAAE,kCAAkC,GAAG,IAAI,GAAG,SAAS,GACzD,OAAO,CAMT;AAED,wBAAgB,uCAAuC,CACrD,GAAG,EAAE,kCAAkC,GAAG,IAAI,GAAG,SAAS,EAC1D,KAAK,EAAE,OAAO,GACb,IAAI,CAMN;AAED,wBAAgB,0CAA0C,CACxD,GAAG,EAAE,kCAAkC,GAAG,IAAI,GAAG,SAAS,GACzD,gCAAgC,CAMlC;AAED,wBAAgB,2CAA2C,CACzD,GAAG,EAAE,kCAAkC,GAAG,IAAI,GAAG,SAAS,EAC1D,KAAK,EAAE,gCAAgC,GACtC,IAAI,CAMN"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EDITOR_SCENE_LIGHTING_DEBUG_LANGUAGE_STORAGE_KEY, EDITOR_SCENE_LIGHTING_DEBUG_STORAGE_KEY, } from './fields.js';
|
|
2
|
+
export function readStoredEditorSceneLightingDebugOpen(win) {
|
|
3
|
+
try {
|
|
4
|
+
return win?.localStorage?.getItem(EDITOR_SCENE_LIGHTING_DEBUG_STORAGE_KEY) === 'true';
|
|
5
|
+
}
|
|
6
|
+
catch {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export function writeStoredEditorSceneLightingDebugOpen(win, value) {
|
|
11
|
+
try {
|
|
12
|
+
win?.localStorage?.setItem(EDITOR_SCENE_LIGHTING_DEBUG_STORAGE_KEY, String(value));
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
// localStorage can be unavailable in embedded previews.
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export function readStoredEditorSceneLightingDebugLanguage(win) {
|
|
19
|
+
try {
|
|
20
|
+
return win?.localStorage?.getItem(EDITOR_SCENE_LIGHTING_DEBUG_LANGUAGE_STORAGE_KEY) === 'en' ? 'en' : 'zh';
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return 'zh';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function writeStoredEditorSceneLightingDebugLanguage(win, value) {
|
|
27
|
+
try {
|
|
28
|
+
win?.localStorage?.setItem(EDITOR_SCENE_LIGHTING_DEBUG_LANGUAGE_STORAGE_KEY, value);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
// localStorage can be unavailable in embedded previews.
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/lighting-debug/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,EAChD,uCAAuC,GACxC,MAAM,UAAU,CAAC;AAclB,MAAM,UAAU,sCAAsC,CACpD,GAA0D;IAE1D,IAAI,CAAC;QACH,OAAO,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,uCAAuC,CAAC,KAAK,MAAM,CAAC;IACxF,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,UAAU,uCAAuC,CACrD,GAA0D,EAC1D,KAAc;IAEd,IAAI,CAAC;QACH,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,uCAAuC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,CAAC;IAAC,MAAM,CAAC;QACP,wDAAwD;IAC1D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,GAA0D;IAE1D,IAAI,CAAC;QACH,OAAO,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,gDAAgD,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7G,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,2CAA2C,CACzD,GAA0D,EAC1D,KAAuC;IAEvC,IAAI,CAAC;QACH,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,gDAAgD,EAAE,KAAK,CAAC,CAAC;IACtF,CAAC;IAAC,MAAM,CAAC;QACP,wDAAwD;IAC1D,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EditorSceneLightingDebugLanguage, EditorSceneLightingDebugText, EditorSceneLightingDebugTooltipText, EditorSceneRuntimeShadowMode } from './types';
|
|
2
|
+
export declare const EDITOR_SCENE_LIGHTING_DEBUG_TEXT: Record<EditorSceneLightingDebugLanguage, EditorSceneLightingDebugText>;
|
|
3
|
+
export declare const EDITOR_SCENE_LIGHTING_DEBUG_TOOLTIPS: Record<EditorSceneLightingDebugLanguage, EditorSceneLightingDebugTooltipText>;
|
|
4
|
+
export declare function readEditorSceneLightingDebugText(language: EditorSceneLightingDebugLanguage): EditorSceneLightingDebugText;
|
|
5
|
+
export declare function readEditorSceneLightingDebugTooltipText(language: EditorSceneLightingDebugLanguage): EditorSceneLightingDebugTooltipText;
|
|
6
|
+
export declare function formatEditorSceneLightingShadowMode(mode: EditorSceneRuntimeShadowMode, text: EditorSceneLightingDebugText): string;
|
|
7
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/lighting-debug/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,4BAA4B,EAC5B,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,EAAE,4BAA4B,CAyDnH,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,gCAAgC,EAAE,mCAAmC,CAiC9H,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,gCAAgC,GACzC,4BAA4B,CAE9B;AAED,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,gCAAgC,GACzC,mCAAmC,CAErC;AAED,wBAAgB,mCAAmC,CACjD,IAAI,EAAE,4BAA4B,EAClC,IAAI,EAAE,4BAA4B,GACjC,MAAM,CAKR"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export const EDITOR_SCENE_LIGHTING_DEBUG_TEXT = {
|
|
2
|
+
zh: {
|
|
3
|
+
title: '光照调试',
|
|
4
|
+
runtime: '运行时',
|
|
5
|
+
languageButton: 'EN',
|
|
6
|
+
toggleTitle: '打开光照调试面板',
|
|
7
|
+
environmentSection: '环境光',
|
|
8
|
+
directionalSection: '直射光',
|
|
9
|
+
enabled: '启用',
|
|
10
|
+
intensity: '强度',
|
|
11
|
+
skyLightColor: '天空光颜色',
|
|
12
|
+
groundColor: '地面颜色',
|
|
13
|
+
horizontalAngle: '水平角',
|
|
14
|
+
elevationAngle: '高度角',
|
|
15
|
+
lightColor: '光照颜色',
|
|
16
|
+
rawDirection: '原始方向',
|
|
17
|
+
shadowReadout: '阴影',
|
|
18
|
+
shadowPlanarFollow: 'Planar / 跟随直射光',
|
|
19
|
+
shadowLegacy: 'Legacy Shadow',
|
|
20
|
+
shadowNone: 'Off',
|
|
21
|
+
shadowUnknown: 'Unknown',
|
|
22
|
+
reset: '重置参数',
|
|
23
|
+
save: '保存参数',
|
|
24
|
+
resetStatus: '已重置为初始运行时光照。',
|
|
25
|
+
savingStatus: '正在保存光照参数...',
|
|
26
|
+
savedStatus: '已保存光照参数。',
|
|
27
|
+
saveFailed: '保存失败',
|
|
28
|
+
missingBindingStatus: '缺少光源绑定,只能临时预览,不能保存。',
|
|
29
|
+
},
|
|
30
|
+
en: {
|
|
31
|
+
title: 'Lighting Debug',
|
|
32
|
+
runtime: 'Runtime',
|
|
33
|
+
languageButton: '中文',
|
|
34
|
+
toggleTitle: 'Toggle lighting debug panel',
|
|
35
|
+
environmentSection: 'Environment Light',
|
|
36
|
+
directionalSection: 'Directional Light',
|
|
37
|
+
enabled: 'Enabled',
|
|
38
|
+
intensity: 'Intensity',
|
|
39
|
+
skyLightColor: 'Sky Light Color',
|
|
40
|
+
groundColor: 'Ground Color',
|
|
41
|
+
horizontalAngle: 'Horizontal Angle',
|
|
42
|
+
elevationAngle: 'Elevation Angle',
|
|
43
|
+
lightColor: 'Light Color',
|
|
44
|
+
rawDirection: 'Raw Direction',
|
|
45
|
+
shadowReadout: 'Shadow',
|
|
46
|
+
shadowPlanarFollow: 'Planar / Follow Directional Light',
|
|
47
|
+
shadowLegacy: 'Legacy Shadow',
|
|
48
|
+
shadowNone: 'Off',
|
|
49
|
+
shadowUnknown: 'Unknown',
|
|
50
|
+
reset: 'Reset',
|
|
51
|
+
save: 'Save Lights',
|
|
52
|
+
resetStatus: 'Reset to initial runtime lighting.',
|
|
53
|
+
savingStatus: 'Saving lighting...',
|
|
54
|
+
savedStatus: 'Saved lighting.',
|
|
55
|
+
saveFailed: 'Save failed',
|
|
56
|
+
missingBindingStatus: 'Light binding missing; preview only, saving disabled.',
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
export const EDITOR_SCENE_LIGHTING_DEBUG_TOOLTIPS = {
|
|
60
|
+
zh: {
|
|
61
|
+
languageButton: '切换光照调试面板的显示语言。',
|
|
62
|
+
toggleTitle: '打开或关闭运行时光照调试面板。',
|
|
63
|
+
enabled: '启用或禁用对应的运行时光源,保存后写回编辑器场景。',
|
|
64
|
+
environmentIntensity: '环境光强度,对应运行时环境光 intensity。',
|
|
65
|
+
directionalIntensity: '直射光强度,对应运行时直射光 intensity。',
|
|
66
|
+
skyLightColor: '环境光来自天空方向的漫反射颜色。',
|
|
67
|
+
groundColor: '环境光来自地面反射方向的颜色。',
|
|
68
|
+
horizontalAngle: '直射光在 XZ 平面内的朝向角度,会转换为运行时方向向量。',
|
|
69
|
+
elevationAngle: '直射光相对地平线的高度角;90 度表示从正上方照下。',
|
|
70
|
+
lightColor: '直射光漫反射颜色。',
|
|
71
|
+
rawDirection: '只读方向向量,用于排查运行时转换结果。',
|
|
72
|
+
shadowReadout: '只读阴影状态;支持宿主提供的运行时阴影模式摘要。',
|
|
73
|
+
reset: '恢复为打开运行时时读取到的初始光照参数。',
|
|
74
|
+
save: '通过编辑器保存链路写回环境光与直射光参数。',
|
|
75
|
+
},
|
|
76
|
+
en: {
|
|
77
|
+
languageButton: 'Switch the lighting debug panel language.',
|
|
78
|
+
toggleTitle: 'Open or close the runtime lighting debug panel.',
|
|
79
|
+
enabled: 'Enable or disable the runtime light and save it back to the editor scene.',
|
|
80
|
+
environmentIntensity: 'Environment intensity. Maps to the runtime environment light intensity.',
|
|
81
|
+
directionalIntensity: 'Directional intensity. Maps to the runtime directional light intensity.',
|
|
82
|
+
skyLightColor: 'Diffuse sky color for the environment light.',
|
|
83
|
+
groundColor: 'Ground bounce color for the environment light.',
|
|
84
|
+
horizontalAngle: 'Directional heading in the XZ plane, converted to a runtime direction vector.',
|
|
85
|
+
elevationAngle: 'Directional elevation above the horizon; 90 degrees points straight down.',
|
|
86
|
+
lightColor: 'Directional diffuse color.',
|
|
87
|
+
rawDirection: 'Read-only direction vector for checking runtime conversion.',
|
|
88
|
+
shadowReadout: 'Read-only shadow status supplied by the host runtime.',
|
|
89
|
+
reset: 'Restore the lighting captured when runtime opened.',
|
|
90
|
+
save: 'Save Environment Light and Directional Light through the editor authoring pipeline.',
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
export function readEditorSceneLightingDebugText(language) {
|
|
94
|
+
return EDITOR_SCENE_LIGHTING_DEBUG_TEXT[language] ?? EDITOR_SCENE_LIGHTING_DEBUG_TEXT.zh;
|
|
95
|
+
}
|
|
96
|
+
export function readEditorSceneLightingDebugTooltipText(language) {
|
|
97
|
+
return EDITOR_SCENE_LIGHTING_DEBUG_TOOLTIPS[language] ?? EDITOR_SCENE_LIGHTING_DEBUG_TOOLTIPS.zh;
|
|
98
|
+
}
|
|
99
|
+
export function formatEditorSceneLightingShadowMode(mode, text) {
|
|
100
|
+
if (mode === 'planar')
|
|
101
|
+
return text.shadowPlanarFollow;
|
|
102
|
+
if (mode === 'legacy')
|
|
103
|
+
return text.shadowLegacy;
|
|
104
|
+
if (mode === 'none')
|
|
105
|
+
return text.shadowNone;
|
|
106
|
+
return text.shadowUnknown;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/lighting-debug/text.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gCAAgC,GAA2E;IACtH,EAAE,EAAE;QACF,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,IAAI;QACpB,WAAW,EAAE,UAAU;QACvB,kBAAkB,EAAE,KAAK;QACzB,kBAAkB,EAAE,KAAK;QACzB,OAAO,EAAE,IAAI;QACb,SAAS,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