@fps-games/editor 0.1.4-beta.5 → 0.1.5-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/build-info.json +16 -16
- package/dist/local-editor-harness.d.ts +24 -5
- package/dist/local-editor-harness.d.ts.map +1 -1
- package/dist/local-editor-harness.js +457 -91
- package/dist/local-editor-harness.js.map +1 -1
- package/dist/local-editor-performance-stats.d.ts +12 -0
- package/dist/local-editor-performance-stats.d.ts.map +1 -0
- package/dist/local-editor-performance-stats.js +46 -0
- package/dist/local-editor-performance-stats.js.map +1 -0
- package/dist/playable-babylon-facade.d.ts +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.d.ts +57 -12
- package/dist/playable-babylon-rendering.d.ts.map +1 -1
- package/dist/playable-babylon-rendering.js +529 -20
- package/dist/playable-babylon-rendering.js.map +1 -1
- package/dist/playable-local-editor-host.d.ts +10 -9
- package/dist/playable-local-editor-host.d.ts.map +1 -1
- package/dist/playable-local-editor-host.js.map +1 -1
- package/dist/playable-sdk.d.ts +5 -3
- package/dist/playable-sdk.d.ts.map +1 -1
- package/dist/playable-sdk.js +3 -2
- package/dist/playable-sdk.js.map +1 -1
- package/dist/static-shadow-cpu-worker.d.ts +7 -0
- package/dist/static-shadow-cpu-worker.d.ts.map +1 -0
- package/dist/static-shadow-cpu-worker.js +221 -0
- package/dist/static-shadow-cpu-worker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts +3 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js +3 -1
- package/node_modules/@fps-games/babylon-renderer/dist/index.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts +4 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js +584 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-artifact-system.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts +61 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js +382 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-atlas.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts +47 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js +285 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-bake.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts +88 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js +813 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-baker.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts +27 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js +220 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-rendering.js.map +1 -0
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts +35 -3
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.d.ts.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js +65 -609
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/static-projected-shadow-system.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.d.ts +169 -14
- 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 +9 -3
- package/node_modules/@fps-games/babylon-renderer/dist/shadows/types.js.map +1 -1
- package/node_modules/@fps-games/babylon-renderer/package.json +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/index.d.ts +2 -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 +2 -0
- package/node_modules/@fps-games/editor-babylon/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts +34 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js +272 -0
- package/node_modules/@fps-games/editor-babylon/dist/performance-monitor.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts +26 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js +312 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-pick-resolver.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection-selection-controller.js +51 -29
- 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 +6 -0
- package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/projection.js +69 -40
- package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts +19 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js +66 -0
- package/node_modules/@fps-games/editor-babylon/dist/rendering.js.map +1 -0
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.d.ts +5 -2
- 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 +65 -32
- package/node_modules/@fps-games/editor-babylon/dist/shadow-preview-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +19 -2
- package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
- package/node_modules/@fps-games/editor-babylon/package.json +5 -5
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts +8 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js +14 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-rendering-actions.js.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-actions.d.ts +5 -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 +34 -1
- 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 +47 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.js +404 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-attach-dialog.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 +59 -0
- 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-tree.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js +10 -2
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-tree.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js +17 -0
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-icons.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js +12 -6
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-input-router.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +466 -42
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +70 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +3 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +596 -5
- package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
- package/node_modules/@fps-games/editor-browser/package.json +3 -3
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +14 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/editor-session.js +34 -10
- package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts +2 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js +11 -1
- package/node_modules/@fps-games/editor-core/dist/inspector.js.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts +7 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js +1 -0
- package/node_modules/@fps-games/editor-core/dist/serialized-object.js.map +1 -1
- package/node_modules/@fps-games/editor-core/package.json +2 -2
- package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js +10 -5
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/document.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js +3 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/asset-placement/placement.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +29 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts +10 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/document/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/field-schema/schema.js +3 -0
- 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/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/inspector/document-sections.d.ts +33 -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 +232 -16
- 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/mutation/field-patch.d.ts +12 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js +153 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/field-patch.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts +4 -2
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js +4 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/reducer.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts +19 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js +57 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/rendering-alpha-index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts +7 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/mutation/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js +620 -36
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/panel.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts +8 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js +258 -10
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/profile.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts +110 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/rendering-profile/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js +25 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/nodes.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/runtime-preview/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +4 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts +9 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js +12 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/companion-configs.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js +75 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/descriptors.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts +17 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js +262 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/inspector.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js +7 -3
- package/node_modules/@fps-games/editor-playable-sdk/dist/serialized-property/object.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts +6 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js +31 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/identity.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts +2 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/index.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.d.ts.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js +21 -9
- package/node_modules/@fps-games/editor-playable-sdk/dist/session/patches.js.map +1 -1
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts +151 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js +445 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/artifact.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.d.ts.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js +2 -0
- package/node_modules/@fps-games/editor-playable-sdk/dist/static-shadows/index.js.map +1 -0
- package/node_modules/@fps-games/editor-playable-sdk/package.json +3 -3
- package/node_modules/@fps-games/editor-protocol/package.json +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { Vector3 } from '@babylonjs/core/Maths/math.vector.js';
|
|
2
|
+
import { Texture } from '@babylonjs/core/Materials/Textures/texture.js';
|
|
3
|
+
import { Mesh } from '@babylonjs/core/Meshes/mesh.js';
|
|
4
|
+
import { VertexData } from '@babylonjs/core/Meshes/mesh.vertexData.js';
|
|
5
|
+
import { createStaticProjectedShadowMaterial, createStaticProjectedShadowQuad, createStaticProjectedShadowRoot, createStaticProjectedShadowSdfMaterial, markStaticProjectedShadowInternal, STATIC_PROJECTED_SHADOW_ALPHA_INDEX, } from './static-projected-shadow-rendering.js';
|
|
6
|
+
import { DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS, } from './types.js';
|
|
7
|
+
export function createStaticProjectedShadowArtifactSystem(scene, artifact, options = {}) {
|
|
8
|
+
return new BabylonStaticProjectedShadowArtifactSystem(scene, artifact, options);
|
|
9
|
+
}
|
|
10
|
+
class BabylonStaticProjectedShadowArtifactSystem {
|
|
11
|
+
constructor(scene, artifact, options) {
|
|
12
|
+
this.scene = scene;
|
|
13
|
+
this.chunks = new Map();
|
|
14
|
+
this.pages = new Map();
|
|
15
|
+
this.loadedTextureIds = new Set();
|
|
16
|
+
this.textureLoadEpoch = 0;
|
|
17
|
+
this.initialized = false;
|
|
18
|
+
this.diagnostics = {
|
|
19
|
+
status: 'missing',
|
|
20
|
+
reason: 'Static shadow artifact is missing.',
|
|
21
|
+
chunkCount: 0,
|
|
22
|
+
textureCount: 0,
|
|
23
|
+
};
|
|
24
|
+
this.artifact = artifact ?? null;
|
|
25
|
+
this.options = resolveStaticProjectedShadowArtifactOptions(options);
|
|
26
|
+
}
|
|
27
|
+
initialize() {
|
|
28
|
+
if (this.initialized)
|
|
29
|
+
return;
|
|
30
|
+
this.initialized = true;
|
|
31
|
+
this.rebuild();
|
|
32
|
+
}
|
|
33
|
+
setArtifact(artifact) {
|
|
34
|
+
this.artifact = artifact ?? null;
|
|
35
|
+
this.rebuild();
|
|
36
|
+
}
|
|
37
|
+
setOptions(options) {
|
|
38
|
+
this.options = resolveStaticProjectedShadowArtifactOptions(options, this.options);
|
|
39
|
+
this.rebuild();
|
|
40
|
+
}
|
|
41
|
+
getArtifact() {
|
|
42
|
+
return this.artifact;
|
|
43
|
+
}
|
|
44
|
+
getDiagnostics() {
|
|
45
|
+
return { ...this.diagnostics };
|
|
46
|
+
}
|
|
47
|
+
getChunkCount() {
|
|
48
|
+
return this.chunks.size + [...this.pages.values()].reduce((sum, page) => sum + page.chunkIds.length, 0);
|
|
49
|
+
}
|
|
50
|
+
dispose() {
|
|
51
|
+
this.textureLoadEpoch += 1;
|
|
52
|
+
this.loadedTextureIds.clear();
|
|
53
|
+
this.disposeChunks();
|
|
54
|
+
this.initialized = false;
|
|
55
|
+
this.diagnostics = {
|
|
56
|
+
status: 'missing',
|
|
57
|
+
reason: 'Static shadow artifact is missing.',
|
|
58
|
+
chunkCount: 0,
|
|
59
|
+
textureCount: 0,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
rebuild() {
|
|
63
|
+
if (!this.initialized)
|
|
64
|
+
return;
|
|
65
|
+
this.textureLoadEpoch += 1;
|
|
66
|
+
this.loadedTextureIds.clear();
|
|
67
|
+
this.disposeChunks();
|
|
68
|
+
if (!this.options.enabled) {
|
|
69
|
+
this.diagnostics = {
|
|
70
|
+
status: 'disabled',
|
|
71
|
+
reason: 'Static projected shadows are disabled.',
|
|
72
|
+
chunkCount: 0,
|
|
73
|
+
textureCount: 0,
|
|
74
|
+
};
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!this.artifact) {
|
|
78
|
+
this.diagnostics = {
|
|
79
|
+
status: 'missing',
|
|
80
|
+
reason: 'Static shadow artifact is missing.',
|
|
81
|
+
chunkCount: 0,
|
|
82
|
+
textureCount: 0,
|
|
83
|
+
};
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const artifactDiagnostic = diagnoseStaticProjectedShadowArtifact(this.artifact, this.options.expectedHashes);
|
|
87
|
+
if (artifactDiagnostic.status !== 'loaded') {
|
|
88
|
+
this.diagnostics = artifactDiagnostic;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (this.artifact.version === 2) {
|
|
92
|
+
const sdfRadiusPx = readFiniteNumberWithFallback(this.artifact.stats?.sdfRadiusPx, DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS.bake.sdfRadiusPx);
|
|
93
|
+
for (const page of this.artifact.pages) {
|
|
94
|
+
const rendered = this.createAtlasPage(page, this.artifact.chunks.filter(chunk => chunk.pageId === page.id), sdfRadiusPx);
|
|
95
|
+
if (rendered)
|
|
96
|
+
this.pages.set(rendered.id, rendered);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
for (const chunk of this.artifact.chunks) {
|
|
101
|
+
const rendered = this.createChunk(chunk);
|
|
102
|
+
if (rendered)
|
|
103
|
+
this.chunks.set(rendered.id, rendered);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const renderedChunkCount = this.artifact.version === 2
|
|
107
|
+
? [...this.pages.values()].reduce((sum, page) => sum + page.chunkIds.length, 0)
|
|
108
|
+
: this.chunks.size;
|
|
109
|
+
this.diagnostics = {
|
|
110
|
+
status: 'loaded',
|
|
111
|
+
reason: null,
|
|
112
|
+
chunkCount: renderedChunkCount,
|
|
113
|
+
textureCount: this.artifact.version === 2 ? this.pages.size : this.chunks.size,
|
|
114
|
+
...createArtifactDiagnosticStats(this.artifact, 'loaded'),
|
|
115
|
+
sourceHash: this.artifact.sourceHash,
|
|
116
|
+
lightHash: this.artifact.lightHash,
|
|
117
|
+
profileHash: this.artifact.profileHash,
|
|
118
|
+
expectedSourceHash: this.options.expectedHashes?.sourceHash ?? null,
|
|
119
|
+
expectedLightHash: this.options.expectedHashes?.lightHash ?? null,
|
|
120
|
+
expectedProfileHash: this.options.expectedHashes?.profileHash ?? null,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
createAtlasPage(page, chunks, sdfRadiusPx) {
|
|
124
|
+
const textureDataUrl = readPngDataUrl(page.sdfTextureDataUrl);
|
|
125
|
+
if (!textureDataUrl || chunks.length === 0)
|
|
126
|
+
return null;
|
|
127
|
+
const name = `staticProjectedArtifact_${sanitizeName(page.id)}`;
|
|
128
|
+
const texture = new Texture(textureDataUrl, this.scene, true, false, Texture.BILINEAR_SAMPLINGMODE);
|
|
129
|
+
texture.name = `${name}_staticProjectedShadowSdfAtlas`;
|
|
130
|
+
texture.hasAlpha = true;
|
|
131
|
+
texture.wrapU = Texture.CLAMP_ADDRESSMODE;
|
|
132
|
+
texture.wrapV = Texture.CLAMP_ADDRESSMODE;
|
|
133
|
+
texture.updateSamplingMode(Texture.BILINEAR_SAMPLINGMODE);
|
|
134
|
+
this.observeTextureReady(page.id, texture, this.textureLoadEpoch);
|
|
135
|
+
const material = createStaticProjectedShadowSdfMaterial(name, this.scene, texture, {
|
|
136
|
+
color: this.options.appearance.color,
|
|
137
|
+
blur: this.options.bake.blur,
|
|
138
|
+
sdfRadiusPx,
|
|
139
|
+
});
|
|
140
|
+
const mesh = this.createAtlasMesh(`${name}_staticProjectedShadowAtlas`, chunks);
|
|
141
|
+
if (!mesh) {
|
|
142
|
+
texture.dispose();
|
|
143
|
+
material.dispose();
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
mesh.material = material;
|
|
147
|
+
return {
|
|
148
|
+
id: page.id,
|
|
149
|
+
mesh,
|
|
150
|
+
material,
|
|
151
|
+
texture,
|
|
152
|
+
chunkIds: chunks.map(chunk => chunk.id),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
createAtlasMesh(name, chunks) {
|
|
156
|
+
const positions = [];
|
|
157
|
+
const normals = [];
|
|
158
|
+
const uvs = [];
|
|
159
|
+
const indices = [];
|
|
160
|
+
for (const chunk of chunks) {
|
|
161
|
+
const bounds = readChunkBounds(chunk);
|
|
162
|
+
if (!bounds)
|
|
163
|
+
continue;
|
|
164
|
+
const base = positions.length / 3;
|
|
165
|
+
positions.push(bounds.minX, bounds.center.y, bounds.minZ, bounds.maxX, bounds.center.y, bounds.minZ, bounds.maxX, bounds.center.y, bounds.maxZ, bounds.minX, bounds.center.y, bounds.maxZ);
|
|
166
|
+
normals.push(0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0);
|
|
167
|
+
uvs.push(chunk.atlasUv.u0, chunk.atlasUv.v0, chunk.atlasUv.u1, chunk.atlasUv.v0, chunk.atlasUv.u1, chunk.atlasUv.v1, chunk.atlasUv.u0, chunk.atlasUv.v1);
|
|
168
|
+
indices.push(base, base + 1, base + 2, base, base + 2, base + 3);
|
|
169
|
+
}
|
|
170
|
+
if (positions.length === 0)
|
|
171
|
+
return null;
|
|
172
|
+
const mesh = new Mesh(name, this.scene);
|
|
173
|
+
const vertexData = new VertexData();
|
|
174
|
+
vertexData.positions = positions;
|
|
175
|
+
vertexData.normals = normals;
|
|
176
|
+
vertexData.uvs = uvs;
|
|
177
|
+
vertexData.indices = indices;
|
|
178
|
+
vertexData.applyToMesh(mesh);
|
|
179
|
+
mesh.isPickable = false;
|
|
180
|
+
mesh.alphaIndex = STATIC_PROJECTED_SHADOW_ALPHA_INDEX;
|
|
181
|
+
markStaticProjectedShadowInternal(mesh);
|
|
182
|
+
return mesh;
|
|
183
|
+
}
|
|
184
|
+
createChunk(chunk) {
|
|
185
|
+
if (!isLegacyChunk(chunk))
|
|
186
|
+
return null;
|
|
187
|
+
const bounds = readChunkBounds(chunk);
|
|
188
|
+
if (!bounds)
|
|
189
|
+
return null;
|
|
190
|
+
const textureDataUrl = readPngDataUrl(chunk.maskTextureDataUrl);
|
|
191
|
+
if (!textureDataUrl)
|
|
192
|
+
return null;
|
|
193
|
+
const name = `staticProjectedArtifact_${sanitizeName(chunk.id)}`;
|
|
194
|
+
const texture = new Texture(textureDataUrl, this.scene, true, false, Texture.NEAREST_SAMPLINGMODE);
|
|
195
|
+
texture.name = `${name}_staticProjectedShadowMask`;
|
|
196
|
+
texture.hasAlpha = true;
|
|
197
|
+
texture.wrapU = Texture.CLAMP_ADDRESSMODE;
|
|
198
|
+
texture.wrapV = Texture.CLAMP_ADDRESSMODE;
|
|
199
|
+
texture.updateSamplingMode(Texture.NEAREST_SAMPLINGMODE);
|
|
200
|
+
this.observeTextureReady(chunk.id, texture, this.textureLoadEpoch);
|
|
201
|
+
const material = createStaticProjectedShadowMaterial(name, this.scene, texture, {
|
|
202
|
+
color: this.options.appearance.color,
|
|
203
|
+
blur: this.options.bake.blur,
|
|
204
|
+
});
|
|
205
|
+
const root = createStaticProjectedShadowRoot(name, this.scene, bounds);
|
|
206
|
+
const quad = createStaticProjectedShadowQuad(`${name}_staticProjectedShadowChunk`, this.scene, bounds);
|
|
207
|
+
quad.material = material;
|
|
208
|
+
quad.parent = root;
|
|
209
|
+
return {
|
|
210
|
+
id: chunk.id,
|
|
211
|
+
root,
|
|
212
|
+
quad,
|
|
213
|
+
material,
|
|
214
|
+
texture,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
observeTextureReady(textureId, texture, epoch) {
|
|
218
|
+
const notify = () => {
|
|
219
|
+
if (epoch !== this.textureLoadEpoch)
|
|
220
|
+
return;
|
|
221
|
+
if (this.loadedTextureIds.has(textureId))
|
|
222
|
+
return;
|
|
223
|
+
this.loadedTextureIds.add(textureId);
|
|
224
|
+
this.options.onTextureReady?.(createTextureReadyEvent({
|
|
225
|
+
textureId,
|
|
226
|
+
texture,
|
|
227
|
+
loadedTextureCount: this.loadedTextureIds.size,
|
|
228
|
+
totalTextureCount: this.getTextureCount(),
|
|
229
|
+
}));
|
|
230
|
+
};
|
|
231
|
+
const scheduleNotify = () => {
|
|
232
|
+
void Promise.resolve().then(notify);
|
|
233
|
+
};
|
|
234
|
+
if (typeof texture.isReady === 'function' && texture.isReady()) {
|
|
235
|
+
scheduleNotify();
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const observable = texture.onLoadObservable;
|
|
239
|
+
if (observable?.addOnce) {
|
|
240
|
+
observable.addOnce(scheduleNotify);
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
scheduleNotify();
|
|
244
|
+
}
|
|
245
|
+
disposeChunks() {
|
|
246
|
+
for (const chunk of this.chunks.values()) {
|
|
247
|
+
if (!chunk.quad.isDisposed())
|
|
248
|
+
chunk.quad.dispose();
|
|
249
|
+
if (!chunk.root.isDisposed())
|
|
250
|
+
chunk.root.dispose();
|
|
251
|
+
chunk.texture.dispose();
|
|
252
|
+
chunk.material.dispose();
|
|
253
|
+
}
|
|
254
|
+
this.chunks.clear();
|
|
255
|
+
for (const page of this.pages.values()) {
|
|
256
|
+
if (!page.mesh.isDisposed())
|
|
257
|
+
page.mesh.dispose();
|
|
258
|
+
page.texture.dispose();
|
|
259
|
+
page.material.dispose();
|
|
260
|
+
}
|
|
261
|
+
this.pages.clear();
|
|
262
|
+
}
|
|
263
|
+
getTextureCount() {
|
|
264
|
+
return this.chunks.size + this.pages.size;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function createTextureReadyEvent(input) {
|
|
268
|
+
return {
|
|
269
|
+
chunkId: input.textureId,
|
|
270
|
+
textureName: input.texture.name,
|
|
271
|
+
loadedTextureCount: input.loadedTextureCount,
|
|
272
|
+
totalTextureCount: input.totalTextureCount,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function isLegacyChunk(chunk) {
|
|
276
|
+
return typeof chunk.maskTextureDataUrl === 'string';
|
|
277
|
+
}
|
|
278
|
+
function resolveStaticProjectedShadowArtifactOptions(options = {}, fallback = {
|
|
279
|
+
enabled: DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS.enabled,
|
|
280
|
+
appearance: DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS.appearance,
|
|
281
|
+
bake: { blur: DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS.bake.blur },
|
|
282
|
+
expectedHashes: null,
|
|
283
|
+
onTextureReady: undefined,
|
|
284
|
+
debug: DEFAULT_STATIC_PROJECTED_SHADOW_OPTIONS.debug,
|
|
285
|
+
}) {
|
|
286
|
+
return {
|
|
287
|
+
enabled: readBoolean(options.enabled, fallback.enabled),
|
|
288
|
+
appearance: {
|
|
289
|
+
color: {
|
|
290
|
+
r: readClampedNumber(options.appearance?.color.r, fallback.appearance.color.r, 0, 1),
|
|
291
|
+
g: readClampedNumber(options.appearance?.color.g, fallback.appearance.color.g, 0, 1),
|
|
292
|
+
b: readClampedNumber(options.appearance?.color.b, fallback.appearance.color.b, 0, 1),
|
|
293
|
+
a: readClampedNumber(options.appearance?.color.a, fallback.appearance.color.a, 0, 1),
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
bake: {
|
|
297
|
+
blur: readNonNegativeNumber(options.bake?.blur, fallback.bake.blur),
|
|
298
|
+
},
|
|
299
|
+
expectedHashes: readArtifactHashInput(options.expectedHashes, fallback.expectedHashes),
|
|
300
|
+
onTextureReady: options.onTextureReady ?? fallback.onTextureReady,
|
|
301
|
+
debug: readBoolean(options.debug, fallback.debug),
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function diagnoseStaticProjectedShadowArtifact(artifact, expectedHashes) {
|
|
305
|
+
if (!Array.isArray(artifact.chunks) || artifact.version == null) {
|
|
306
|
+
return createArtifactDiagnostic('invalid', 'Static shadow artifact is invalid.', artifact, expectedHashes);
|
|
307
|
+
}
|
|
308
|
+
const shapeError = validateStaticProjectedShadowArtifactShape(artifact);
|
|
309
|
+
if (shapeError) {
|
|
310
|
+
return createArtifactDiagnostic('invalid', shapeError, artifact, expectedHashes);
|
|
311
|
+
}
|
|
312
|
+
if (!readNonEmptyString(artifact.sourceHash) || !readNonEmptyString(artifact.lightHash) || !readNonEmptyString(artifact.profileHash)) {
|
|
313
|
+
return createArtifactDiagnostic('invalid', 'Static shadow artifact is missing required hashes.', artifact, expectedHashes);
|
|
314
|
+
}
|
|
315
|
+
const chunkMismatch = findStaticProjectedShadowArtifactChunkHashMismatch(artifact);
|
|
316
|
+
if (chunkMismatch) {
|
|
317
|
+
return createArtifactDiagnostic('invalid', `Static shadow artifact chunk hash mismatch: ${chunkMismatch}.`, artifact, expectedHashes);
|
|
318
|
+
}
|
|
319
|
+
const mismatches = [
|
|
320
|
+
expectedHashes?.sourceHash && expectedHashes.sourceHash !== artifact.sourceHash ? 'source' : null,
|
|
321
|
+
expectedHashes?.lightHash && expectedHashes.lightHash !== artifact.lightHash ? 'light' : null,
|
|
322
|
+
expectedHashes?.profileHash && expectedHashes.profileHash !== artifact.profileHash ? 'profile' : null,
|
|
323
|
+
].filter((entry) => !!entry);
|
|
324
|
+
if (mismatches.length > 0) {
|
|
325
|
+
return createArtifactDiagnostic('out-of-date', `Static shadow artifact hash mismatch: ${mismatches.join(', ')}.`, artifact, expectedHashes);
|
|
326
|
+
}
|
|
327
|
+
return createArtifactDiagnostic('loaded', null, artifact, expectedHashes);
|
|
328
|
+
}
|
|
329
|
+
function validateStaticProjectedShadowArtifactShape(artifact) {
|
|
330
|
+
if (artifact.version === 1)
|
|
331
|
+
return validateLegacyStaticProjectedShadowArtifactShape(artifact);
|
|
332
|
+
if (artifact.version !== 2 || artifact.format !== 'sdf-atlas' || !Array.isArray(artifact.pages)) {
|
|
333
|
+
return 'Static shadow artifact is invalid.';
|
|
334
|
+
}
|
|
335
|
+
const pages = new Map();
|
|
336
|
+
for (const pageValue of artifact.pages) {
|
|
337
|
+
if (!isRecord(pageValue))
|
|
338
|
+
return 'Static shadow artifact atlas page is invalid.';
|
|
339
|
+
const page = pageValue;
|
|
340
|
+
const pageId = readNonEmptyString(page.id);
|
|
341
|
+
if (!pageId || pages.has(pageId) || !readPngDataUrl(page.sdfTextureDataUrl)) {
|
|
342
|
+
return 'Static shadow artifact atlas page is invalid.';
|
|
343
|
+
}
|
|
344
|
+
if (!Number.isInteger(page.width) || page.width <= 0 || !Number.isInteger(page.height) || page.height <= 0) {
|
|
345
|
+
return 'Static shadow artifact atlas page is invalid.';
|
|
346
|
+
}
|
|
347
|
+
pages.set(pageId, page);
|
|
348
|
+
}
|
|
349
|
+
const chunkIds = new Set();
|
|
350
|
+
for (const chunkValue of artifact.chunks) {
|
|
351
|
+
if (!isRecord(chunkValue))
|
|
352
|
+
return 'Static shadow artifact chunk is invalid.';
|
|
353
|
+
const chunk = chunkValue;
|
|
354
|
+
const chunkId = readNonEmptyString(chunk.id);
|
|
355
|
+
if (!chunkId || chunkIds.has(chunkId))
|
|
356
|
+
return 'Static shadow artifact chunk is invalid.';
|
|
357
|
+
chunkIds.add(chunkId);
|
|
358
|
+
const page = pages.get(readNonEmptyString(chunk.pageId) ?? '');
|
|
359
|
+
if (!page)
|
|
360
|
+
return 'Static shadow artifact chunk references a missing atlas page.';
|
|
361
|
+
if (!readChunkBounds(chunk))
|
|
362
|
+
return 'Static shadow artifact chunk bounds are invalid.';
|
|
363
|
+
if (!isValidAtlasRect(chunk, page))
|
|
364
|
+
return 'Static shadow artifact chunk atlas rect is invalid.';
|
|
365
|
+
if (!isValidAtlasUv(chunk))
|
|
366
|
+
return 'Static shadow artifact chunk atlas UV is invalid.';
|
|
367
|
+
if (!isValidSourceNodeIds(chunk.sourceNodeIds))
|
|
368
|
+
return 'Static shadow artifact chunk source ids are invalid.';
|
|
369
|
+
}
|
|
370
|
+
return null;
|
|
371
|
+
}
|
|
372
|
+
function validateLegacyStaticProjectedShadowArtifactShape(artifact) {
|
|
373
|
+
const chunkIds = new Set();
|
|
374
|
+
for (const chunkValue of artifact.chunks) {
|
|
375
|
+
if (!isRecord(chunkValue))
|
|
376
|
+
return 'Static shadow artifact chunk is invalid.';
|
|
377
|
+
const chunk = chunkValue;
|
|
378
|
+
const chunkId = readNonEmptyString(chunk.id);
|
|
379
|
+
if (!chunkId || chunkIds.has(chunkId))
|
|
380
|
+
return 'Static shadow artifact chunk is invalid.';
|
|
381
|
+
chunkIds.add(chunkId);
|
|
382
|
+
if (!readChunkBounds(chunk))
|
|
383
|
+
return 'Static shadow artifact chunk bounds are invalid.';
|
|
384
|
+
if (!readPngDataUrl(chunk.maskTextureDataUrl))
|
|
385
|
+
return 'Static shadow artifact chunk texture is invalid.';
|
|
386
|
+
if (!isValidSourceNodeIds(chunk.sourceNodeIds))
|
|
387
|
+
return 'Static shadow artifact chunk source ids are invalid.';
|
|
388
|
+
}
|
|
389
|
+
return null;
|
|
390
|
+
}
|
|
391
|
+
function isValidAtlasRect(chunk, page) {
|
|
392
|
+
const rect = chunk.atlasRect;
|
|
393
|
+
if (!rect)
|
|
394
|
+
return false;
|
|
395
|
+
if (!Number.isInteger(rect.x) || rect.x < 0 || !Number.isInteger(rect.y) || rect.y < 0)
|
|
396
|
+
return false;
|
|
397
|
+
if (!Number.isInteger(rect.width) || rect.width <= 0 || !Number.isInteger(rect.height) || rect.height <= 0)
|
|
398
|
+
return false;
|
|
399
|
+
return rect.x + rect.width <= page.width && rect.y + rect.height <= page.height;
|
|
400
|
+
}
|
|
401
|
+
function isValidAtlasUv(chunk) {
|
|
402
|
+
const uv = chunk.atlasUv;
|
|
403
|
+
if (!uv)
|
|
404
|
+
return false;
|
|
405
|
+
const values = [uv.u0, uv.v0, uv.u1, uv.v1];
|
|
406
|
+
if (!values.every(value => Number.isFinite(value) && value >= 0 && value <= 1))
|
|
407
|
+
return false;
|
|
408
|
+
return uv.u1 > uv.u0 && uv.v1 > uv.v0;
|
|
409
|
+
}
|
|
410
|
+
function isValidSourceNodeIds(value) {
|
|
411
|
+
return Array.isArray(value) && value.length > 0 && value.every(entry => !!readNonEmptyString(entry));
|
|
412
|
+
}
|
|
413
|
+
function findStaticProjectedShadowArtifactChunkHashMismatch(artifact) {
|
|
414
|
+
for (const chunk of artifact.chunks) {
|
|
415
|
+
const chunkId = readNonEmptyString(chunk.id) ?? '(unknown)';
|
|
416
|
+
if (createSourceNodeIdsHash(chunk.sourceNodeIds) !== chunk.sourceHash)
|
|
417
|
+
return `${chunkId}: source`;
|
|
418
|
+
if (chunk.lightHash !== artifact.lightHash)
|
|
419
|
+
return `${chunkId}: light`;
|
|
420
|
+
if (chunk.profileHash !== artifact.profileHash)
|
|
421
|
+
return `${chunkId}: profile`;
|
|
422
|
+
}
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
function createArtifactDiagnostic(status, reason, artifact, expectedHashes) {
|
|
426
|
+
return {
|
|
427
|
+
status,
|
|
428
|
+
reason,
|
|
429
|
+
chunkCount: status === 'loaded' ? artifact.chunks.length : 0,
|
|
430
|
+
textureCount: 0,
|
|
431
|
+
...createArtifactDiagnosticStats(artifact, status),
|
|
432
|
+
sourceHash: readNonEmptyString(artifact.sourceHash),
|
|
433
|
+
lightHash: readNonEmptyString(artifact.lightHash),
|
|
434
|
+
profileHash: readNonEmptyString(artifact.profileHash),
|
|
435
|
+
expectedSourceHash: expectedHashes?.sourceHash ?? null,
|
|
436
|
+
expectedLightHash: expectedHashes?.lightHash ?? null,
|
|
437
|
+
expectedProfileHash: expectedHashes?.profileHash ?? null,
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function createArtifactDiagnosticStats(artifact, status) {
|
|
441
|
+
if (status === 'invalid') {
|
|
442
|
+
return {
|
|
443
|
+
sourceRootCount: 0,
|
|
444
|
+
sourceMeshCount: null,
|
|
445
|
+
attemptedChunkCount: null,
|
|
446
|
+
skippedChunkCount: null,
|
|
447
|
+
pageCount: null,
|
|
448
|
+
resolution: null,
|
|
449
|
+
chunkSize: null,
|
|
450
|
+
atlasSize: null,
|
|
451
|
+
atlasUsedPixels: null,
|
|
452
|
+
atlasAllocatedPixels: null,
|
|
453
|
+
atlasOccupancy: null,
|
|
454
|
+
texelsPerMeter: null,
|
|
455
|
+
effectiveTexelsPerMeter: null,
|
|
456
|
+
maxAtlasPages: null,
|
|
457
|
+
sdfRadiusPx: null,
|
|
458
|
+
spatialChunkSize: null,
|
|
459
|
+
effectiveSpatialChunkSize: null,
|
|
460
|
+
targetChunkCount: null,
|
|
461
|
+
bakedChunkCount: null,
|
|
462
|
+
reusedChunkCount: null,
|
|
463
|
+
durationMs: null,
|
|
464
|
+
stats: null,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
const stats = artifact.stats ?? null;
|
|
468
|
+
const isV2 = artifact.version === 2;
|
|
469
|
+
const pageCount = stats?.pageCount ?? (isV2 ? artifact.pages.length : null);
|
|
470
|
+
return {
|
|
471
|
+
sourceRootCount: stats?.sourceRootCount ?? uniqueArtifactSourceNodeIds(artifact).length,
|
|
472
|
+
sourceMeshCount: stats?.sourceMeshCount ?? null,
|
|
473
|
+
attemptedChunkCount: stats?.attemptedChunkCount ?? artifact.chunks.length,
|
|
474
|
+
skippedChunkCount: stats?.skippedChunkCount ?? null,
|
|
475
|
+
pageCount,
|
|
476
|
+
resolution: stats?.resolution ?? null,
|
|
477
|
+
chunkSize: stats?.chunkSize ?? null,
|
|
478
|
+
atlasSize: stats?.atlasSize ?? null,
|
|
479
|
+
atlasUsedPixels: stats?.atlasUsedPixels ?? null,
|
|
480
|
+
atlasAllocatedPixels: stats?.atlasAllocatedPixels ?? null,
|
|
481
|
+
atlasOccupancy: stats?.atlasOccupancy ?? null,
|
|
482
|
+
texelsPerMeter: stats?.texelsPerMeter ?? null,
|
|
483
|
+
effectiveTexelsPerMeter: stats?.effectiveTexelsPerMeter ?? null,
|
|
484
|
+
maxAtlasPages: stats?.maxAtlasPages ?? null,
|
|
485
|
+
sdfRadiusPx: stats?.sdfRadiusPx ?? null,
|
|
486
|
+
spatialChunkSize: stats?.spatialChunkSize ?? null,
|
|
487
|
+
effectiveSpatialChunkSize: stats?.effectiveSpatialChunkSize ?? null,
|
|
488
|
+
targetChunkCount: stats?.targetChunkCount ?? null,
|
|
489
|
+
bakedChunkCount: stats?.bakedChunkCount ?? null,
|
|
490
|
+
reusedChunkCount: stats?.reusedChunkCount ?? null,
|
|
491
|
+
durationMs: stats?.durationMs ?? null,
|
|
492
|
+
stats,
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
function uniqueArtifactSourceNodeIds(artifact) {
|
|
496
|
+
return [...new Set(artifact.chunks.flatMap(chunk => Array.isArray(chunk.sourceNodeIds) ? chunk.sourceNodeIds : []))];
|
|
497
|
+
}
|
|
498
|
+
function readChunkBounds(chunk) {
|
|
499
|
+
const minX = readFiniteNumber(chunk.bounds?.minX);
|
|
500
|
+
const maxX = readFiniteNumber(chunk.bounds?.maxX);
|
|
501
|
+
const minZ = readFiniteNumber(chunk.bounds?.minZ);
|
|
502
|
+
const maxZ = readFiniteNumber(chunk.bounds?.maxZ);
|
|
503
|
+
const y = readFiniteNumber(chunk.bounds?.y);
|
|
504
|
+
if (minX == null || maxX == null || minZ == null || maxZ == null || y == null)
|
|
505
|
+
return null;
|
|
506
|
+
if (maxX <= minX || maxZ <= minZ)
|
|
507
|
+
return null;
|
|
508
|
+
return {
|
|
509
|
+
center: new Vector3((minX + maxX) * 0.5, y, (minZ + maxZ) * 0.5),
|
|
510
|
+
minX,
|
|
511
|
+
maxX,
|
|
512
|
+
minZ,
|
|
513
|
+
maxZ,
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function readPngDataUrl(value) {
|
|
517
|
+
return typeof value === 'string' && /^data:image\/png[;,]/i.test(value.trim())
|
|
518
|
+
? value.trim()
|
|
519
|
+
: null;
|
|
520
|
+
}
|
|
521
|
+
function readArtifactHashInput(value, fallback) {
|
|
522
|
+
if (value === null)
|
|
523
|
+
return null;
|
|
524
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
525
|
+
return fallback;
|
|
526
|
+
const hashes = value;
|
|
527
|
+
const sourceHash = readNonEmptyString(hashes.sourceHash);
|
|
528
|
+
const lightHash = readNonEmptyString(hashes.lightHash);
|
|
529
|
+
const profileHash = readNonEmptyString(hashes.profileHash);
|
|
530
|
+
if (!sourceHash && !lightHash && !profileHash)
|
|
531
|
+
return null;
|
|
532
|
+
return {
|
|
533
|
+
...(sourceHash ? { sourceHash } : {}),
|
|
534
|
+
...(lightHash ? { lightHash } : {}),
|
|
535
|
+
...(profileHash ? { profileHash } : {}),
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function readNonEmptyString(value) {
|
|
539
|
+
return typeof value === 'string' && value.trim() ? value.trim() : null;
|
|
540
|
+
}
|
|
541
|
+
function isRecord(value) {
|
|
542
|
+
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
543
|
+
}
|
|
544
|
+
function createSourceNodeIdsHash(sourceNodeIds) {
|
|
545
|
+
return createFnv1aHash([...new Set(sourceNodeIds)]);
|
|
546
|
+
}
|
|
547
|
+
function createFnv1aHash(value) {
|
|
548
|
+
const text = stableStringify(value);
|
|
549
|
+
let hash = 0x811c9dc5;
|
|
550
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
551
|
+
hash ^= text.charCodeAt(index);
|
|
552
|
+
hash = Math.imul(hash, 0x01000193);
|
|
553
|
+
}
|
|
554
|
+
return `fnv1a:${(hash >>> 0).toString(16).padStart(8, '0')}`;
|
|
555
|
+
}
|
|
556
|
+
function stableStringify(value) {
|
|
557
|
+
if (value == null || typeof value !== 'object')
|
|
558
|
+
return JSON.stringify(value);
|
|
559
|
+
if (Array.isArray(value))
|
|
560
|
+
return `[${value.map(stableStringify).join(',')}]`;
|
|
561
|
+
const entries = Object.entries(value)
|
|
562
|
+
.sort(([left], [right]) => left.localeCompare(right));
|
|
563
|
+
return `{${entries.map(([key, entry]) => `${JSON.stringify(key)}:${stableStringify(entry)}`).join(',')}}`;
|
|
564
|
+
}
|
|
565
|
+
function sanitizeName(value) {
|
|
566
|
+
return value.trim().replace(/[^a-z0-9_-]+/gi, '_') || 'chunk';
|
|
567
|
+
}
|
|
568
|
+
function readBoolean(value, fallback) {
|
|
569
|
+
return typeof value === 'boolean' ? value : fallback;
|
|
570
|
+
}
|
|
571
|
+
function readFiniteNumber(value) {
|
|
572
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : null;
|
|
573
|
+
}
|
|
574
|
+
function readFiniteNumberWithFallback(value, fallback) {
|
|
575
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
|
|
576
|
+
}
|
|
577
|
+
function readNonNegativeNumber(value, fallback) {
|
|
578
|
+
const next = readFiniteNumberWithFallback(value, fallback);
|
|
579
|
+
return next >= 0 ? next : fallback;
|
|
580
|
+
}
|
|
581
|
+
function readClampedNumber(value, fallback, min, max) {
|
|
582
|
+
return Math.min(max, Math.max(min, readFiniteNumberWithFallback(value, fallback)));
|
|
583
|
+
}
|
|
584
|
+
//# sourceMappingURL=static-projected-shadow-artifact-system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-projected-shadow-artifact-system.js","sourceRoot":"","sources":["../../src/shadows/static-projected-shadow-artifact-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEpE,OAAO,EACL,mCAAmC,EACnC,+BAA+B,EAC/B,+BAA+B,EAC/B,sCAAsC,EACtC,iCAAiC,EACjC,mCAAmC,GAEpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,uCAAuC,GAWxC,MAAM,SAAS,CAAC;AA2BjB,MAAM,UAAU,yCAAyC,CACvD,KAAY,EACZ,QAA0D,EAC1D,UAAyD,EAAE;IAE3D,OAAO,IAAI,0CAA0C,CAAC,KAAK,EAAE,QAAQ,EAAE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