@fps-games/editor 0.1.5-beta.5 → 0.1.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-bridge/capabilities/assets.d.ts +8 -0
- package/dist/agent-bridge/capabilities/assets.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/assets.js +226 -0
- package/dist/agent-bridge/capabilities/assets.js.map +1 -0
- package/dist/agent-bridge/capabilities/editor-state.d.ts +5 -0
- package/dist/agent-bridge/capabilities/editor-state.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/editor-state.js +72 -0
- package/dist/agent-bridge/capabilities/editor-state.js.map +1 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +4 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.js +87 -0
- package/dist/agent-bridge/capabilities/host-lifecycle.js.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts +5 -0
- package/dist/agent-bridge/capabilities/prefabs.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/prefabs.js +735 -0
- package/dist/agent-bridge/capabilities/prefabs.js.map +1 -0
- package/dist/agent-bridge/capabilities/scene-objects.d.ts +9 -0
- package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/scene-objects.js +394 -0
- package/dist/agent-bridge/capabilities/scene-objects.js.map +1 -0
- package/dist/agent-bridge/capabilities/selection.d.ts +5 -0
- package/dist/agent-bridge/capabilities/selection.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/selection.js +57 -0
- package/dist/agent-bridge/capabilities/selection.js.map +1 -0
- package/dist/agent-bridge/capabilities/shadows.d.ts +5 -0
- package/dist/agent-bridge/capabilities/shadows.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/shadows.js +1876 -0
- package/dist/agent-bridge/capabilities/shadows.js.map +1 -0
- package/dist/agent-bridge/capabilities/transform.d.ts +5 -0
- package/dist/agent-bridge/capabilities/transform.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/transform.js +162 -0
- package/dist/agent-bridge/capabilities/transform.js.map +1 -0
- package/dist/agent-bridge/capabilities/ui-regions.d.ts +4 -0
- package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/ui-regions.js +168 -0
- package/dist/agent-bridge/capabilities/ui-regions.js.map +1 -0
- package/dist/agent-bridge/capabilities/viewport.d.ts +5 -0
- package/dist/agent-bridge/capabilities/viewport.d.ts.map +1 -0
- package/dist/agent-bridge/capabilities/viewport.js +407 -0
- package/dist/agent-bridge/capabilities/viewport.js.map +1 -0
- package/dist/agent-bridge/capability-sources.d.ts +6 -0
- package/dist/agent-bridge/capability-sources.d.ts.map +1 -0
- package/dist/agent-bridge/capability-sources.js +26 -0
- package/dist/agent-bridge/capability-sources.js.map +1 -0
- package/dist/agent-bridge/diagnostics.d.ts +12 -0
- package/dist/agent-bridge/diagnostics.d.ts.map +1 -0
- package/dist/agent-bridge/diagnostics.js +45 -0
- package/dist/agent-bridge/diagnostics.js.map +1 -0
- package/dist/agent-bridge/index.d.ts +5 -0
- package/dist/agent-bridge/index.d.ts.map +1 -0
- package/dist/agent-bridge/index.js +5 -0
- package/dist/agent-bridge/index.js.map +1 -0
- package/dist/agent-bridge/register.d.ts +4 -0
- package/dist/agent-bridge/register.d.ts.map +1 -0
- package/dist/agent-bridge/register.js +908 -0
- package/dist/agent-bridge/register.js.map +1 -0
- package/dist/agent-bridge/shared.d.ts +189 -0
- package/dist/agent-bridge/shared.d.ts.map +1 -0
- package/dist/agent-bridge/shared.js +39 -0
- package/dist/agent-bridge/shared.js.map +1 -0
- package/dist/agent-bridge/source-types.d.ts +90 -0
- package/dist/agent-bridge/source-types.d.ts.map +1 -0
- package/dist/agent-bridge/source-types.js +2 -0
- package/dist/agent-bridge/source-types.js.map +1 -0
- package/dist/build-info.json +17 -17
- package/dist/local-editor-agent-actions.d.ts +8 -1
- package/dist/local-editor-agent-actions.d.ts.map +1 -1
- package/dist/local-editor-agent-actions.js +171 -12
- package/dist/local-editor-agent-actions.js.map +1 -1
- package/dist/local-editor-agent-bridge-transport.d.ts +95 -0
- package/dist/local-editor-agent-bridge-transport.d.ts.map +1 -0
- package/dist/local-editor-agent-bridge-transport.js +340 -0
- package/dist/local-editor-agent-bridge-transport.js.map +1 -0
- package/dist/local-editor-agent-bridge.d.ts +2 -0
- package/dist/local-editor-agent-bridge.d.ts.map +1 -0
- package/dist/local-editor-agent-bridge.js +2 -0
- package/dist/local-editor-agent-bridge.js.map +1 -0
- package/dist/local-editor-agent-context.d.ts +29 -1
- package/dist/local-editor-agent-context.d.ts.map +1 -1
- package/dist/local-editor-agent-context.js +403 -0
- package/dist/local-editor-agent-context.js.map +1 -1
- package/dist/local-editor-harness.d.ts +128 -6
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +2730 -151
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-marker-graph.d.ts +92 -0
- package/dist/local-editor-marker-graph.d.ts.map +1 -0
- package/dist/local-editor-marker-graph.js +1432 -0
- package/dist/local-editor-marker-graph.js.map +1 -0
- package/dist/local-editor-performance-stats.js +1 -1
- package/dist/local-editor-performance-stats.js.map +1 -1
- package/dist/playable-babylon-facade.d.ts +2 -2
- package/dist/playable-babylon-facade.d.ts.map +1 -1
- package/dist/playable-babylon-facade.js +1 -1
- package/dist/playable-babylon-facade.js.map +1 -1
- package/dist/playable-babylon-rendering.js +20 -0
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +57 -7
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js +25 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk.d.ts +4 -2
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +2 -1
- package/dist/playable-sdk.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js +6 -4
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/blob-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js +103 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-shaders.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js +330 -27
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/planar-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js +159 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js +8 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts +53 -2
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts +3 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js +114 -18
- package/node_modules/@fps-games/editor-babylon/dist/editor-sky.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/editor-world.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts +52 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js +1395 -0
- package/node_modules/@fps-games/editor-babylon/dist/marker-overlay.js.map +1 -0
- 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 +4 -65
- package/node_modules/@fps-games/editor-babylon/dist/material-property-adapter.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts +28 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js +235 -0
- package/node_modules/@fps-games/editor-babylon/dist/material-slot-source-resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts +37 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js +451 -0
- package/node_modules/@fps-games/editor-babylon/dist/prefab-comparison-preview-controller.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js +14 -3
- package/node_modules/@fps-games/editor-babylon/dist/projection-asset-container-importer.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js +20 -4
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts +3 -6
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js +4 -37
- package/node_modules/@fps-games/editor-babylon/dist/projection-source-owner-path.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +74 -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 +641 -52
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts +11 -0
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js +113 -29
- package/node_modules/@fps-games/editor-babylon/dist/scene-view-camera-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +13 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js +543 -3
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +8 -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 +4 -0
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js +23 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-asset-kind.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-context-menu.js.map +1 -1
- 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 +76 -9
- 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-attach-dialog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +3 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts +21 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js +75 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-command-adapter.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +2 -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 +326 -72
- 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-scope.d.ts +5 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js +92 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-scope.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.d.ts +4 -1
- 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 +22 -7
- 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 +4 -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 +24 -11
- 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 +7 -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-panel-registry.js +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panel-registry.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +4 -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 +1471 -29
- 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-prefab-stage.d.ts +70 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js +171 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-prefab-stage.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-primitives.d.ts +1 -1
- 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 +2 -2
- 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.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-shared.js +9 -2
- 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-types.d.ts +301 -3
- 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 +12 -1
- 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 +13 -1
- 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 +6 -4
- 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 +1501 -122
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +3 -3
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +18 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +102 -0
- package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.d.ts +1 -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 +1 -0
- package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts +1 -1
- package/node_modules/@fps-games/editor-core/dist/scene-graph.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts +3 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/viewport-tools.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.js +9 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/config.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js +89 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/generated-module.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.d.ts +18 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.js +121 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/identity.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.d.ts +27 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js +782 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/metadata.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/node.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts +80 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js +600 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/registry.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.d.ts +51 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-database/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js +17 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/catalog.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts +3 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-library/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +48 -20
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +97 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +1143 -8
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +145 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +24 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/validators.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +82 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js +396 -22
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js +0 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/validation.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts +29 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js +143 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/lighting-debug/math.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +3 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts +2 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +107 -11
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js +19 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/transform.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +19 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts +1 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js +0 -14
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/assets.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts +1 -7
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js +3 -32
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/import-plan.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +82 -63
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +7 -23
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js +996 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/compiler.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts +152 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-compiler/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js +44 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/protocol.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +244 -12
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +216 -67
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -4
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js +45 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/hierarchy.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.js +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.d.ts +21 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.js +158 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/legacy.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.d.ts +5 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.js +83 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/quality.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.d.ts +35 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.js +363 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.d.ts +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.js +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/shadow-system/types.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js +44 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.d.ts +26 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.js +105 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/asset-authoring.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +3 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/package.json +3 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +1127 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js +2180 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +68 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +23 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +57 -3
- package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +21 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/index.js +3 -0
- package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.d.ts +128 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js +2 -0
- package/node_modules/@fps-games/editor-protocol/dist/marker-graph.js.map +1 -0
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createIdentityEditorTransform, decomposeEditorTransformMatrix, isEditorTransformMatrixSnapshot, } from '@fps-games/editor-core';
|
|
2
2
|
import { getEditorSceneAuthoringSourceRef, } from '../authoring/index.js';
|
|
3
3
|
import { findEditorSceneModelRenderer, findEditorSceneTransform, readEditorSceneNodeKind, } from '../document/index.js';
|
|
4
|
+
import { EDITOR_SHADOW_LEGACY_AUTHORING_ENABLED, EDITOR_SHADOW_OBJECT_ADVANCED_PARAMS_ENABLED, EDITOR_SHADOW_STATIC_AUTHORING_ENABLED, readEditorShadowSettingsWithLegacy, resolveEditorShadowPlan, } from '../shadow-system/index.js';
|
|
4
5
|
import { normalizeEditorSceneRenderingProfile, } from '../rendering-profile/index.js';
|
|
5
6
|
import { collectEditorSceneSubtreeIdList, } from '../session/hierarchy.js';
|
|
6
7
|
import { isEditorSceneRootGameObject, } from '../session/identity.js';
|
|
@@ -433,7 +434,21 @@ export function createEditorSceneShadowInspectorSection(input) {
|
|
|
433
434
|
return null;
|
|
434
435
|
const language = readEditorSceneShadowInspectorLanguage(input.gameObject);
|
|
435
436
|
const text = getEditorSceneShadowInspectorText(language);
|
|
436
|
-
const
|
|
437
|
+
const authoredShadowSettings = readEditorShadowSettingsWithLegacy({
|
|
438
|
+
shadow: input.gameObject.shadow,
|
|
439
|
+
shadowMode: input.gameObject.shadowMode,
|
|
440
|
+
}).shadow;
|
|
441
|
+
const shadowSettings = authoredShadowSettings ?? {};
|
|
442
|
+
const profile = normalizeEditorSceneRenderingProfile(input.renderingProfile);
|
|
443
|
+
const fallbackMode = readEditorSceneShadowFallbackModeFromRenderingProfile(profile);
|
|
444
|
+
const documentGameObject = findEditorSceneGameObject(input.document, input.gameObject.id);
|
|
445
|
+
const detachedInspectorGameObject = documentGameObject !== input.gameObject;
|
|
446
|
+
const resolvedPlan = resolveEditorShadowPlan({
|
|
447
|
+
document: input.document,
|
|
448
|
+
casterId: input.gameObject.id,
|
|
449
|
+
fallbackMode,
|
|
450
|
+
...(detachedInspectorGameObject && authoredShadowSettings ? { settings: { instance: authoredShadowSettings } } : {}),
|
|
451
|
+
});
|
|
437
452
|
const properties = [
|
|
438
453
|
createEditorSceneEditableInspectorProperty(input, {
|
|
439
454
|
document: input.document,
|
|
@@ -448,33 +463,150 @@ export function createEditorSceneShadowInspectorSection(input) {
|
|
|
448
463
|
controlOptions: { variant: 'segmented' },
|
|
449
464
|
tooltip: text.tooltips.language,
|
|
450
465
|
}),
|
|
466
|
+
...createEditorSceneShadowResolvedInspectorProperties(resolvedPlan, text, 1),
|
|
451
467
|
createEditorSceneEditableInspectorProperty(input, {
|
|
452
468
|
document: input.document,
|
|
453
|
-
path: '
|
|
454
|
-
label: text.
|
|
469
|
+
path: 'shadow.cast',
|
|
470
|
+
label: text.cast,
|
|
455
471
|
valueType: 'enum',
|
|
456
472
|
control: 'enum',
|
|
457
|
-
value: mode,
|
|
473
|
+
value: readEditorSceneCompactShadowCastValue(shadowSettings.cast, resolvedPlan.mode),
|
|
458
474
|
commitMode: 'immediate',
|
|
459
|
-
order:
|
|
460
|
-
options:
|
|
461
|
-
tooltip: text.tooltips.
|
|
475
|
+
order: 10,
|
|
476
|
+
options: createEditorSceneShadowCastOptions(text),
|
|
477
|
+
tooltip: text.tooltips.cast,
|
|
462
478
|
}),
|
|
479
|
+
createEditorSceneEditableInspectorProperty(input, {
|
|
480
|
+
document: input.document,
|
|
481
|
+
path: 'shadow.receive',
|
|
482
|
+
label: text.receive,
|
|
483
|
+
valueType: 'enum',
|
|
484
|
+
control: 'enum',
|
|
485
|
+
value: readEditorSceneCompactShadowReceiveValue(shadowSettings.receive),
|
|
486
|
+
commitMode: 'immediate',
|
|
487
|
+
order: 11,
|
|
488
|
+
options: createEditorSceneShadowReceiveOptions(text),
|
|
489
|
+
tooltip: text.tooltips.receive,
|
|
490
|
+
}),
|
|
491
|
+
createEditorSceneEditableInspectorProperty(input, {
|
|
492
|
+
document: input.document,
|
|
493
|
+
path: 'shadow.mode',
|
|
494
|
+
label: text.policy,
|
|
495
|
+
valueType: 'enum',
|
|
496
|
+
control: 'enum',
|
|
497
|
+
value: readEditorSceneCompactShadowPolicyValue(shadowSettings.mode, resolvedPlan.mode),
|
|
498
|
+
commitMode: 'immediate',
|
|
499
|
+
order: 12,
|
|
500
|
+
options: createEditorSceneShadowPolicyOptions(text),
|
|
501
|
+
tooltip: text.tooltips.policy,
|
|
502
|
+
}),
|
|
503
|
+
createEditorSceneEditableInspectorProperty(input, {
|
|
504
|
+
document: input.document,
|
|
505
|
+
path: 'shadow.quality',
|
|
506
|
+
label: text.quality,
|
|
507
|
+
valueType: 'enum',
|
|
508
|
+
control: 'enum',
|
|
509
|
+
value: readEditorSceneCompactShadowQualityValue(shadowSettings.quality, resolvedPlan.quality),
|
|
510
|
+
commitMode: 'immediate',
|
|
511
|
+
order: 13,
|
|
512
|
+
options: createEditorSceneShadowQualityOptions(text),
|
|
513
|
+
tooltip: text.tooltips.quality,
|
|
514
|
+
}),
|
|
515
|
+
...(EDITOR_SHADOW_OBJECT_ADVANCED_PARAMS_ENABLED
|
|
516
|
+
? createEditorSceneShadowParamInspectorProperties(input, shadowSettings, text, 30)
|
|
517
|
+
: []),
|
|
518
|
+
...(EDITOR_SHADOW_LEGACY_AUTHORING_ENABLED ? [createEditorSceneEditableInspectorProperty(input, {
|
|
519
|
+
document: input.document,
|
|
520
|
+
path: 'shadowMode',
|
|
521
|
+
label: text.legacyMode,
|
|
522
|
+
valueType: 'enum',
|
|
523
|
+
control: 'enum',
|
|
524
|
+
value: readEditorSceneInspectorShadowMode(input.gameObject.shadowMode),
|
|
525
|
+
commitMode: 'immediate',
|
|
526
|
+
order: 80,
|
|
527
|
+
options: createEditorSceneShadowModeOptions(text),
|
|
528
|
+
tooltip: text.tooltips.legacyMode,
|
|
529
|
+
})] : []),
|
|
463
530
|
];
|
|
464
|
-
if (mode === 'static') {
|
|
465
|
-
properties.push(createEditorSceneStaticShadowBakeActionProperty(text,
|
|
531
|
+
if (EDITOR_SHADOW_STATIC_AUTHORING_ENABLED && resolvedPlan.mode === 'static') {
|
|
532
|
+
properties.push(createEditorSceneStaticShadowBakeActionProperty(text, 90));
|
|
466
533
|
}
|
|
467
534
|
return {
|
|
468
535
|
id: 'shadow',
|
|
469
536
|
title: text.title,
|
|
470
537
|
order: 34,
|
|
471
538
|
placement: 'body',
|
|
472
|
-
summary: text.
|
|
539
|
+
summary: text.summaryPolicy(resolvedPlan.mode),
|
|
473
540
|
persistence: 'document',
|
|
474
541
|
collapsedByDefault: false,
|
|
475
542
|
properties,
|
|
476
543
|
};
|
|
477
544
|
}
|
|
545
|
+
function readEditorSceneCompactShadowCastValue(value, resolvedMode) {
|
|
546
|
+
if (value === 'enabled')
|
|
547
|
+
return 'enabled';
|
|
548
|
+
if (value === 'none')
|
|
549
|
+
return 'none';
|
|
550
|
+
return resolvedMode === 'none' ? 'none' : 'enabled';
|
|
551
|
+
}
|
|
552
|
+
function readEditorSceneCompactShadowReceiveValue(value) {
|
|
553
|
+
return value === 'enabled' ? 'enabled' : 'none';
|
|
554
|
+
}
|
|
555
|
+
function readEditorSceneCompactShadowPolicyValue(authoredMode, resolvedMode) {
|
|
556
|
+
if (authoredMode === 'none' || authoredMode === 'dynamic' || authoredMode === 'blob' || authoredMode === 'projected') {
|
|
557
|
+
return authoredMode;
|
|
558
|
+
}
|
|
559
|
+
if (resolvedMode === 'none' || resolvedMode === 'dynamic' || resolvedMode === 'blob' || resolvedMode === 'projected') {
|
|
560
|
+
return resolvedMode;
|
|
561
|
+
}
|
|
562
|
+
return 'none';
|
|
563
|
+
}
|
|
564
|
+
function readEditorSceneCompactShadowQualityValue(authoredQuality, resolvedQuality) {
|
|
565
|
+
if (authoredQuality === 'low' || authoredQuality === 'medium' || authoredQuality === 'high') {
|
|
566
|
+
return authoredQuality;
|
|
567
|
+
}
|
|
568
|
+
if (resolvedQuality === 'low' || resolvedQuality === 'medium' || resolvedQuality === 'high') {
|
|
569
|
+
return resolvedQuality;
|
|
570
|
+
}
|
|
571
|
+
return 'high';
|
|
572
|
+
}
|
|
573
|
+
function createEditorSceneShadowResolvedInspectorProperties(plan, text, startOrder) {
|
|
574
|
+
const diagnostics = plan.diagnostics
|
|
575
|
+
.map(diagnostic => `${diagnostic.severity}:${diagnostic.code} - ${diagnostic.message}`)
|
|
576
|
+
.join('\n');
|
|
577
|
+
const properties = [];
|
|
578
|
+
if (EDITOR_SHADOW_STATIC_AUTHORING_ENABLED && plan.mode === 'static') {
|
|
579
|
+
properties.push(createEditorSceneReadonlyInspectorProperty({
|
|
580
|
+
path: 'shadow.static.bakeState',
|
|
581
|
+
label: text.staticBakeState,
|
|
582
|
+
value: plan.stale ? text.staticBakeStale : text.staticBakeAuthored,
|
|
583
|
+
order: startOrder + 5,
|
|
584
|
+
source: 'Derived',
|
|
585
|
+
tooltip: text.tooltips.staticBakeState,
|
|
586
|
+
effect: 'derived',
|
|
587
|
+
}));
|
|
588
|
+
}
|
|
589
|
+
if (diagnostics) {
|
|
590
|
+
properties.push(createEditorSceneReadonlyInspectorProperty({
|
|
591
|
+
path: 'shadow.resolved.diagnostics',
|
|
592
|
+
label: text.resolvedDiagnostics,
|
|
593
|
+
value: diagnostics,
|
|
594
|
+
order: startOrder + 6,
|
|
595
|
+
source: 'Derived',
|
|
596
|
+
tooltip: text.tooltips.resolvedDiagnostics,
|
|
597
|
+
effect: plan.diagnostics.some(diagnostic => diagnostic.severity === 'error')
|
|
598
|
+
? 'unsupported'
|
|
599
|
+
: 'derived',
|
|
600
|
+
}));
|
|
601
|
+
}
|
|
602
|
+
return properties.filter((property) => !!property);
|
|
603
|
+
}
|
|
604
|
+
function readEditorSceneShadowFallbackModeFromRenderingProfile(profile) {
|
|
605
|
+
const defaultMode = profile.shadows.defaultMode;
|
|
606
|
+
if (defaultMode === 'planar')
|
|
607
|
+
return 'projected';
|
|
608
|
+
return defaultMode;
|
|
609
|
+
}
|
|
478
610
|
export function createEditorSceneStaticShadowBakeActionProperty(text, order) {
|
|
479
611
|
return {
|
|
480
612
|
path: EDITOR_SCENE_STATIC_SHADOW_BAKE_ACTION_PATH,
|
|
@@ -497,6 +629,33 @@ export function createEditorSceneStaticShadowBakeActionProperty(text, order) {
|
|
|
497
629
|
tags: ['Rendering'],
|
|
498
630
|
};
|
|
499
631
|
}
|
|
632
|
+
function createEditorSceneShadowParamInspectorProperties(input, shadow, text, startOrder) {
|
|
633
|
+
return [
|
|
634
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.opacity', text.opacity, shadow.params?.opacity ?? null, startOrder + 0, 0.05, text.tooltips.opacity),
|
|
635
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.softness', text.softness, shadow.params?.softness ?? null, startOrder + 1, 0.05, text.tooltips.softness),
|
|
636
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.bias', text.bias, shadow.params?.bias ?? null, startOrder + 2, 0.0001, text.tooltips.bias),
|
|
637
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.normalBias', text.normalBias, shadow.params?.normalBias ?? null, startOrder + 3, 0.0001, text.tooltips.normalBias),
|
|
638
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.maxDistance', text.maxDistance, shadow.params?.maxDistance ?? null, startOrder + 4, 1, text.tooltips.maxDistance),
|
|
639
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.resolution', text.resolution, shadow.params?.resolution ?? null, startOrder + 5, 64, text.tooltips.resolution),
|
|
640
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.cascadeCount', text.cascadeCount, shadow.params?.cascadeCount ?? null, startOrder + 6, 1, text.tooltips.cascadeCount),
|
|
641
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.bakeSamples', text.bakeSamples, shadow.params?.bakeSamples ?? null, startOrder + 7, 1, text.tooltips.bakeSamples),
|
|
642
|
+
createEditorSceneShadowNumberInspectorProperty(input, 'shadow.params.blurKernel', text.blurKernel, shadow.params?.blurKernel ?? null, startOrder + 8, 1, text.tooltips.blurKernel),
|
|
643
|
+
];
|
|
644
|
+
}
|
|
645
|
+
function createEditorSceneShadowNumberInspectorProperty(input, path, label, value, order, step, tooltip) {
|
|
646
|
+
return createEditorSceneEditableInspectorProperty(input, {
|
|
647
|
+
document: input.document,
|
|
648
|
+
path,
|
|
649
|
+
label,
|
|
650
|
+
valueType: 'number',
|
|
651
|
+
control: 'number',
|
|
652
|
+
value,
|
|
653
|
+
commitMode: 'live',
|
|
654
|
+
order,
|
|
655
|
+
step,
|
|
656
|
+
tooltip,
|
|
657
|
+
});
|
|
658
|
+
}
|
|
500
659
|
export function createEditorSceneRenderingInspectorSection(input) {
|
|
501
660
|
if (!canEditEditorSceneObjectRendering(input))
|
|
502
661
|
return null;
|
|
@@ -704,13 +863,7 @@ function readEditorSceneRenderingAlphaIndex(gameObject) {
|
|
|
704
863
|
const renderingAlphaIndex = gameObject.rendering?.alphaIndex;
|
|
705
864
|
if (typeof renderingAlphaIndex === 'number' && Number.isFinite(renderingAlphaIndex))
|
|
706
865
|
return renderingAlphaIndex;
|
|
707
|
-
|
|
708
|
-
const legacyAlphaIndex = groundDecal && typeof groundDecal === 'object' && !Array.isArray(groundDecal)
|
|
709
|
-
? groundDecal.alphaIndex
|
|
710
|
-
: undefined;
|
|
711
|
-
return typeof legacyAlphaIndex === 'number' && Number.isFinite(legacyAlphaIndex)
|
|
712
|
-
? legacyAlphaIndex
|
|
713
|
-
: undefined;
|
|
866
|
+
return undefined;
|
|
714
867
|
}
|
|
715
868
|
function createEditorSceneRenderingInspectorSummary(groupSlot, alphaIndex) {
|
|
716
869
|
return alphaIndex == null
|
|
@@ -754,10 +907,53 @@ export function createEditorSceneShadowModeOptions(text) {
|
|
|
754
907
|
{ label: text.modeProjectDefault, value: 'default' },
|
|
755
908
|
{ label: text.modeNone, value: 'none' },
|
|
756
909
|
{ label: text.modeBlob, value: 'blob' },
|
|
757
|
-
|
|
910
|
+
...(EDITOR_SHADOW_STATIC_AUTHORING_ENABLED
|
|
911
|
+
? [{ label: text.modeStatic, value: 'static' }]
|
|
912
|
+
: []),
|
|
758
913
|
{ label: text.modePlanar, value: 'planar' },
|
|
759
914
|
];
|
|
760
915
|
}
|
|
916
|
+
export function createEditorSceneShadowCastOptions(text) {
|
|
917
|
+
return [
|
|
918
|
+
{ label: text.castNone, value: 'none' },
|
|
919
|
+
{ label: text.castEnabled, value: 'enabled' },
|
|
920
|
+
];
|
|
921
|
+
}
|
|
922
|
+
export function createEditorSceneShadowReceiveOptions(text) {
|
|
923
|
+
return [
|
|
924
|
+
{ label: text.receiveNone, value: 'none' },
|
|
925
|
+
{ label: text.receiveEnabled, value: 'enabled' },
|
|
926
|
+
];
|
|
927
|
+
}
|
|
928
|
+
export function createEditorSceneShadowPolicyOptions(text) {
|
|
929
|
+
return [
|
|
930
|
+
{ label: text.policyNone, value: 'none' },
|
|
931
|
+
{ label: text.policyDynamic, value: 'dynamic' },
|
|
932
|
+
{ label: text.policyBlob, value: 'blob' },
|
|
933
|
+
{ label: text.policyProjected, value: 'projected' },
|
|
934
|
+
];
|
|
935
|
+
}
|
|
936
|
+
export function createEditorSceneShadowQualityOptions(text) {
|
|
937
|
+
return [
|
|
938
|
+
{ label: text.qualityLow, value: 'low' },
|
|
939
|
+
{ label: text.qualityMedium, value: 'medium' },
|
|
940
|
+
{ label: text.qualityHigh, value: 'high' },
|
|
941
|
+
];
|
|
942
|
+
}
|
|
943
|
+
export function createEditorSceneShadowLightOptions(text) {
|
|
944
|
+
return [
|
|
945
|
+
{ label: text.inherit, value: 'inherit' },
|
|
946
|
+
{ label: text.lightSceneMain, value: 'scene-main' },
|
|
947
|
+
{ label: text.lightNearest, value: 'nearest' },
|
|
948
|
+
{ label: text.lightExplicit, value: 'explicit' },
|
|
949
|
+
];
|
|
950
|
+
}
|
|
951
|
+
export function readEditorSceneInspectorShadowSettings(gameObject) {
|
|
952
|
+
return readEditorShadowSettingsWithLegacy({
|
|
953
|
+
shadow: gameObject.shadow,
|
|
954
|
+
shadowMode: gameObject.shadowMode,
|
|
955
|
+
}).shadow ?? {};
|
|
956
|
+
}
|
|
761
957
|
function readEditorSceneInspectorTransformVector(transform, vectorName) {
|
|
762
958
|
if (vectorName === 'scale')
|
|
763
959
|
return transform.scale ?? { x: 1, y: 1, z: 1 };
|
|
@@ -795,8 +991,58 @@ const EDITOR_SCENE_SHADOW_INSPECTOR_TEXT = {
|
|
|
795
991
|
zh: {
|
|
796
992
|
title: '阴影',
|
|
797
993
|
language: '语言',
|
|
798
|
-
|
|
994
|
+
cast: '投射阴影',
|
|
995
|
+
receive: '接收阴影',
|
|
996
|
+
policy: '阴影模式',
|
|
997
|
+
quality: '质量预设',
|
|
998
|
+
light: '阴影光源',
|
|
999
|
+
lightId: '显式光源 ID',
|
|
1000
|
+
opacity: '透明度',
|
|
1001
|
+
softness: '柔和度',
|
|
1002
|
+
bias: 'Bias',
|
|
1003
|
+
normalBias: 'Normal Bias',
|
|
1004
|
+
maxDistance: '最大距离',
|
|
1005
|
+
resolution: '分辨率',
|
|
1006
|
+
cascadeCount: '级联数量',
|
|
1007
|
+
bakeSamples: '烘焙采样',
|
|
1008
|
+
blurKernel: '模糊核',
|
|
1009
|
+
legacyMode: 'Legacy shadowMode',
|
|
799
1010
|
bakeAction: '更新烘焙结果',
|
|
1011
|
+
resolvedSource: '生效来源',
|
|
1012
|
+
resolvedPolicy: '生效策略',
|
|
1013
|
+
resolvedQuality: '生效质量',
|
|
1014
|
+
resolvedReceivers: '接收面',
|
|
1015
|
+
resolvedLight: '光源',
|
|
1016
|
+
resolvedDiagnostics: '诊断',
|
|
1017
|
+
staticBakeState: '静态烘焙状态',
|
|
1018
|
+
staticBakeAuthored: '已标记静态;请在修改后更新烘焙',
|
|
1019
|
+
staticBakeStale: '烘焙已过期',
|
|
1020
|
+
sourceShadowSettings: '当前对象 shadow.*',
|
|
1021
|
+
sourceLegacyMode: '当前对象 legacy shadowMode',
|
|
1022
|
+
sourcePrefabDefaults: 'Prefab defaults',
|
|
1023
|
+
sourceAssetDefaults: 'Source asset defaults',
|
|
1024
|
+
sourceInherited: '继承 / 项目默认',
|
|
1025
|
+
none: '无',
|
|
1026
|
+
inherit: '继承',
|
|
1027
|
+
castNone: '关闭',
|
|
1028
|
+
castEnabled: '开启',
|
|
1029
|
+
castAuto: '自动',
|
|
1030
|
+
receiveNone: '关闭',
|
|
1031
|
+
receiveEnabled: '开启',
|
|
1032
|
+
receiveAuto: '自动',
|
|
1033
|
+
policyNone: '无阴影',
|
|
1034
|
+
policyDynamic: '动态 Shadow Map',
|
|
1035
|
+
policyStatic: '静态烘焙',
|
|
1036
|
+
policyBlob: 'Blob 阴影',
|
|
1037
|
+
policyProjected: 'Projected 阴影',
|
|
1038
|
+
policyAuto: '自动',
|
|
1039
|
+
qualityLow: '高性能',
|
|
1040
|
+
qualityMedium: '平衡',
|
|
1041
|
+
qualityHigh: '高质量',
|
|
1042
|
+
qualityUltra: '超高质量',
|
|
1043
|
+
lightSceneMain: '场景主光源',
|
|
1044
|
+
lightNearest: '最近光源',
|
|
1045
|
+
lightExplicit: '指定光源',
|
|
800
1046
|
modeProjectDefault: '项目默认',
|
|
801
1047
|
modeNone: '无阴影',
|
|
802
1048
|
modeBlob: 'Blob 阴影',
|
|
@@ -815,17 +1061,106 @@ const EDITOR_SCENE_SHADOW_INSPECTOR_TEXT = {
|
|
|
815
1061
|
return '主平面阴影';
|
|
816
1062
|
return '项目默认';
|
|
817
1063
|
},
|
|
1064
|
+
summaryPolicy: (mode, mixed) => {
|
|
1065
|
+
if (mixed)
|
|
1066
|
+
return '多种策略';
|
|
1067
|
+
if (mode === 'none')
|
|
1068
|
+
return '无阴影';
|
|
1069
|
+
if (mode === 'dynamic')
|
|
1070
|
+
return '动态 Shadow Map';
|
|
1071
|
+
if (mode === 'static')
|
|
1072
|
+
return '静态烘焙';
|
|
1073
|
+
if (mode === 'blob')
|
|
1074
|
+
return 'Blob 阴影';
|
|
1075
|
+
if (mode === 'projected')
|
|
1076
|
+
return 'Projected 阴影';
|
|
1077
|
+
if (mode === 'auto')
|
|
1078
|
+
return '自动';
|
|
1079
|
+
return '继承';
|
|
1080
|
+
},
|
|
818
1081
|
tooltips: {
|
|
819
1082
|
language: '切换阴影 Inspector 的显示语言。该字段只影响编辑器,不会导出到运行时。',
|
|
820
|
-
|
|
1083
|
+
cast: '控制该对象是否投射阴影。关闭时该对象不会产生阴影。',
|
|
1084
|
+
receive: '控制该对象是否接收阴影。通常地面或平台开启,角色和道具按需要开启。',
|
|
1085
|
+
policy: '选择当前对象使用的阴影模式:无阴影、动态 Shadow Map、Blob 阴影或 Projected 阴影。',
|
|
1086
|
+
quality: '选择阴影预设:高性能、平衡或高质量。具体项目级参数在右侧 Rendering / Shadows 面板中配置。',
|
|
1087
|
+
light: '选择阴影使用的光源策略。显式光源需要填写光源 ID。',
|
|
1088
|
+
lightId: '当阴影光源为指定光源时使用。为空表示稍后由 resolver 诊断。',
|
|
1089
|
+
opacity: '覆盖阴影透明度,范围 0 到 1;为空则使用质量预设。',
|
|
1090
|
+
softness: '覆盖阴影柔和度;为空则使用质量预设。',
|
|
1091
|
+
bias: '覆盖 Shadow Map bias;为空则使用质量预设。',
|
|
1092
|
+
normalBias: '覆盖 Shadow Map normal bias;为空则使用质量预设。',
|
|
1093
|
+
maxDistance: '覆盖阴影最大作用距离;为空则使用质量预设。',
|
|
1094
|
+
resolution: '覆盖阴影贴图或烘焙分辨率;为空则使用质量预设。',
|
|
1095
|
+
cascadeCount: '覆盖动态阴影级联数量;为空则使用质量预设。',
|
|
1096
|
+
bakeSamples: '覆盖静态烘焙采样数;为空则使用质量预设。',
|
|
1097
|
+
blurKernel: '覆盖静态或 projected 阴影的模糊核大小;为空则使用质量预设。',
|
|
1098
|
+
legacyMode: '兼容旧 runtime 的 shadowMode 字段。新系统优先使用上方 Caster / Receiver / Policy / Quality / Params。',
|
|
821
1099
|
bakeAction: '重新烘焙当前场景中所有标记为静态烘焙阴影的物体,并刷新编辑器预览和运行时 artifact。',
|
|
1100
|
+
resolvedSource: '只读摘要:当前对象阴影配置主要来自对象自身、legacy 字段、Prefab/Instance 链或项目默认。',
|
|
1101
|
+
resolvedPolicy: '只读摘要:resolver 将当前 Caster / Receiver / Light / Quality 设置解析成的实际后端。',
|
|
1102
|
+
resolvedQuality: '只读摘要:resolver 使用的实际质量预设。',
|
|
1103
|
+
resolvedReceivers: '只读摘要:resolver 找到的阴影接收面对象 id。',
|
|
1104
|
+
resolvedLight: '只读摘要:resolver 找到的阴影光源 id。',
|
|
1105
|
+
resolvedDiagnostics: '只读摘要:resolver 返回的 warning/error,可用于解释为什么阴影没有显示。',
|
|
1106
|
+
staticBakeState: '静态阴影只随 owner 显隐同步;transform、light 或 source 改动后需要更新烘焙。',
|
|
822
1107
|
},
|
|
823
1108
|
},
|
|
824
1109
|
en: {
|
|
825
1110
|
title: 'Shadow',
|
|
826
1111
|
language: 'Language',
|
|
827
|
-
|
|
1112
|
+
cast: 'Cast Shadow',
|
|
1113
|
+
receive: 'Receive Shadow',
|
|
1114
|
+
policy: 'Shadow Mode',
|
|
1115
|
+
quality: 'Quality Preset',
|
|
1116
|
+
light: 'Shadow Light',
|
|
1117
|
+
lightId: 'Explicit Light ID',
|
|
1118
|
+
opacity: 'Opacity',
|
|
1119
|
+
softness: 'Softness',
|
|
1120
|
+
bias: 'Bias',
|
|
1121
|
+
normalBias: 'Normal Bias',
|
|
1122
|
+
maxDistance: 'Max Distance',
|
|
1123
|
+
resolution: 'Resolution',
|
|
1124
|
+
cascadeCount: 'Cascade Count',
|
|
1125
|
+
bakeSamples: 'Bake Samples',
|
|
1126
|
+
blurKernel: 'Blur Kernel',
|
|
1127
|
+
legacyMode: 'Legacy shadowMode',
|
|
828
1128
|
bakeAction: 'Update Bake',
|
|
1129
|
+
resolvedSource: 'Effective Source',
|
|
1130
|
+
resolvedPolicy: 'Effective Policy',
|
|
1131
|
+
resolvedQuality: 'Effective Quality',
|
|
1132
|
+
resolvedReceivers: 'Receivers',
|
|
1133
|
+
resolvedLight: 'Light',
|
|
1134
|
+
resolvedDiagnostics: 'Diagnostics',
|
|
1135
|
+
staticBakeState: 'Static Bake State',
|
|
1136
|
+
staticBakeAuthored: 'Authored static; update bake after changes',
|
|
1137
|
+
staticBakeStale: 'Bake is stale',
|
|
1138
|
+
sourceShadowSettings: 'This object shadow.*',
|
|
1139
|
+
sourceLegacyMode: 'This object legacy shadowMode',
|
|
1140
|
+
sourcePrefabDefaults: 'Prefab defaults',
|
|
1141
|
+
sourceAssetDefaults: 'Source asset defaults',
|
|
1142
|
+
sourceInherited: 'Inherited / project default',
|
|
1143
|
+
none: 'None',
|
|
1144
|
+
inherit: 'Inherit',
|
|
1145
|
+
castNone: 'Off',
|
|
1146
|
+
castEnabled: 'On',
|
|
1147
|
+
castAuto: 'Auto',
|
|
1148
|
+
receiveNone: 'Off',
|
|
1149
|
+
receiveEnabled: 'On',
|
|
1150
|
+
receiveAuto: 'Auto',
|
|
1151
|
+
policyNone: 'No Shadow',
|
|
1152
|
+
policyDynamic: 'Dynamic Shadow Map',
|
|
1153
|
+
policyStatic: 'Static Baked',
|
|
1154
|
+
policyBlob: 'Blob Shadow',
|
|
1155
|
+
policyProjected: 'Projected Shadow',
|
|
1156
|
+
policyAuto: 'Auto',
|
|
1157
|
+
qualityLow: 'High Performance',
|
|
1158
|
+
qualityMedium: 'Balanced',
|
|
1159
|
+
qualityHigh: 'High Quality',
|
|
1160
|
+
qualityUltra: 'Ultra',
|
|
1161
|
+
lightSceneMain: 'Scene Main Light',
|
|
1162
|
+
lightNearest: 'Nearest Light',
|
|
1163
|
+
lightExplicit: 'Explicit Light',
|
|
829
1164
|
modeProjectDefault: 'Project Default',
|
|
830
1165
|
modeNone: 'No Shadow',
|
|
831
1166
|
modeBlob: 'Blob Shadow',
|
|
@@ -844,10 +1179,49 @@ const EDITOR_SCENE_SHADOW_INSPECTOR_TEXT = {
|
|
|
844
1179
|
return 'Planar Shadow';
|
|
845
1180
|
return 'Project Default';
|
|
846
1181
|
},
|
|
1182
|
+
summaryPolicy: (mode, mixed) => {
|
|
1183
|
+
if (mixed)
|
|
1184
|
+
return 'Mixed policies';
|
|
1185
|
+
if (mode === 'none')
|
|
1186
|
+
return 'No Shadow';
|
|
1187
|
+
if (mode === 'dynamic')
|
|
1188
|
+
return 'Dynamic Shadow Map';
|
|
1189
|
+
if (mode === 'static')
|
|
1190
|
+
return 'Static Baked';
|
|
1191
|
+
if (mode === 'blob')
|
|
1192
|
+
return 'Blob Shadow';
|
|
1193
|
+
if (mode === 'projected')
|
|
1194
|
+
return 'Projected Shadow';
|
|
1195
|
+
if (mode === 'auto')
|
|
1196
|
+
return 'Auto';
|
|
1197
|
+
return 'Inherit';
|
|
1198
|
+
},
|
|
847
1199
|
tooltips: {
|
|
848
1200
|
language: 'Switches the display language for this Shadow inspector. This editor-only field is not exported to runtime.',
|
|
849
|
-
|
|
1201
|
+
cast: 'Controls whether this object casts shadows. Off prevents it from producing a shadow.',
|
|
1202
|
+
receive: 'Controls whether this object receives shadows. Ground and platforms usually turn this on; characters and props can opt in when needed.',
|
|
1203
|
+
policy: 'Chooses this object shadow mode: No Shadow, Dynamic Shadow Map, Blob Shadow, or Projected Shadow.',
|
|
1204
|
+
quality: 'Chooses a shadow preset: High Performance, Balanced, or High Quality. Project-level parameters live in the Rendering / Shadows panel.',
|
|
1205
|
+
light: 'Chooses the light selection policy for shadows. Explicit light requires a light id.',
|
|
1206
|
+
lightId: 'Used when Shadow Light is Explicit Light. Empty values will be diagnosed by the resolver later.',
|
|
1207
|
+
opacity: 'Overrides shadow opacity from 0 to 1. Empty uses the quality preset.',
|
|
1208
|
+
softness: 'Overrides softness. Empty uses the quality preset.',
|
|
1209
|
+
bias: 'Overrides shadow-map bias. Empty uses the quality preset.',
|
|
1210
|
+
normalBias: 'Overrides shadow-map normal bias. Empty uses the quality preset.',
|
|
1211
|
+
maxDistance: 'Overrides max shadow distance. Empty uses the quality preset.',
|
|
1212
|
+
resolution: 'Overrides map or bake resolution. Empty uses the quality preset.',
|
|
1213
|
+
cascadeCount: 'Overrides dynamic shadow cascade count. Empty uses the quality preset.',
|
|
1214
|
+
bakeSamples: 'Overrides static bake sample count. Empty uses the quality preset.',
|
|
1215
|
+
blurKernel: 'Overrides static or projected blur kernel. Empty uses the quality preset.',
|
|
1216
|
+
legacyMode: 'Compatibility field for legacy runtime shadowMode. The new system prefers Caster / Receiver / Policy / Quality / Params above.',
|
|
850
1217
|
bakeAction: 'Rebake every object authored as Static Baked Shadow in the current scene, then refresh the editor preview and runtime artifact.',
|
|
1218
|
+
resolvedSource: 'Readonly summary of whether this object is mainly using object shadow.*, legacy shadowMode, prefab/instance inheritance, or project defaults.',
|
|
1219
|
+
resolvedPolicy: 'Readonly summary of the concrete backend resolved from Caster / Receiver / Light / Quality settings.',
|
|
1220
|
+
resolvedQuality: 'Readonly summary of the quality preset used by the resolver.',
|
|
1221
|
+
resolvedReceivers: 'Readonly summary of receiver object ids selected by the resolver.',
|
|
1222
|
+
resolvedLight: 'Readonly summary of the light id selected by the resolver.',
|
|
1223
|
+
resolvedDiagnostics: 'Readonly resolver warnings/errors explaining why a shadow may not appear.',
|
|
1224
|
+
staticBakeState: 'Static shadows follow owner visibility; transform, light, or source changes require a rebake.',
|
|
851
1225
|
},
|
|
852
1226
|
},
|
|
853
1227
|
};
|