@forgeax/engine-runtime 0.1.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/LICENSE +202 -0
- package/README.md +183 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/__tests__/active-camera.unit.test.d.ts +2 -0
- package/dist/__tests__/active-camera.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-add.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts +2 -0
- package/dist/__tests__/animation-graph-asset-union.test-d.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-blend.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-build.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip-missing.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-clip.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-default-path.integration.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-describe.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-nesting.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-orthogonal-weight.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-graph-slot-fill.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-nslot.unit.test.d.ts.map +1 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts +2 -0
- package/dist/__tests__/animation-slot-length-guard.unit.test.d.ts.map +1 -0
- package/dist/__tests__/append-injection.test.d.ts +2 -0
- package/dist/__tests__/append-injection.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-baseline-export.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-ci-config.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts +2 -0
- package/dist/__tests__/asi-world-smoke.unit.test.d.ts.map +1 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts +2 -0
- package/dist/__tests__/asset-registry-scene.test-d.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-binding.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-frame.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-frame.test.d.ts.map +1 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts +2 -0
- package/dist/__tests__/bind-group-cache-keying.test.d.ts.map +1 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts +2 -0
- package/dist/__tests__/block-upload-math.unit.test.d.ts.map +1 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts +2 -0
- package/dist/__tests__/builtin-shader-register-e2e.test.d.ts.map +1 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts +2 -0
- package/dist/__tests__/cache-false-eviction.test.d.ts.map +1 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts +2 -0
- package/dist/__tests__/cache-isolation-matrix.test.d.ts.map +1 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts +2 -0
- package/dist/__tests__/camera-clear-snapshot-equivalence.unit.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.browser.test.d.ts.map +1 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/clamp-to-last.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts +3 -0
- package/dist/__tests__/collect-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts +2 -0
- package/dist/__tests__/collect-subtree.unit.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-children-absent.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/collect-transient-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts +3 -0
- package/dist/__tests__/collect-transient-skip.test.d.ts.map +1 -0
- package/dist/__tests__/components.test-d.d.ts +2 -0
- package/dist/__tests__/components.test-d.d.ts.map +1 -0
- package/dist/__tests__/components.unit.test.d.ts +2 -0
- package/dist/__tests__/components.unit.test.d.ts.map +1 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts +2 -0
- package/dist/__tests__/composite-skybox-cross-world.browser.test.d.ts.map +1 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/create-renderer-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-dispose.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer-requiredFeatures.unit.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.browser-no-webgpu.test.d.ts.map +1 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts +2 -0
- package/dist/__tests__/createRenderer.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-modules-compose.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/ibl-precompute-readback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-per-instance-pbr.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/instances-uniform-fallback.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-alpha.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/material-cooked-fixture.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mesh-update.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mesh-update.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/mipmap-srgb-linear.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/tonemap.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-handle-mesh-render.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/user-mesh-upload.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts +2 -0
- package/dist/__tests__/dawn/zero-manifest-ready.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts +2 -0
- package/dist/__tests__/demo-sortscope-migration.unit.test.d.ts.map +1 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts +2 -0
- package/dist/__tests__/derive-bgl-integration.test.d.ts.map +1 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts +2 -0
- package/dist/__tests__/derive-render-data-skin.unit.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.unit.test.d.ts +2 -0
- package/dist/__tests__/dispatch-fullscreen-pass-params.unit.test.d.ts.map +1 -0
- package/dist/__tests__/draw-published.d.ts +5 -0
- package/dist/__tests__/draw-published.d.ts.map +1 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts +8 -0
- package/dist/__tests__/environment-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts +2 -0
- package/dist/__tests__/equirect-bc6h.integration.test.d.ts.map +1 -0
- package/dist/__tests__/error-exhaustive.test.d.ts +2 -0
- package/dist/__tests__/error-exhaustive.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-graceful-degradation.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-merge.test.d.ts.map +1 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts +2 -0
- package/dist/__tests__/extract-frames-reset.test.d.ts.map +1 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts +2 -0
- package/dist/__tests__/extract-record-no-hardcoded-texture-fields.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-manifest.d.ts +131 -0
- package/dist/__tests__/fog-producer-manifest.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts +42 -0
- package/dist/__tests__/fog-producer-pixel-probe.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.browser.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/fog-producer-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts +5 -0
- package/dist/__tests__/fog-producer-real-fixture.d.ts.map +1 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts +3 -0
- package/dist/__tests__/fog-producer-vfx-effect.d.ts.map +1 -0
- package/dist/__tests__/fog-scene-asset.integration.test.d.ts +2 -0
- package/dist/__tests__/fog-scene-asset.integration.test.d.ts.map +1 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/frame-targets-shadow-regression.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-bgl-depth.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-depth-params-arity.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts +2 -0
- package/dist/__tests__/fullscreen-post-process-pass.unit.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-validation-and-resize.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts +2 -0
- package/dist/__tests__/fxaa-zero-overhead.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/geometry.unit.test.d.ts +2 -0
- package/dist/__tests__/geometry.unit.test.d.ts.map +1 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts +2 -0
- package/dist/__tests__/glyph-tilemap-worldid.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-cow-survivor.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource-store-cubemap-status.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource-store-cubemap-status.test.d.ts.map +1 -0
- package/dist/__tests__/gpu-resource.test.d.ts +2 -0
- package/dist/__tests__/gpu-resource.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-bgl-slots.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-buffers.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts +2 -0
- package/dist/__tests__/hdrp-execute-filter.unit.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts +2 -0
- package/dist/__tests__/hdrp-gbuffer-attachments.browser.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts +2 -0
- package/dist/__tests__/hdrp-pipeline-asset-type.test-d.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-boundary.test.d.ts.map +1 -0
- package/dist/__tests__/hdrp-ssao-falsification.test.d.ts +2 -0
- package/dist/__tests__/hdrp-ssao-falsification.test.d.ts.map +1 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts +2 -0
- package/dist/__tests__/hello-tilemap-smoke-upgrade.unit.test.d.ts.map +1 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts +11 -0
- package/dist/__tests__/helpers/mock-shader-registry.d.ts.map +1 -0
- package/dist/__tests__/helpers/primitive-world.d.ts +8 -0
- package/dist/__tests__/helpers/primitive-world.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-runtime-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts +4 -0
- package/dist/__tests__/helpers/register-scene-components.d.ts.map +1 -0
- package/dist/__tests__/helpers/render-asset-port.d.ts +15 -0
- package/dist/__tests__/helpers/render-asset-port.d.ts.map +1 -0
- package/dist/__tests__/helpers/scene-asset-port.d.ts +9 -0
- package/dist/__tests__/helpers/scene-asset-port.d.ts.map +1 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts +6 -0
- package/dist/__tests__/helpers/tilemap-assets.d.ts.map +1 -0
- package/dist/__tests__/instances.test-d.d.ts +2 -0
- package/dist/__tests__/instances.test-d.d.ts.map +1 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts +2 -0
- package/dist/__tests__/light-attenuation-formula.test.d.ts.map +1 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts +2 -0
- package/dist/__tests__/light-casters-9-light.browser.test.d.ts.map +1 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts +2 -0
- package/dist/__tests__/light-gpu-byte-neutral.unit.test.d.ts.map +1 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts +2 -0
- package/dist/__tests__/light-snapshot.test-d.d.ts.map +1 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/lights-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/lights.unit.test.d.ts +2 -0
- package/dist/__tests__/lights.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts +2 -0
- package/dist/__tests__/m3-vec-negative.unit.test.d.ts.map +1 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts +2 -0
- package/dist/__tests__/m5-browser-dawn-sweep.integration.test.d.ts.map +1 -0
- package/dist/__tests__/material-derived-coordinates.integration.test.d.ts +2 -0
- package/dist/__tests__/material-derived-coordinates.integration.test.d.ts.map +1 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts +2 -0
- package/dist/__tests__/material-texture-uv-scale.unit.test.d.ts.map +1 -0
- package/dist/__tests__/materials.unit.test.d.ts +2 -0
- package/dist/__tests__/materials.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts +2 -0
- package/dist/__tests__/mesh-ssbo-grow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts +2 -0
- package/dist/__tests__/mip-gate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/msaa-sprite-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts +2 -0
- package/dist/__tests__/multi-uv-8set.e2e.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/name.unit.test.d.ts +2 -0
- package/dist/__tests__/name.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts +2 -0
- package/dist/__tests__/pass-selector.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pbr-pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-builder-msaa.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline-cache-keying.unit.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-layout-selection.test.d.ts +2 -0
- package/dist/__tests__/pipeline-layout-selection.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline-spec.test.d.ts +2 -0
- package/dist/__tests__/pipeline-spec.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline.unit.test.d.ts +2 -0
- package/dist/__tests__/pipeline.unit.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.browser.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts +2 -0
- package/dist/__tests__/point-light-shadow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-error-codes.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-component.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/post-process-params-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/post-process-reads-narrowing.test-d.d.ts +2 -0
- package/dist/__tests__/post-process-reads-narrowing.test-d.d.ts.map +1 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.test.d.ts +2 -0
- package/dist/__tests__/post-process-register-roundtrip.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts +2 -0
- package/dist/__tests__/postprocess-camera-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts +2 -0
- package/dist/__tests__/profiler-assembly.integration.test.d.ts.map +1 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts +2 -0
- package/dist/__tests__/propagate-transforms.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts +2 -0
- package/dist/__tests__/record-worldid-isolation.test.d.ts.map +1 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/recover-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/render-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-assembly.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics-docs.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-prepared-graphics.regression.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts +2 -0
- package/dist/__tests__/render-feature-recover.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts +2 -0
- package/dist/__tests__/render-feature-runtime-surface.test-d.d.ts.map +1 -0
- package/dist/__tests__/render-feature-zero-feature.browser.test.d.ts +2 -0
- package/dist/__tests__/render-feature-zero-feature.browser.test.d.ts.map +1 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-pipeline-trivial.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts +2 -0
- package/dist/__tests__/render-schema-consumer.integration.test.d.ts.map +1 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/render-schema-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts +2 -0
- package/dist/__tests__/render-system-cross-world-overlay-queue.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract-dispatch-ordering.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-extract.test.d.ts +2 -0
- package/dist/__tests__/render-system-extract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-bucket.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-fallback.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-material.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-metrics.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-modegate.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold-scene-instances.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts +2 -0
- package/dist/__tests__/render-system-fold.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-mega.test.d.ts +2 -0
- package/dist/__tests__/render-system-mega.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts +2 -0
- package/dist/__tests__/render-system-owner-split-contract.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-multi-material-textureview.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts +2 -0
- package/dist/__tests__/render-system-record-per-submesh-transparency.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-record.unit.test.d.ts.map +1 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts +2 -0
- package/dist/__tests__/render-system-skin-bg.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-consumer.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-health.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts +2 -0
- package/dist/__tests__/renderer-lifecycle.integration.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-recover.unit.test.d.ts.map +1 -0
- package/dist/__tests__/renderer-result.test-d.d.ts +2 -0
- package/dist/__tests__/renderer-result.test-d.d.ts.map +1 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts +2 -0
- package/dist/__tests__/renderer-surface.unit.test.d.ts.map +1 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts +2 -0
- package/dist/__tests__/resolve-depth-only-view.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-command-flow.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-noop-behavior.unit.test.d.ts.map +1 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts +2 -0
- package/dist/__tests__/rhi-null-renderer-lifecycle.unit.test.d.ts.map +1 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/roots-to-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-authority-scan.unit.test.d.ts.map +1 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts +2 -0
- package/dist/__tests__/runtime-domain-residue.unit.test.d.ts.map +1 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/scene-equirect-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-bridge.integration.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instance-component.test.d.ts +2 -0
- package/dist/__tests__/scene-instance-component.test.d.ts.map +1 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts +2 -0
- package/dist/__tests__/scene-instantiate-cycle-runtime.test.d.ts.map +1 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts +2 -0
- package/dist/__tests__/serialize-scene-asset.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts +2 -0
- package/dist/__tests__/shadow-caster-empty-schema.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-blend.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-cascade-loadop.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-caster-membership.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-caster-membership.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-component.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-extract.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-orthoz.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-pssm.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-pssm.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-runtime-vary.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-shader.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-temporal.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-temporal.browser.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-tile-consistency.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-ubo.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.browser.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-csm-viewport.test.d.ts +2 -0
- package/dist/__tests__/shadow-csm-viewport.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-fields-observable.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m1.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m2.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m2.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3-calibrate-run.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts +83 -0
- package/dist/__tests__/shadow-m3-calibrate.d.ts.map +1 -0
- package/dist/__tests__/shadow-m3.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-m3.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts +2 -0
- package/dist/__tests__/shadow-mesh-ssbo-order.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-probe-control-flow.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-probe-control-flow.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.test.d.ts +2 -0
- package/dist/__tests__/shadow-quality-metrics.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts +11 -0
- package/dist/__tests__/skin-error-exhaustive.test-d.d.ts.map +1 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-errors.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts +2 -0
- package/dist/__tests__/skin-extract-getarrayview-count.unit.test.d.ts.map +1 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts +14 -0
- package/dist/__tests__/skin-parented-double-transform.test.d.ts.map +1 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts +2 -0
- package/dist/__tests__/skylight-lazy-projection.test.d.ts.map +1 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts +2 -0
- package/dist/__tests__/sparse-tag-scene-roundtrip.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts +2 -0
- package/dist/__tests__/sprite-cullmode-flip.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-bgl-byte-identical.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-extract-branch.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts +2 -0
- package/dist/__tests__/sprite-lit-pipeline-cache-key.test.d.ts.map +1 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts +2 -0
- package/dist/__tests__/sprite-param-values.test-d.d.ts.map +1 -0
- package/dist/__tests__/ssao-bgl.test.d.ts +2 -0
- package/dist/__tests__/ssao-bgl.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-buffers.test.d.ts +2 -0
- package/dist/__tests__/ssao-buffers.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-data.test.d.ts +2 -0
- package/dist/__tests__/ssao-data.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-errors.test.d.ts +2 -0
- package/dist/__tests__/ssao-errors.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-manifest.test.d.ts +2 -0
- package/dist/__tests__/ssao-manifest.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-passes.test.d.ts +2 -0
- package/dist/__tests__/ssao-passes.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts +2 -0
- package/dist/__tests__/ssao-pipelines.test.d.ts.map +1 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts +2 -0
- package/dist/__tests__/ssao-uniform-layout.test.d.ts.map +1 -0
- package/dist/__tests__/static-rig.integration.test.d.ts +2 -0
- package/dist/__tests__/static-rig.integration.test.d.ts.map +1 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts +2 -0
- package/dist/__tests__/stencil-outline-pixel.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts +2 -0
- package/dist/__tests__/swap-chain-format.unit.test.d.ts.map +1 -0
- package/dist/__tests__/systems.unit.test.d.ts +2 -0
- package/dist/__tests__/systems.unit.test.d.ts.map +1 -0
- package/dist/__tests__/temporal-off-path.unit.test.d.ts +2 -0
- package/dist/__tests__/temporal-off-path.unit.test.d.ts.map +1 -0
- package/dist/__tests__/text.unit.test.d.ts +2 -0
- package/dist/__tests__/text.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts +2 -0
- package/dist/__tests__/tilemap-childed-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.overhang-bounds.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.propagate-order.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-extract.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-chunk-y-sort-bench.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts +2 -0
- package/dist/__tests__/tilemap-dirty-rebuild.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts +2 -0
- package/dist/__tests__/tilemap-material-cache.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts +2 -0
- package/dist/__tests__/tilemap-multi-atlas.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts +2 -0
- package/dist/__tests__/tilemap-owner-boundary.unit.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts +2 -0
- package/dist/__tests__/tilemap-region-pack.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts +2 -0
- package/dist/__tests__/tilemap-spawn-flip-pivot.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts +2 -0
- package/dist/__tests__/tilemap-uv-inset.test.d.ts.map +1 -0
- package/dist/__tests__/tilemap-validate.test.d.ts +2 -0
- package/dist/__tests__/tilemap-validate.test.d.ts.map +1 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts +2 -0
- package/dist/__tests__/transform-hierarchy-pixel-diff.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts +2 -0
- package/dist/__tests__/transient-fields-collect.test.d.ts.map +1 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts +2 -0
- package/dist/__tests__/transitional-authoring.integration.test.d.ts.map +1 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts +2 -0
- package/dist/__tests__/transparent-sort-tilemap-sprite-interleave.test.d.ts.map +1 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts +2 -0
- package/dist/__tests__/variant-selection.unit.test.d.ts.map +1 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts +2 -0
- package/dist/__tests__/vertex-attribute-layout.test.d.ts.map +1 -0
- package/dist/__tests__/video-cache-regression.unit.test.d.ts +2 -0
- package/dist/__tests__/video-cache-regression.unit.test.d.ts.map +1 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts +2 -0
- package/dist/__tests__/video-extract-bindgroup.dawn.test.d.ts.map +1 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts +2 -0
- package/dist/__tests__/view-ubo-layout.browser.test.d.ts.map +1 -0
- package/dist/__tests__/world-entity-key.test.d.ts +2 -0
- package/dist/__tests__/world-entity-key.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts +2 -0
- package/dist/__tests__/world-scene-despawn.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts +2 -0
- package/dist/__tests__/world-scene-instantiate.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-nested.test.d.ts +2 -0
- package/dist/__tests__/world-scene-nested.test.d.ts.map +1 -0
- package/dist/__tests__/world-scene-override.test.d.ts +2 -0
- package/dist/__tests__/world-scene-override.test.d.ts.map +1 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts +2 -0
- package/dist/__tests__/zero-compression-zero-load.integration.test.d.ts.map +1 -0
- package/dist/asset-contributions.d.ts +3 -0
- package/dist/asset-contributions.d.ts.map +1 -0
- package/dist/asset-kind.d.ts +4 -0
- package/dist/asset-kind.d.ts.map +1 -0
- package/dist/collect-scene-asset.d.ts +16 -0
- package/dist/collect-scene-asset.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test-d.d.ts +2 -0
- package/dist/components/__tests__/camera.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/camera.test.d.ts +2 -0
- package/dist/components/__tests__/camera.test.d.ts.map +1 -0
- package/dist/components/__tests__/child-of.test.d.ts +2 -0
- package/dist/components/__tests__/child-of.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-animation.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts +2 -0
- package/dist/components/__tests__/sprite-instances.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts +2 -0
- package/dist/components/__tests__/sprite-region-override.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts +2 -0
- package/dist/components/__tests__/tile-layer.unit.test.d.ts.map +1 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts +2 -0
- package/dist/components/__tests__/tilemap.test-d.d.ts.map +1 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts +2 -0
- package/dist/components/__tests__/transform-vec-schema.test.d.ts.map +1 -0
- package/dist/create-renderer-env-classify.d.ts +21 -0
- package/dist/create-renderer-env-classify.d.ts.map +1 -0
- package/dist/createRenderer.d.ts +3 -0
- package/dist/createRenderer.d.ts.map +1 -0
- package/dist/dev-import-transport.d.ts +24 -0
- package/dist/dev-import-transport.d.ts.map +1 -0
- package/dist/errors/environment.d.ts +2 -0
- package/dist/errors/environment.d.ts.map +1 -0
- package/dist/errors/sprite-animation.d.ts +3 -0
- package/dist/errors/sprite-animation.d.ts.map +1 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +814 -0
- package/dist/index.mjs.map +1 -0
- package/dist/scene-asset-port.d.ts +17 -0
- package/dist/scene-asset-port.d.ts.map +1 -0
- package/dist/scene-collect-errors.d.ts +22 -0
- package/dist/scene-collect-errors.d.ts.map +1 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts +2 -0
- package/dist/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.d.ts.map +1 -0
- package/dist/scene-utils/mount-override-fold.d.ts +16 -0
- package/dist/scene-utils/mount-override-fold.d.ts.map +1 -0
- package/dist/shadow-m3-calibrate.d.ts +40 -0
- package/dist/shadow-m3-calibrate.d.ts.map +1 -0
- package/dist/sprite-param-values.d.ts +62 -0
- package/dist/sprite-param-values.d.ts.map +1 -0
- package/dist/systems/__tests__/_xorshift.d.ts +28 -0
- package/dist/systems/__tests__/_xorshift.d.ts.map +1 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts +2 -0
- package/dist/systems/__tests__/argsort-in-place.test.d.ts.map +1 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts +2 -0
- package/dist/systems/__tests__/transparent-sort.bench.d.ts.map +1 -0
- package/dist/systems/sprite-animation-tick.d.ts +50 -0
- package/dist/systems/sprite-animation-tick.d.ts.map +1 -0
- package/dist/systems/tonemap.d.ts +27 -0
- package/dist/systems/tonemap.d.ts.map +1 -0
- package/dist/systems/transparent-sort.d.ts +51 -0
- package/dist/systems/transparent-sort.d.ts.map +1 -0
- package/dist/tilemap-register-validate.d.ts +21 -0
- package/dist/tilemap-register-validate.d.ts.map +1 -0
- package/package.json +100 -0
- package/src/__tests__/active-camera.unit.test.ts +193 -0
- package/src/__tests__/animation-graph-add.unit.test.ts +67 -0
- package/src/__tests__/animation-graph-asset-union.test-d.ts +83 -0
- package/src/__tests__/animation-graph-blend.unit.test.ts +66 -0
- package/src/__tests__/animation-graph-build.unit.test.ts +100 -0
- package/src/__tests__/animation-graph-clip-missing.unit.test.ts +62 -0
- package/src/__tests__/animation-graph-clip.unit.test.ts +77 -0
- package/src/__tests__/animation-graph-default-path.integration.test.ts +65 -0
- package/src/__tests__/animation-graph-describe.unit.test.ts +68 -0
- package/src/__tests__/animation-graph-errors.unit.test.ts +75 -0
- package/src/__tests__/animation-graph-nesting.unit.test.ts +84 -0
- package/src/__tests__/animation-graph-orthogonal-weight.unit.test.ts +98 -0
- package/src/__tests__/animation-graph-slot-fill.unit.test.ts +95 -0
- package/src/__tests__/animation-nslot.unit.test.ts +63 -0
- package/src/__tests__/animation-slot-length-guard.unit.test.ts +81 -0
- package/src/__tests__/append-injection.test.ts +105 -0
- package/src/__tests__/asi-world-baseline-export.unit.test.ts +173 -0
- package/src/__tests__/asi-world-ci-config.unit.test.ts +186 -0
- package/src/__tests__/asi-world-smoke.unit.test.ts +192 -0
- package/src/__tests__/asset-registry-scene.test-d.ts +49 -0
- package/src/__tests__/bind-group-cache-binding.test.ts +2513 -0
- package/src/__tests__/bind-group-cache-frame.test.ts +1511 -0
- package/src/__tests__/bind-group-cache-keying.test.ts +295 -0
- package/src/__tests__/block-upload-math.unit.test.ts +192 -0
- package/src/__tests__/builtin-shader-register-e2e.test.ts +151 -0
- package/src/__tests__/cache-false-eviction.test.ts +126 -0
- package/src/__tests__/cache-isolation-matrix.test.ts +182 -0
- package/src/__tests__/camera-clear-snapshot-equivalence.unit.test.ts +76 -0
- package/src/__tests__/clamp-to-last.e2e.browser.test.ts +183 -0
- package/src/__tests__/clamp-to-last.e2e.dawn.test.ts +325 -0
- package/src/__tests__/collect-scene-asset.test.ts +876 -0
- package/src/__tests__/collect-subtree.unit.test.ts +76 -0
- package/src/__tests__/collect-transient-children-absent.test.ts +154 -0
- package/src/__tests__/collect-transient-roundtrip.test.ts +245 -0
- package/src/__tests__/collect-transient-skip.test.ts +165 -0
- package/src/__tests__/components.test-d.ts +236 -0
- package/src/__tests__/components.unit.test.ts +2665 -0
- package/src/__tests__/composite-skybox-cross-world.browser.test.ts +378 -0
- package/src/__tests__/create-renderer-assembly.integration.test.ts +42 -0
- package/src/__tests__/createRenderer-dispose.test.ts +416 -0
- package/src/__tests__/createRenderer-requiredFeatures.unit.test.ts +134 -0
- package/src/__tests__/createRenderer.browser-no-webgpu.test.ts +59 -0
- package/src/__tests__/createRenderer.unit.test.ts +231 -0
- package/src/__tests__/dawn/hello-sprite-nineslice-section.dawn.test.ts +393 -0
- package/src/__tests__/dawn/ibl-compose.dawn.test.ts +151 -0
- package/src/__tests__/dawn/ibl-modules-compose.dawn.test.ts +223 -0
- package/src/__tests__/dawn/ibl-precompute-readback.dawn.test.ts +241 -0
- package/src/__tests__/dawn/instances-per-instance-pbr.dawn.test.ts +611 -0
- package/src/__tests__/dawn/instances-shadow.dawn.test.ts +443 -0
- package/src/__tests__/dawn/instances-uniform-fallback.dawn.test.ts +313 -0
- package/src/__tests__/dawn/material-alpha.dawn.test.ts +304 -0
- package/src/__tests__/dawn/material-cooked-fixture.dawn.test.ts +64 -0
- package/src/__tests__/dawn/mesh-ssbo-normal-matrix.dawn.test.ts +106 -0
- package/src/__tests__/dawn/mesh-update.dawn.test.ts +342 -0
- package/src/__tests__/dawn/mipmap-srgb-linear.dawn.test.ts +117 -0
- package/src/__tests__/dawn/per-entity-material-texture-isolation.dawn.test.ts +567 -0
- package/src/__tests__/dawn/sprite-nineslice-mesh-bind.dawn.test.ts +251 -0
- package/src/__tests__/dawn/tonemap.dawn.test.ts +107 -0
- package/src/__tests__/dawn/user-handle-mesh-render.dawn.test.ts +291 -0
- package/src/__tests__/dawn/user-mesh-upload.dawn.test.ts +204 -0
- package/src/__tests__/dawn/zero-manifest-mesh-fail.dawn.test.ts +122 -0
- package/src/__tests__/dawn/zero-manifest-ready.dawn.test.ts +99 -0
- package/src/__tests__/demo-sortscope-migration.unit.test.ts +115 -0
- package/src/__tests__/derive-bgl-integration.test.ts +398 -0
- package/src/__tests__/derive-render-data-skin.unit.test.ts +90 -0
- package/src/__tests__/dispatch-fullscreen-pass-composite-swapchain.dawn.test.ts +204 -0
- package/src/__tests__/dispatch-fullscreen-pass-custom-reads.dawn.test.ts +297 -0
- package/src/__tests__/dispatch-fullscreen-pass-depth-composite.dawn.test.ts +271 -0
- package/src/__tests__/dispatch-fullscreen-pass-params.unit.test.ts +321 -0
- package/src/__tests__/draw-published.ts +10 -0
- package/src/__tests__/environment-error-exhaustive.test-d.ts +28 -0
- package/src/__tests__/equirect-bc6h.integration.test.ts +35 -0
- package/src/__tests__/error-exhaustive.test.ts +220 -0
- package/src/__tests__/extract-frames-graceful-degradation.test.ts +298 -0
- package/src/__tests__/extract-frames-merge.test.ts +643 -0
- package/src/__tests__/extract-frames-reset.test.ts +158 -0
- package/src/__tests__/extract-record-no-hardcoded-texture-fields.test.ts +92 -0
- package/src/__tests__/fog-producer-manifest.ts +162 -0
- package/src/__tests__/fog-producer-pixel-probe.ts +263 -0
- package/src/__tests__/fog-producer-pixel.browser.test.ts +26 -0
- package/src/__tests__/fog-producer-pixel.dawn.test.ts +55 -0
- package/src/__tests__/fog-producer-real-fixture.ts +805 -0
- package/src/__tests__/fog-producer-vfx-effect.ts +272 -0
- package/src/__tests__/fog-scene-asset.integration.test.ts +123 -0
- package/src/__tests__/frame-targets-shadow-regression.unit.test.ts +28 -0
- package/src/__tests__/fullscreen-post-bgl-depth.test.ts +131 -0
- package/src/__tests__/fullscreen-post-depth-params-arity.test.ts +84 -0
- package/src/__tests__/fullscreen-post-process-pass.dawn.test.ts +320 -0
- package/src/__tests__/fullscreen-post-process-pass.unit.test.ts +107 -0
- package/src/__tests__/fxaa-pixel-diff.dawn.test.ts +292 -0
- package/src/__tests__/fxaa-validation-and-resize.dawn.test.ts +358 -0
- package/src/__tests__/fxaa-zero-overhead.dawn.test.ts +254 -0
- package/src/__tests__/geometry.unit.test.ts +2265 -0
- package/src/__tests__/glyph-tilemap-worldid.test.ts +146 -0
- package/src/__tests__/gpu-resource-cow-survivor.test.ts +388 -0
- package/src/__tests__/gpu-resource-store-cubemap-status.test.ts +207 -0
- package/src/__tests__/gpu-resource.test.ts +1206 -0
- package/src/__tests__/hdrp-bgl-slots.browser.test.ts +50 -0
- package/src/__tests__/hdrp-buffers.unit.test.ts +70 -0
- package/src/__tests__/hdrp-execute-filter.unit.test.ts +200 -0
- package/src/__tests__/hdrp-gbuffer-attachments.browser.test.ts +64 -0
- package/src/__tests__/hdrp-pipeline-asset-type.test-d.ts +139 -0
- package/src/__tests__/hdrp-ssao-boundary.test.ts +237 -0
- package/src/__tests__/hdrp-ssao-falsification.test.ts +289 -0
- package/src/__tests__/hello-tilemap-smoke-upgrade.unit.test.ts +147 -0
- package/src/__tests__/helpers/mock-shader-registry.ts +139 -0
- package/src/__tests__/helpers/primitive-world.ts +91 -0
- package/src/__tests__/helpers/register-runtime-components.ts +69 -0
- package/src/__tests__/helpers/register-scene-components.ts +10 -0
- package/src/__tests__/helpers/render-asset-port.ts +65 -0
- package/src/__tests__/helpers/scene-asset-port.ts +23 -0
- package/src/__tests__/helpers/tilemap-assets.ts +29 -0
- package/src/__tests__/instances.test-d.ts +61 -0
- package/src/__tests__/light-attenuation-formula.test.ts +171 -0
- package/src/__tests__/light-casters-9-light.browser.test.ts +880 -0
- package/src/__tests__/light-gpu-byte-neutral.unit.test.ts +163 -0
- package/src/__tests__/light-snapshot.test-d.ts +84 -0
- package/src/__tests__/lights-vec-negative.unit.test.ts +52 -0
- package/src/__tests__/lights.unit.test.ts +2936 -0
- package/src/__tests__/m3-vec-negative.unit.test.ts +45 -0
- package/src/__tests__/m5-browser-dawn-sweep.integration.test.ts +8 -0
- package/src/__tests__/material-derived-coordinates.integration.test.ts +100 -0
- package/src/__tests__/material-texture-uv-scale.unit.test.ts +49 -0
- package/src/__tests__/materials.unit.test.ts +271 -0
- package/src/__tests__/mesh-ssbo-grow.unit.test.ts +244 -0
- package/src/__tests__/mip-gate.unit.test.ts +79 -0
- package/src/__tests__/msaa-sprite-pixel-diff.dawn.test.ts +406 -0
- package/src/__tests__/multi-uv-8set.e2e.dawn.test.ts +296 -0
- package/src/__tests__/name.unit.test.ts +123 -0
- package/src/__tests__/node-shims.d.ts +33 -0
- package/src/__tests__/pass-selector.unit.test.ts +102 -0
- package/src/__tests__/pbr-pipeline.unit.test.ts +204 -0
- package/src/__tests__/pipeline-builder-msaa.unit.test.ts +224 -0
- package/src/__tests__/pipeline-cache-keying.unit.test.ts +316 -0
- package/src/__tests__/pipeline-layout-selection.test.ts +298 -0
- package/src/__tests__/pipeline-spec.test.ts +1061 -0
- package/src/__tests__/pipeline.unit.test.ts +6974 -0
- package/src/__tests__/point-light-shadow.browser.test.ts +278 -0
- package/src/__tests__/point-light-shadow.dawn.test.ts +822 -0
- package/src/__tests__/point-light-shadow.unit.test.ts +716 -0
- package/src/__tests__/post-process-error-codes.unit.test.ts +158 -0
- package/src/__tests__/post-process-params-component.unit.test.ts +153 -0
- package/src/__tests__/post-process-params-extract.unit.test.ts +100 -0
- package/src/__tests__/post-process-reads-narrowing.test-d.ts +52 -0
- package/src/__tests__/post-process-register-roundtrip.dawn.test.ts +230 -0
- package/src/__tests__/postprocess-camera-consistency.test.ts +378 -0
- package/src/__tests__/profiler-assembly.integration.test.ts +74 -0
- package/src/__tests__/propagate-transforms.dawn.test.ts +253 -0
- package/src/__tests__/record-worldid-isolation.test.ts +247 -0
- package/src/__tests__/recover-error-exhaustive.test-d.ts +35 -0
- package/src/__tests__/render-error-exhaustive.test-d.ts +245 -0
- package/src/__tests__/render-feature-assembly.test-d.ts +28 -0
- package/src/__tests__/render-feature-prepared-graphics-docs.unit.test.ts +124 -0
- package/src/__tests__/render-feature-prepared-graphics.browser.test.ts +582 -0
- package/src/__tests__/render-feature-prepared-graphics.dawn.test.ts +602 -0
- package/src/__tests__/render-feature-prepared-graphics.integration.test.ts +264 -0
- package/src/__tests__/render-feature-prepared-graphics.regression.integration.test.ts +361 -0
- package/src/__tests__/render-feature-recover.integration.test.ts +142 -0
- package/src/__tests__/render-feature-runtime-surface.test-d.ts +45 -0
- package/src/__tests__/render-feature-zero-feature.browser.test.ts +152 -0
- package/src/__tests__/render-pipeline-trivial.dawn.test.ts +525 -0
- package/src/__tests__/render-schema-consumer.integration.test.ts +25 -0
- package/src/__tests__/render-schema-owner-boundary.unit.test.ts +26 -0
- package/src/__tests__/render-system-cross-world-overlay-queue.test.ts +172 -0
- package/src/__tests__/render-system-extract-dispatch-ordering.test.ts +322 -0
- package/src/__tests__/render-system-extract.test.ts +1399 -0
- package/src/__tests__/render-system-fold-bucket.unit.test.ts +288 -0
- package/src/__tests__/render-system-fold-fallback.unit.test.ts +148 -0
- package/src/__tests__/render-system-fold-material.unit.test.ts +145 -0
- package/src/__tests__/render-system-fold-metrics.unit.test.ts +170 -0
- package/src/__tests__/render-system-fold-modegate.unit.test.ts +166 -0
- package/src/__tests__/render-system-fold-scene-instances.unit.test.ts +51 -0
- package/src/__tests__/render-system-fold.dawn.test.ts +306 -0
- package/src/__tests__/render-system-mega.test.ts +1578 -0
- package/src/__tests__/render-system-owner-split-contract.test.ts +200 -0
- package/src/__tests__/render-system-record-multi-material-textureview.test.ts +684 -0
- package/src/__tests__/render-system-record-per-submesh-transparency.test.ts +464 -0
- package/src/__tests__/render-system-record.test.ts +1505 -0
- package/src/__tests__/render-system-record.unit.test.ts +270 -0
- package/src/__tests__/render-system-skin-bg.unit.test.ts +147 -0
- package/src/__tests__/renderer-consumer.test-d.ts +5 -0
- package/src/__tests__/renderer-health.unit.test.ts +935 -0
- package/src/__tests__/renderer-lifecycle.integration.test.ts +29 -0
- package/src/__tests__/renderer-recover.unit.test.ts +1075 -0
- package/src/__tests__/renderer-result.test-d.ts +26 -0
- package/src/__tests__/renderer-surface.unit.test.ts +416 -0
- package/src/__tests__/resolve-depth-only-view.test.ts +173 -0
- package/src/__tests__/rhi-null-command-flow.unit.test.ts +273 -0
- package/src/__tests__/rhi-null-noop-behavior.unit.test.ts +196 -0
- package/src/__tests__/rhi-null-renderer-lifecycle.unit.test.ts +182 -0
- package/src/__tests__/roots-to-scene-asset.test.ts +605 -0
- package/src/__tests__/runtime-authority-scan.unit.test.ts +19 -0
- package/src/__tests__/runtime-domain-residue.unit.test.ts +13 -0
- package/src/__tests__/scene-equirect-roundtrip.test.ts +33 -0
- package/src/__tests__/scene-instance-bridge.integration.test.ts +8 -0
- package/src/__tests__/scene-instance-component.test.ts +45 -0
- package/src/__tests__/scene-instantiate-cycle-runtime.test.ts +66 -0
- package/src/__tests__/serialize-scene-asset.test.ts +336 -0
- package/src/__tests__/shadow-caster-empty-schema.test.ts +83 -0
- package/src/__tests__/shadow-csm-atlas.test.ts +178 -0
- package/src/__tests__/shadow-csm-blend.dawn.test.ts +230 -0
- package/src/__tests__/shadow-csm-cascade-loadop.test.ts +334 -0
- package/src/__tests__/shadow-csm-caster-membership.test.ts +232 -0
- package/src/__tests__/shadow-csm-component.test.ts +286 -0
- package/src/__tests__/shadow-csm-extract.test.ts +334 -0
- package/src/__tests__/shadow-csm-orthoz.test.ts +151 -0
- package/src/__tests__/shadow-csm-pssm.test.ts +142 -0
- package/src/__tests__/shadow-csm-runtime-vary.dawn.test.ts +198 -0
- package/src/__tests__/shadow-csm-shader.dawn.test.ts +358 -0
- package/src/__tests__/shadow-csm-temporal.browser.test.ts +145 -0
- package/src/__tests__/shadow-csm-tile-consistency.test.ts +419 -0
- package/src/__tests__/shadow-csm-ubo.dawn.test.ts +293 -0
- package/src/__tests__/shadow-csm-ubo.test.ts +300 -0
- package/src/__tests__/shadow-csm-viewport.browser.test.ts +85 -0
- package/src/__tests__/shadow-csm-viewport.test.ts +74 -0
- package/src/__tests__/shadow-fields-observable.dawn.test.ts +615 -0
- package/src/__tests__/shadow-m1.dawn.test.ts +105 -0
- package/src/__tests__/shadow-m2.dawn.test.ts +394 -0
- package/src/__tests__/shadow-m3-calibrate-run.dawn.test.ts +248 -0
- package/src/__tests__/shadow-m3-calibrate.ts +203 -0
- package/src/__tests__/shadow-m3.dawn.test.ts +288 -0
- package/src/__tests__/shadow-mesh-ssbo-order.test.ts +64 -0
- package/src/__tests__/shadow-probe-control-flow.dawn.test.ts +264 -0
- package/src/__tests__/shadow-quality-metrics.dawn.test.ts +324 -0
- package/src/__tests__/skin-error-exhaustive.test-d.ts +74 -0
- package/src/__tests__/skin-errors.unit.test.ts +10 -0
- package/src/__tests__/skin-extract-getarrayview-count.unit.test.ts +23 -0
- package/src/__tests__/skin-parented-double-transform.test.ts +268 -0
- package/src/__tests__/skylight-lazy-projection.test.ts +359 -0
- package/src/__tests__/sparse-tag-scene-roundtrip.test.ts +43 -0
- package/src/__tests__/sprite-cullmode-flip.dawn.test.ts +470 -0
- package/src/__tests__/sprite-lit-bgl-byte-identical.test.ts +141 -0
- package/src/__tests__/sprite-lit-extract-branch.test.ts +117 -0
- package/src/__tests__/sprite-lit-pipeline-cache-key.test.ts +123 -0
- package/src/__tests__/sprite-param-values.test-d.ts +104 -0
- package/src/__tests__/ssao-bgl.test.ts +347 -0
- package/src/__tests__/ssao-buffers.test.ts +211 -0
- package/src/__tests__/ssao-data.test.ts +121 -0
- package/src/__tests__/ssao-errors.test.ts +162 -0
- package/src/__tests__/ssao-manifest.test.ts +109 -0
- package/src/__tests__/ssao-passes.test.ts +1229 -0
- package/src/__tests__/ssao-pipelines.test.ts +275 -0
- package/src/__tests__/ssao-uniform-layout.test.ts +178 -0
- package/src/__tests__/static-rig.integration.test.ts +9 -0
- package/src/__tests__/stencil-outline-pixel.dawn.test.ts +295 -0
- package/src/__tests__/swap-chain-format.unit.test.ts +117 -0
- package/src/__tests__/systems.unit.test.ts +9957 -0
- package/src/__tests__/temporal-off-path.unit.test.ts +69 -0
- package/src/__tests__/text.unit.test.ts +466 -0
- package/src/__tests__/tilemap-childed-despawn.test.ts +468 -0
- package/src/__tests__/tilemap-chunk-extract.overhang-bounds.test.ts +314 -0
- package/src/__tests__/tilemap-chunk-extract.propagate-order.test.ts +80 -0
- package/src/__tests__/tilemap-chunk-extract.terrain-rewrite.unit.test.ts +424 -0
- package/src/__tests__/tilemap-chunk-extract.test.ts +236 -0
- package/src/__tests__/tilemap-chunk-extract.unit.test.ts +383 -0
- package/src/__tests__/tilemap-chunk-y-sort-bench.unit.test.ts +109 -0
- package/src/__tests__/tilemap-dirty-rebuild.test.ts +300 -0
- package/src/__tests__/tilemap-material-cache.test.ts +137 -0
- package/src/__tests__/tilemap-multi-atlas.test.ts +237 -0
- package/src/__tests__/tilemap-owner-boundary.unit.test.ts +63 -0
- package/src/__tests__/tilemap-region-pack.test.ts +153 -0
- package/src/__tests__/tilemap-spawn-flip-pivot.test.ts +274 -0
- package/src/__tests__/tilemap-uv-inset.test.ts +204 -0
- package/src/__tests__/tilemap-validate.test.ts +201 -0
- package/src/__tests__/transform-hierarchy-pixel-diff.dawn.test.ts +274 -0
- package/src/__tests__/transient-fields-collect.test.ts +203 -0
- package/src/__tests__/transitional-authoring.integration.test.ts +7 -0
- package/src/__tests__/transparent-sort-tilemap-sprite-interleave.test.ts +227 -0
- package/src/__tests__/variant-selection.unit.test.ts +21 -0
- package/src/__tests__/vertex-attribute-layout.test.ts +324 -0
- package/src/__tests__/video-cache-regression.unit.test.ts +186 -0
- package/src/__tests__/video-extract-bindgroup.dawn.test.ts +450 -0
- package/src/__tests__/view-ubo-layout.browser.test.ts +183 -0
- package/src/__tests__/world-entity-key.test.ts +92 -0
- package/src/__tests__/world-scene-despawn.test.ts +132 -0
- package/src/__tests__/world-scene-instantiate.test.ts +228 -0
- package/src/__tests__/world-scene-nested.test.ts +230 -0
- package/src/__tests__/world-scene-override.test.ts +199 -0
- package/src/__tests__/zero-compression-zero-load.integration.test.ts +107 -0
- package/src/asset-contributions.ts +48 -0
- package/src/asset-kind.ts +7 -0
- package/src/collect-scene-asset.ts +689 -0
- package/src/components/__tests__/camera.test-d.ts +57 -0
- package/src/components/__tests__/camera.test.ts +95 -0
- package/src/components/__tests__/child-of.test.ts +35 -0
- package/src/components/__tests__/sprite-animation.test-d.ts +160 -0
- package/src/components/__tests__/sprite-instances.unit.test.ts +108 -0
- package/src/components/__tests__/sprite-region-override.test-d.ts +101 -0
- package/src/components/__tests__/tile-layer.test-d.ts +33 -0
- package/src/components/__tests__/tile-layer.unit.test.ts +125 -0
- package/src/components/__tests__/tilemap.test-d.ts +35 -0
- package/src/components/__tests__/transform-vec-schema.test.ts +121 -0
- package/src/create-renderer-env-classify.ts +110 -0
- package/src/createRenderer.ts +61 -0
- package/src/dev-import-transport.ts +97 -0
- package/src/errors/environment.ts +6 -0
- package/src/errors/sprite-animation.ts +5 -0
- package/src/index.ts +442 -0
- package/src/scene-asset-port.ts +32 -0
- package/src/scene-collect-errors.ts +30 -0
- package/src/scene-instances/__tests__/post-spawn-resolve-joints.unit.test.ts +183 -0
- package/src/scene-utils/mount-override-fold.ts +217 -0
- package/src/shadow-m3-calibrate.ts +171 -0
- package/src/sprite-param-values.ts +61 -0
- package/src/systems/__tests__/_xorshift.ts +83 -0
- package/src/systems/__tests__/argsort-in-place.test.ts +155 -0
- package/src/systems/__tests__/transparent-sort.bench.ts +218 -0
- package/src/systems/sprite-animation-tick.ts +302 -0
- package/src/systems/tonemap.ts +68 -0
- package/src/systems/transparent-sort.ts +434 -0
- package/src/tilemap-register-validate.ts +100 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { World } from '@forgeax/engine-ecs';
|
|
2
|
+
import { TileLayer, Tilemap, tilemapChunkExtractSystem } from '@forgeax/engine-render/authoring';
|
|
3
|
+
import { resetTilemapChunkExtractCache } from '@forgeax/engine-render/internal';
|
|
4
|
+
import { ChildOf, Transform } from '@forgeax/engine-scene';
|
|
5
|
+
import { describe, expect, it } from 'vitest';
|
|
6
|
+
import { makeTilemapAssetLookup } from './helpers/tilemap-assets';
|
|
7
|
+
|
|
8
|
+
describe('tilemap extraction owner boundary', () => {
|
|
9
|
+
it('recognizes canonical scene ChildOf and Transform tokens', () => {
|
|
10
|
+
const world = new World();
|
|
11
|
+
const tileset = {
|
|
12
|
+
kind: 'tileset' as const,
|
|
13
|
+
atlases: ['test/atlas'],
|
|
14
|
+
tileWidth: 1,
|
|
15
|
+
tileHeight: 1,
|
|
16
|
+
columns: 1,
|
|
17
|
+
rows: 1,
|
|
18
|
+
regions: [{ x: 0, y: 0, width: 1, height: 1 }],
|
|
19
|
+
tiles: [{ regionIndex: 0 }],
|
|
20
|
+
};
|
|
21
|
+
const lookup = makeTilemapAssetLookup(tileset);
|
|
22
|
+
const tilemap = world
|
|
23
|
+
.spawn(
|
|
24
|
+
{
|
|
25
|
+
component: Tilemap,
|
|
26
|
+
data: {
|
|
27
|
+
cols: 1,
|
|
28
|
+
rows: 1,
|
|
29
|
+
tileSize: [1, 1],
|
|
30
|
+
chunkSize: 1,
|
|
31
|
+
tileset: 'test/tileset',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{ component: Transform, data: {} },
|
|
35
|
+
)
|
|
36
|
+
.unwrap();
|
|
37
|
+
world
|
|
38
|
+
.spawn(
|
|
39
|
+
{
|
|
40
|
+
component: TileLayer,
|
|
41
|
+
data: {
|
|
42
|
+
tiles: new Uint32Array([1]),
|
|
43
|
+
layerOrder: 0,
|
|
44
|
+
dirty: 1,
|
|
45
|
+
sortScope: 0,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{ component: ChildOf, data: { parent: tilemap } },
|
|
49
|
+
)
|
|
50
|
+
.unwrap();
|
|
51
|
+
|
|
52
|
+
resetTilemapChunkExtractCache();
|
|
53
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
54
|
+
|
|
55
|
+
const derived = world
|
|
56
|
+
.inspect()
|
|
57
|
+
.archetypes.find(
|
|
58
|
+
(arch) =>
|
|
59
|
+
arch.componentNames.includes('MeshFilter') && arch.componentNames.includes('Transform'),
|
|
60
|
+
);
|
|
61
|
+
expect(derived?.entityCount).toBe(1);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
// tilemap-region-pack.test - per-cell entity Transform packing in cell units
|
|
2
|
+
// (feat-20260608 M0 baseline rebuild).
|
|
3
|
+
//
|
|
4
|
+
// Asserts the M0 1x1 unit-cell packing rules baked into
|
|
5
|
+
// `spawnDerivedRenderEntities`:
|
|
6
|
+
//
|
|
7
|
+
// posX = (cellX + 0.5) * tileSizeX
|
|
8
|
+
// posY = (cellY + 0.5) * tileSizeY
|
|
9
|
+
// scaleX = +/- tileSizeX (sign encodes flipH)
|
|
10
|
+
// scaleY = +/- tileSizeY (sign encodes flipV)
|
|
11
|
+
// quatZ / quatW = D ? SQRT1_2 : 0 / D ? SQRT1_2 : 1
|
|
12
|
+
//
|
|
13
|
+
// M0 boundary: width/heightCells / pivotX/Y are NOT consumed yet (M2
|
|
14
|
+
// `feat-20260608` D-2 widens the form). 1x1 unit-cell only.
|
|
15
|
+
//
|
|
16
|
+
// Anchors: plan-tasks m0-t9; plan-strategy §D-1 per-cell entity TRS;
|
|
17
|
+
// plan-strategy §M0 (1x1 unit-cell baseline only).
|
|
18
|
+
|
|
19
|
+
import { World } from '@forgeax/engine-ecs';
|
|
20
|
+
import { encodeTileBits } from '@forgeax/engine-graphics-extras';
|
|
21
|
+
import {
|
|
22
|
+
encodeSortScope,
|
|
23
|
+
TileLayer,
|
|
24
|
+
Tilemap,
|
|
25
|
+
tilemapChunkExtractSystem,
|
|
26
|
+
} from '@forgeax/engine-render/authoring';
|
|
27
|
+
import {
|
|
28
|
+
Layer,
|
|
29
|
+
MeshFilter,
|
|
30
|
+
resetTilemapChunkExtractCache,
|
|
31
|
+
resetTilemapDerivedEntityTracker,
|
|
32
|
+
} from '@forgeax/engine-render/internal';
|
|
33
|
+
import { ChildOf, Transform } from '@forgeax/engine-scene';
|
|
34
|
+
import type { TilesetAsset } from '@forgeax/engine-types';
|
|
35
|
+
import { describe, expect, it } from 'vitest';
|
|
36
|
+
import { makeTilemapAssetLookup } from './helpers/tilemap-assets';
|
|
37
|
+
|
|
38
|
+
function setup(opts: {
|
|
39
|
+
cols: number;
|
|
40
|
+
rows: number;
|
|
41
|
+
tileSize: readonly [number, number];
|
|
42
|
+
tiles: Uint32Array;
|
|
43
|
+
}) {
|
|
44
|
+
const world = new World();
|
|
45
|
+
const tileset: TilesetAsset = {
|
|
46
|
+
kind: 'tileset',
|
|
47
|
+
atlases: ['test/atlas'],
|
|
48
|
+
tileWidth: 16,
|
|
49
|
+
tileHeight: 16,
|
|
50
|
+
columns: opts.cols,
|
|
51
|
+
rows: opts.rows,
|
|
52
|
+
regions: [{ x: 0, y: 0, width: 16, height: 16 }],
|
|
53
|
+
tiles: [{ regionIndex: 0 }],
|
|
54
|
+
};
|
|
55
|
+
const lookup = makeTilemapAssetLookup(tileset);
|
|
56
|
+
const tilemap = world
|
|
57
|
+
.spawn(
|
|
58
|
+
{
|
|
59
|
+
component: Tilemap,
|
|
60
|
+
data: {
|
|
61
|
+
cols: opts.cols,
|
|
62
|
+
rows: opts.rows,
|
|
63
|
+
tileSize: opts.tileSize,
|
|
64
|
+
chunkSize: 4,
|
|
65
|
+
tileset: 'test/tileset',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{ component: Transform, data: {} },
|
|
69
|
+
)
|
|
70
|
+
.unwrap();
|
|
71
|
+
world.spawn(
|
|
72
|
+
{
|
|
73
|
+
component: TileLayer,
|
|
74
|
+
data: { tiles: opts.tiles, layerOrder: 0, dirty: 1, sortScope: encodeSortScope('per-cell') },
|
|
75
|
+
},
|
|
76
|
+
{ component: ChildOf, data: { parent: tilemap } },
|
|
77
|
+
);
|
|
78
|
+
resetTilemapChunkExtractCache();
|
|
79
|
+
resetTilemapDerivedEntityTracker();
|
|
80
|
+
return { world, lookup };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function readDerivedTransforms(world: World): Array<{
|
|
84
|
+
posX: number;
|
|
85
|
+
posY: number;
|
|
86
|
+
scaleX: number;
|
|
87
|
+
scaleY: number;
|
|
88
|
+
quatZ: number;
|
|
89
|
+
quatW: number;
|
|
90
|
+
}> {
|
|
91
|
+
const out: Array<{
|
|
92
|
+
posX: number;
|
|
93
|
+
posY: number;
|
|
94
|
+
scaleX: number;
|
|
95
|
+
scaleY: number;
|
|
96
|
+
quatZ: number;
|
|
97
|
+
quatW: number;
|
|
98
|
+
}> = [];
|
|
99
|
+
const query = world.query({ read: [Transform], with: [MeshFilter, Layer] }).unwrap();
|
|
100
|
+
for (const row of query) {
|
|
101
|
+
const t = row.get(Transform);
|
|
102
|
+
out.push({
|
|
103
|
+
posX: t.pos[0] ?? 0,
|
|
104
|
+
posY: t.pos[1] ?? 0,
|
|
105
|
+
scaleX: t.scale[0] ?? 1,
|
|
106
|
+
scaleY: t.scale[1] ?? 1,
|
|
107
|
+
quatZ: t.quat[2] ?? 0,
|
|
108
|
+
quatW: t.quat[3] ?? 1,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return out;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
describe('tilemap region pack — M0 1x1 unit-cell Transform field assertions', () => {
|
|
115
|
+
it('non-unit tileSize: posX/posY follow (cellX + 0.5) * tileSize', () => {
|
|
116
|
+
const tiles = new Uint32Array(2);
|
|
117
|
+
tiles[0] = 1; // (0, 0)
|
|
118
|
+
tiles[1] = 1; // (1, 0)
|
|
119
|
+
const { world, lookup } = setup({ cols: 2, rows: 1, tileSize: [32, 16], tiles });
|
|
120
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
121
|
+
const xs = readDerivedTransforms(world)
|
|
122
|
+
.map((t) => t.posX)
|
|
123
|
+
.sort((a, b) => a - b);
|
|
124
|
+
expect(xs[0]).toBeCloseTo(0.5 * 32, 5);
|
|
125
|
+
expect(xs[1]).toBeCloseTo(1.5 * 32, 5);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it('default tileSize (1, 1) on a 1x1 cell anchored at (0, 0)', () => {
|
|
129
|
+
const tiles = new Uint32Array([1]);
|
|
130
|
+
const { world, lookup } = setup({ cols: 1, rows: 1, tileSize: [1, 1], tiles });
|
|
131
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
132
|
+
const transforms = readDerivedTransforms(world);
|
|
133
|
+
expect(transforms.length).toBe(1);
|
|
134
|
+
const t = transforms[0];
|
|
135
|
+
if (t === undefined) throw new Error('expected one derived Transform');
|
|
136
|
+
expect(t.posX).toBeCloseTo(0.5, 5);
|
|
137
|
+
expect(t.posY).toBeCloseTo(0.5, 5);
|
|
138
|
+
expect(t.scaleX).toBe(1);
|
|
139
|
+
expect(t.scaleY).toBe(1);
|
|
140
|
+
expect(t.quatZ).toBe(0);
|
|
141
|
+
expect(t.quatW).toBe(1);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it('flipH alone negates scaleX, flipV alone negates scaleY (per-cell sign)', () => {
|
|
145
|
+
const tiles = new Uint32Array([encodeTileBits(1, true, false, false, false)]);
|
|
146
|
+
const { world, lookup } = setup({ cols: 1, rows: 1, tileSize: [1, 1], tiles });
|
|
147
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
148
|
+
const t = readDerivedTransforms(world)[0];
|
|
149
|
+
if (t === undefined) throw new Error('expected one derived Transform');
|
|
150
|
+
expect(t.scaleX).toBe(-1);
|
|
151
|
+
expect(t.scaleY).toBe(1);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
// tilemap-spawn-flip-pivot.test - 32 case H/V/D flip x pivot matrix
|
|
2
|
+
// (feat-20260608 M2 / m2-t1; plan-strategy §D-2).
|
|
3
|
+
//
|
|
4
|
+
// Asserts the per-cell entity Transform produced by
|
|
5
|
+
// `spawnDerivedRenderEntities` for the multi-cell + custom pivot form:
|
|
6
|
+
//
|
|
7
|
+
// basePivotForX = D ? pivotY : pivotX
|
|
8
|
+
// basePivotForY = D ? pivotX : pivotY
|
|
9
|
+
// effectivePivotX = H ? (1 - basePivotForX) : basePivotForX
|
|
10
|
+
// effectivePivotY = V ? (1 - basePivotForY) : basePivotForY
|
|
11
|
+
// posX = (cellX + effectivePivotX + (0.5 - effectivePivotX) * widthCells)
|
|
12
|
+
// * tileSizeX
|
|
13
|
+
// posY = (cellY + effectivePivotY + (0.5 - effectivePivotY) * heightCells)
|
|
14
|
+
// * tileSizeY
|
|
15
|
+
// scaleX = (H ? -1 : 1) * widthCells * tileSizeX
|
|
16
|
+
// scaleY = (V ? -1 : 1) * heightCells * tileSizeY
|
|
17
|
+
// quatZ = D ? Math.SQRT1_2 : 0
|
|
18
|
+
// quatW = D ? Math.SQRT1_2 : 1
|
|
19
|
+
//
|
|
20
|
+
// The matrix iterates H/V/D in {false, true}^3 (8 combinations) x
|
|
21
|
+
// pivot in {0.0, 0.2, 0.5, 0.8} (4 combinations applied to both X and Y) =
|
|
22
|
+
// 32 cases. R-3 numerical anchor: V flip x pivotY=0.2, heightCells=4
|
|
23
|
+
// drives a 2.4-cell delta in the offset (0.5 - effectivePivotY) *
|
|
24
|
+
// heightCells term (1.2 -> -1.2). Total Transform.posY delta versus the
|
|
25
|
+
// no-flip form is 1.8 cells (delta-eff + delta-offset = 0.6 - 2.4).
|
|
26
|
+
//
|
|
27
|
+
// FALSIFY mode `invert-pivot-on-vflip`: the implementation must use
|
|
28
|
+
// effectivePivotY = 1 - pivotY under V flip. If a future regression
|
|
29
|
+
// breaks that, the same test fails - which is the intended falsifier
|
|
30
|
+
// signal (plan-strategy §D-2 + AC-10).
|
|
31
|
+
//
|
|
32
|
+
// Anchors: plan-tasks m2-t1; plan-strategy §D-2 (formula first-line +
|
|
33
|
+
// 32 case matrix); plan-decisions L-3 (pivot ground truth) + L-4
|
|
34
|
+
// (`requirements.md §AC-10 falsifier` charter F1 alignment).
|
|
35
|
+
|
|
36
|
+
import { World } from '@forgeax/engine-ecs';
|
|
37
|
+
import { encodeTileBits } from '@forgeax/engine-graphics-extras';
|
|
38
|
+
import {
|
|
39
|
+
encodeSortScope,
|
|
40
|
+
TileLayer,
|
|
41
|
+
Tilemap,
|
|
42
|
+
tilemapChunkExtractSystem,
|
|
43
|
+
} from '@forgeax/engine-render/authoring';
|
|
44
|
+
import {
|
|
45
|
+
Layer,
|
|
46
|
+
MeshFilter,
|
|
47
|
+
resetTilemapChunkExtractCache,
|
|
48
|
+
resetTilemapDerivedEntityTracker,
|
|
49
|
+
} from '@forgeax/engine-render/internal';
|
|
50
|
+
import { ChildOf, Transform } from '@forgeax/engine-scene';
|
|
51
|
+
import type { TilesetAsset } from '@forgeax/engine-types';
|
|
52
|
+
import { describe, expect, it } from 'vitest';
|
|
53
|
+
import { makeTilemapAssetLookup } from './helpers/tilemap-assets';
|
|
54
|
+
|
|
55
|
+
const SQRT1_2 = Math.SQRT1_2;
|
|
56
|
+
|
|
57
|
+
interface Setup {
|
|
58
|
+
widthCells: number;
|
|
59
|
+
heightCells: number;
|
|
60
|
+
pivotX: number;
|
|
61
|
+
pivotY: number;
|
|
62
|
+
cellX: number;
|
|
63
|
+
cellY: number;
|
|
64
|
+
flipH: boolean;
|
|
65
|
+
flipV: boolean;
|
|
66
|
+
flipDiagonal: boolean;
|
|
67
|
+
tileSize: readonly [number, number];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function expectedTransform(s: Setup): {
|
|
71
|
+
posX: number;
|
|
72
|
+
posY: number;
|
|
73
|
+
scaleX: number;
|
|
74
|
+
scaleY: number;
|
|
75
|
+
quatZ: number;
|
|
76
|
+
quatW: number;
|
|
77
|
+
} {
|
|
78
|
+
const basePivotForX = s.flipDiagonal ? s.pivotY : s.pivotX;
|
|
79
|
+
const basePivotForY = s.flipDiagonal ? s.pivotX : s.pivotY;
|
|
80
|
+
const effX = s.flipH ? 1 - basePivotForX : basePivotForX;
|
|
81
|
+
const effY = s.flipV ? 1 - basePivotForY : basePivotForY;
|
|
82
|
+
return {
|
|
83
|
+
posX: (s.cellX + effX + (0.5 - effX) * s.widthCells) * s.tileSize[0],
|
|
84
|
+
posY: (s.cellY + effY + (0.5 - effY) * s.heightCells) * s.tileSize[1],
|
|
85
|
+
scaleX: (s.flipH ? -1 : 1) * s.widthCells * s.tileSize[0],
|
|
86
|
+
scaleY: (s.flipV ? -1 : 1) * s.heightCells * s.tileSize[1],
|
|
87
|
+
quatZ: s.flipDiagonal ? SQRT1_2 : 0,
|
|
88
|
+
quatW: s.flipDiagonal ? SQRT1_2 : 1,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function readDerivedTransform(world: World): {
|
|
93
|
+
posX: number;
|
|
94
|
+
posY: number;
|
|
95
|
+
scaleX: number;
|
|
96
|
+
scaleY: number;
|
|
97
|
+
quatZ: number;
|
|
98
|
+
quatW: number;
|
|
99
|
+
} {
|
|
100
|
+
const query = world.query({ read: [Transform], with: [MeshFilter, Layer] }).unwrap();
|
|
101
|
+
for (const row of query) {
|
|
102
|
+
const t = row.get(Transform);
|
|
103
|
+
return {
|
|
104
|
+
posX: t.pos[0] ?? 0,
|
|
105
|
+
posY: t.pos[1] ?? 0,
|
|
106
|
+
scaleX: t.scale[0] ?? 1,
|
|
107
|
+
scaleY: t.scale[1] ?? 1,
|
|
108
|
+
quatZ: t.quat[2] ?? 0,
|
|
109
|
+
quatW: t.quat[3] ?? 1,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
throw new Error('expected one derived Transform but found none');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function runOneCase(s: Setup): {
|
|
116
|
+
posX: number;
|
|
117
|
+
posY: number;
|
|
118
|
+
scaleX: number;
|
|
119
|
+
scaleY: number;
|
|
120
|
+
quatZ: number;
|
|
121
|
+
quatW: number;
|
|
122
|
+
} {
|
|
123
|
+
const world = new World();
|
|
124
|
+
const tileset: TilesetAsset = {
|
|
125
|
+
kind: 'tileset',
|
|
126
|
+
atlases: ['test/atlas'],
|
|
127
|
+
tileWidth: 16,
|
|
128
|
+
tileHeight: 16,
|
|
129
|
+
columns: 1,
|
|
130
|
+
rows: 1,
|
|
131
|
+
regions: [{ x: 0, y: 0, width: 16, height: 16 }],
|
|
132
|
+
tiles: [
|
|
133
|
+
{
|
|
134
|
+
regionIndex: 0,
|
|
135
|
+
widthCells: s.widthCells,
|
|
136
|
+
heightCells: s.heightCells,
|
|
137
|
+
pivotX: s.pivotX,
|
|
138
|
+
pivotY: s.pivotY,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
};
|
|
142
|
+
const lookup = makeTilemapAssetLookup(tileset);
|
|
143
|
+
const cols = Math.max(s.cellX + s.widthCells + 1, 16);
|
|
144
|
+
const rows = Math.max(s.cellY + s.heightCells + 1, 16);
|
|
145
|
+
const tilemap = world
|
|
146
|
+
.spawn(
|
|
147
|
+
{
|
|
148
|
+
component: Tilemap,
|
|
149
|
+
data: {
|
|
150
|
+
cols,
|
|
151
|
+
rows,
|
|
152
|
+
tileSize: s.tileSize,
|
|
153
|
+
chunkSize: 16,
|
|
154
|
+
tileset: 'test/tileset',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{ component: Transform, data: {} },
|
|
158
|
+
)
|
|
159
|
+
.unwrap();
|
|
160
|
+
const tiles = new Uint32Array(cols * rows);
|
|
161
|
+
tiles[s.cellY * cols + s.cellX] = encodeTileBits(1, s.flipH, s.flipV, s.flipDiagonal, false);
|
|
162
|
+
world.spawn(
|
|
163
|
+
{
|
|
164
|
+
component: TileLayer,
|
|
165
|
+
data: { tiles, layerOrder: 0, dirty: 1, sortScope: encodeSortScope('per-cell') },
|
|
166
|
+
},
|
|
167
|
+
{ component: ChildOf, data: { parent: tilemap } },
|
|
168
|
+
);
|
|
169
|
+
resetTilemapChunkExtractCache();
|
|
170
|
+
resetTilemapDerivedEntityTracker();
|
|
171
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
172
|
+
return readDerivedTransform(world);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
describe('spawnDerivedRenderEntities — 32 case H/V/D flip x pivot matrix (M2)', () => {
|
|
176
|
+
const widthCells = 3;
|
|
177
|
+
const heightCells = 4;
|
|
178
|
+
const tileSizeX = 16;
|
|
179
|
+
const tileSizeY = 16;
|
|
180
|
+
const cellX = 5;
|
|
181
|
+
const cellY = 10;
|
|
182
|
+
const pivots = [0.0, 0.2, 0.5, 0.8] as const;
|
|
183
|
+
|
|
184
|
+
for (const flipH of [false, true] as const) {
|
|
185
|
+
for (const flipV of [false, true] as const) {
|
|
186
|
+
for (const flipDiagonal of [false, true] as const) {
|
|
187
|
+
for (const pivot of pivots) {
|
|
188
|
+
const tag = `H=${flipH ? 1 : 0} V=${flipV ? 1 : 0} D=${flipDiagonal ? 1 : 0} pivot=${pivot}`;
|
|
189
|
+
it(`case ${tag} matches plan-strategy §D-2 formula`, () => {
|
|
190
|
+
const setup: Setup = {
|
|
191
|
+
widthCells,
|
|
192
|
+
heightCells,
|
|
193
|
+
pivotX: pivot,
|
|
194
|
+
pivotY: pivot,
|
|
195
|
+
cellX,
|
|
196
|
+
cellY,
|
|
197
|
+
flipH,
|
|
198
|
+
flipV,
|
|
199
|
+
flipDiagonal,
|
|
200
|
+
tileSize: [tileSizeX, tileSizeY],
|
|
201
|
+
};
|
|
202
|
+
const got = runOneCase(setup);
|
|
203
|
+
const want = expectedTransform(setup);
|
|
204
|
+
expect(got.posX).toBeCloseTo(want.posX, 4);
|
|
205
|
+
expect(got.posY).toBeCloseTo(want.posY, 4);
|
|
206
|
+
expect(got.scaleX).toBeCloseTo(want.scaleX, 4);
|
|
207
|
+
expect(got.scaleY).toBeCloseTo(want.scaleY, 4);
|
|
208
|
+
expect(got.quatZ).toBeCloseTo(want.quatZ, 5);
|
|
209
|
+
expect(got.quatW).toBeCloseTo(want.quatW, 5);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// R-3 numerical anchor: V flip x pivotY=0.2 must shift the (0.5 - eff)
|
|
217
|
+
// offset by exactly 2.4 cells (0.6 cell-budget x heightCells=4). The
|
|
218
|
+
// total posY delta versus the no-flip form is 1.8 cells (delta-eff =
|
|
219
|
+
// -0.6 cell + delta-offset = -2.4 cell ... wait: posY_vflip - posY_nf
|
|
220
|
+
// = -1.8 cells * tileSize). The 2.4-cell budget below isolates the
|
|
221
|
+
// (0.5 - effectivePivotY) * heightCells term so the falsifier is
|
|
222
|
+
// independent of the (eff - pivot) shift.
|
|
223
|
+
it('R-3 anchor: V flip x pivotY=0.2 offset budget = 2.4 cell', () => {
|
|
224
|
+
const baseSetup: Setup = {
|
|
225
|
+
widthCells,
|
|
226
|
+
heightCells,
|
|
227
|
+
pivotX: 0.5,
|
|
228
|
+
pivotY: 0.2,
|
|
229
|
+
cellX,
|
|
230
|
+
cellY,
|
|
231
|
+
flipH: false,
|
|
232
|
+
flipV: false,
|
|
233
|
+
flipDiagonal: false,
|
|
234
|
+
tileSize: [tileSizeX, tileSizeY],
|
|
235
|
+
};
|
|
236
|
+
const noFlipPosY = expectedTransform(baseSetup).posY;
|
|
237
|
+
const vFlipPosY = expectedTransform({ ...baseSetup, flipV: true }).posY;
|
|
238
|
+
const totalDeltaCells = (noFlipPosY - vFlipPosY) / tileSizeY;
|
|
239
|
+
// Total delta = (0.5 - 0.2) * 4 - ((1 - 0.2) - 0.2) - (0.5 - (1-0.2)) * 4
|
|
240
|
+
// = 1.2 - 0.6 - (-1.2) = 1.8 cells
|
|
241
|
+
expect(totalDeltaCells).toBeCloseTo(1.8, 5);
|
|
242
|
+
|
|
243
|
+
const noFlipOffset = (0.5 - 0.2) * heightCells;
|
|
244
|
+
const vFlipOffset = (0.5 - (1 - 0.2)) * heightCells;
|
|
245
|
+
const offsetDeltaCells = noFlipOffset - vFlipOffset;
|
|
246
|
+
expect(offsetDeltaCells).toBeCloseTo(2.4, 5);
|
|
247
|
+
|
|
248
|
+
// Round-trip the actual implementation under V flip + pivotY=0.2
|
|
249
|
+
// and confirm the formula-predicted posY matches.
|
|
250
|
+
const got = runOneCase({ ...baseSetup, flipV: true });
|
|
251
|
+
expect(got.posY).toBeCloseTo(vFlipPosY, 4);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
it('unit-cell + center pivot retains the M0 1x1 baseline (AC-14 non-degradation)', () => {
|
|
255
|
+
const got = runOneCase({
|
|
256
|
+
widthCells: 1,
|
|
257
|
+
heightCells: 1,
|
|
258
|
+
pivotX: 0.5,
|
|
259
|
+
pivotY: 0.5,
|
|
260
|
+
cellX: 0,
|
|
261
|
+
cellY: 0,
|
|
262
|
+
flipH: false,
|
|
263
|
+
flipV: false,
|
|
264
|
+
flipDiagonal: false,
|
|
265
|
+
tileSize: [16, 16],
|
|
266
|
+
});
|
|
267
|
+
expect(got.posX).toBeCloseTo(0.5 * 16, 5);
|
|
268
|
+
expect(got.posY).toBeCloseTo(0.5 * 16, 5);
|
|
269
|
+
expect(got.scaleX).toBe(16);
|
|
270
|
+
expect(got.scaleY).toBe(16);
|
|
271
|
+
expect(got.quatZ).toBe(0);
|
|
272
|
+
expect(got.quatW).toBe(1);
|
|
273
|
+
});
|
|
274
|
+
});
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// tilemap-uv-inset.test - half-texel inset on resolveTilesetMaterial
|
|
2
|
+
// (feat-20260608 M2 / m2-t3; plan-strategy §D-7 step 3).
|
|
3
|
+
//
|
|
4
|
+
// `resolveTilesetMaterial` is M2's UV-inset step on top of the M0
|
|
5
|
+
// baseline. It packs the region rectangle into normalized UV space such
|
|
6
|
+
// that GPU bilinear filtering at sub-pixel boundaries can never sample
|
|
7
|
+
// beyond the region rectangle (charter P3 - default behaviour does not
|
|
8
|
+
// silently bleed colours from the adjacent atlas tile).
|
|
9
|
+
//
|
|
10
|
+
// Inset formula (atlas extent in pixels, output in normalised [0, 1]^2):
|
|
11
|
+
//
|
|
12
|
+
// uvU = region.x / atlasWidth + 0.5 / atlasWidth
|
|
13
|
+
// uvV = region.y / atlasHeight + 0.5 / atlasHeight
|
|
14
|
+
// uvWidth = region.width / atlasWidth - 1 / atlasWidth
|
|
15
|
+
// uvHeight = region.height / atlasHeight - 1 / atlasHeight
|
|
16
|
+
//
|
|
17
|
+
// The 0.5 / atlasWidth term inset both edges by exactly half a texel,
|
|
18
|
+
// so any GPU bilinear filter sampling at the region edge stays inside
|
|
19
|
+
// the region instead of sampling the adjacent atlas tile.
|
|
20
|
+
//
|
|
21
|
+
// FALSIFY rationale: a regression that strips the inset (returns to the
|
|
22
|
+
// M0 baseline `u = region.x / atlasWidth`, `w = region.width / atlasWidth`)
|
|
23
|
+
// fails the numerical inset assertion below, locking the behaviour.
|
|
24
|
+
//
|
|
25
|
+
// Anchors: plan-tasks m2-t3; plan-strategy §D-7 step 3; charter P3
|
|
26
|
+
// (default behaviour avoids silently introducing visual defects).
|
|
27
|
+
|
|
28
|
+
import { World } from '@forgeax/engine-ecs';
|
|
29
|
+
import {
|
|
30
|
+
encodeSortScope,
|
|
31
|
+
TileLayer,
|
|
32
|
+
Tilemap,
|
|
33
|
+
tilemapChunkExtractSystem,
|
|
34
|
+
} from '@forgeax/engine-render/authoring';
|
|
35
|
+
import {
|
|
36
|
+
Layer,
|
|
37
|
+
MeshFilter,
|
|
38
|
+
MeshRenderer,
|
|
39
|
+
resetTilemapChunkExtractCache,
|
|
40
|
+
resetTilemapDerivedEntityTracker,
|
|
41
|
+
} from '@forgeax/engine-render/internal';
|
|
42
|
+
import { ChildOf, Transform } from '@forgeax/engine-scene';
|
|
43
|
+
import { type MaterialAsset, type TilesetAsset, toShared } from '@forgeax/engine-types';
|
|
44
|
+
import { describe, expect, it } from 'vitest';
|
|
45
|
+
import { makeTilemapAssetLookup } from './helpers/tilemap-assets';
|
|
46
|
+
|
|
47
|
+
interface AtlasMeta {
|
|
48
|
+
atlasWidth: number;
|
|
49
|
+
atlasHeight: number;
|
|
50
|
+
columns: number;
|
|
51
|
+
rows: number;
|
|
52
|
+
tileWidth: number;
|
|
53
|
+
tileHeight: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function makeTileset(opts: {
|
|
57
|
+
guid: string;
|
|
58
|
+
atlas: AtlasMeta;
|
|
59
|
+
regions: ReadonlyArray<{ x: number; y: number; width: number; height: number }>;
|
|
60
|
+
}): TilesetAsset {
|
|
61
|
+
return {
|
|
62
|
+
kind: 'tileset',
|
|
63
|
+
atlases: ['test/atlas'],
|
|
64
|
+
tileWidth: opts.atlas.tileWidth,
|
|
65
|
+
tileHeight: opts.atlas.tileHeight,
|
|
66
|
+
columns: opts.atlas.columns,
|
|
67
|
+
rows: opts.atlas.rows,
|
|
68
|
+
regions: opts.regions,
|
|
69
|
+
tiles: opts.regions.map((_, i) => ({ regionIndex: i })),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function spawnAndExtract(
|
|
74
|
+
tileset: TilesetAsset,
|
|
75
|
+
layerTiles: Uint32Array,
|
|
76
|
+
cols = 1,
|
|
77
|
+
rows = 1,
|
|
78
|
+
): World {
|
|
79
|
+
const world = new World();
|
|
80
|
+
const lookup = makeTilemapAssetLookup(tileset);
|
|
81
|
+
const tilemap = world
|
|
82
|
+
.spawn(
|
|
83
|
+
{
|
|
84
|
+
component: Tilemap,
|
|
85
|
+
data: { cols, rows, tileSize: [1, 1], chunkSize: 4, tileset: 'test/tileset' },
|
|
86
|
+
},
|
|
87
|
+
{ component: Transform, data: {} },
|
|
88
|
+
)
|
|
89
|
+
.unwrap();
|
|
90
|
+
world.spawn(
|
|
91
|
+
{
|
|
92
|
+
component: TileLayer,
|
|
93
|
+
data: { tiles: layerTiles, layerOrder: 0, dirty: 1, sortScope: encodeSortScope('per-cell') },
|
|
94
|
+
},
|
|
95
|
+
{ component: ChildOf, data: { parent: tilemap } },
|
|
96
|
+
);
|
|
97
|
+
resetTilemapChunkExtractCache();
|
|
98
|
+
resetTilemapDerivedEntityTracker();
|
|
99
|
+
tilemapChunkExtractSystem(world, lookup);
|
|
100
|
+
return world;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function readDerivedMaterialRegions(world: World): number[][] {
|
|
104
|
+
const out: number[][] = [];
|
|
105
|
+
const query = world.query({ read: [MeshRenderer], with: [MeshFilter, Layer] }).unwrap();
|
|
106
|
+
for (const row of query) {
|
|
107
|
+
const handleRaw = row.get(MeshRenderer).materials[0];
|
|
108
|
+
if (handleRaw === undefined) continue;
|
|
109
|
+
const matRes = world.sharedRefs.resolve<string, MaterialAsset>(
|
|
110
|
+
toShared<'MaterialAsset'>(handleRaw as unknown as number),
|
|
111
|
+
);
|
|
112
|
+
if (!matRes.ok) continue;
|
|
113
|
+
const region = matRes.value.values?.region as readonly number[] | undefined;
|
|
114
|
+
if (region !== undefined) out.push([...region]);
|
|
115
|
+
}
|
|
116
|
+
return out;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
describe('resolveTilesetMaterial — half-texel UV inset (M2)', () => {
|
|
120
|
+
it('top-left region inset: u = x/W + 0.5/W; w = width/W - 1/W (32x32 atlas, 16x16 region)', () => {
|
|
121
|
+
const tileset = makeTileset({
|
|
122
|
+
guid: 'tileset/uv-inset/top-left',
|
|
123
|
+
atlas: {
|
|
124
|
+
atlasWidth: 32,
|
|
125
|
+
atlasHeight: 32,
|
|
126
|
+
columns: 2,
|
|
127
|
+
rows: 2,
|
|
128
|
+
tileWidth: 16,
|
|
129
|
+
tileHeight: 16,
|
|
130
|
+
},
|
|
131
|
+
regions: [{ x: 0, y: 0, width: 16, height: 16 }],
|
|
132
|
+
});
|
|
133
|
+
const world = spawnAndExtract(tileset, new Uint32Array([1]));
|
|
134
|
+
const regions = readDerivedMaterialRegions(world);
|
|
135
|
+
expect(regions.length).toBe(1);
|
|
136
|
+
const r = regions[0];
|
|
137
|
+
if (r === undefined) throw new Error('expected one derived material region');
|
|
138
|
+
// u = 0/32 + 0.5/32 = 0.015625
|
|
139
|
+
// v = 0/32 + 0.5/32 = 0.015625
|
|
140
|
+
// w = 16/32 - 1/32 = 0.46875
|
|
141
|
+
// h = 16/32 - 1/32 = 0.46875
|
|
142
|
+
expect(r[0]).toBeCloseTo(0.015625, 6);
|
|
143
|
+
expect(r[1]).toBeCloseTo(0.015625, 6);
|
|
144
|
+
expect(r[2]).toBeCloseTo(0.46875, 6);
|
|
145
|
+
expect(r[3]).toBeCloseTo(0.46875, 6);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('bottom-right region inset: u = 16/32 + 0.5/32; w = 16/32 - 1/32 (32x32 atlas, 16x16 region)', () => {
|
|
149
|
+
const tileset = makeTileset({
|
|
150
|
+
guid: 'tileset/uv-inset/bottom-right',
|
|
151
|
+
atlas: {
|
|
152
|
+
atlasWidth: 32,
|
|
153
|
+
atlasHeight: 32,
|
|
154
|
+
columns: 2,
|
|
155
|
+
rows: 2,
|
|
156
|
+
tileWidth: 16,
|
|
157
|
+
tileHeight: 16,
|
|
158
|
+
},
|
|
159
|
+
regions: [{ x: 16, y: 16, width: 16, height: 16 }],
|
|
160
|
+
});
|
|
161
|
+
const world = spawnAndExtract(tileset, new Uint32Array([1]));
|
|
162
|
+
const regions = readDerivedMaterialRegions(world);
|
|
163
|
+
expect(regions.length).toBe(1);
|
|
164
|
+
const r = regions[0];
|
|
165
|
+
if (r === undefined) throw new Error('expected one derived material region');
|
|
166
|
+
expect(r[0]).toBeCloseTo(0.515625, 6);
|
|
167
|
+
expect(r[1]).toBeCloseTo(0.515625, 6);
|
|
168
|
+
expect(r[2]).toBeCloseTo(0.46875, 6);
|
|
169
|
+
expect(r[3]).toBeCloseTo(0.46875, 6);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it('adjacent tile insets stay >= 1 texel apart (prevents GPU bilinear bleed)', () => {
|
|
173
|
+
const tileset = makeTileset({
|
|
174
|
+
guid: 'tileset/uv-inset/adjacent',
|
|
175
|
+
atlas: {
|
|
176
|
+
atlasWidth: 64,
|
|
177
|
+
atlasHeight: 32,
|
|
178
|
+
columns: 4,
|
|
179
|
+
rows: 2,
|
|
180
|
+
tileWidth: 16,
|
|
181
|
+
tileHeight: 16,
|
|
182
|
+
},
|
|
183
|
+
regions: [
|
|
184
|
+
{ x: 0, y: 0, width: 16, height: 16 },
|
|
185
|
+
{ x: 16, y: 0, width: 16, height: 16 },
|
|
186
|
+
],
|
|
187
|
+
});
|
|
188
|
+
const world = spawnAndExtract(tileset, new Uint32Array([1, 2]), /* cols= */ 2, /* rows= */ 1);
|
|
189
|
+
const regions = readDerivedMaterialRegions(world);
|
|
190
|
+
expect(regions.length).toBe(2);
|
|
191
|
+
const [first, second] = regions.sort((a, b) => (a[0] ?? 0) - (b[0] ?? 0));
|
|
192
|
+
if (first === undefined || second === undefined) {
|
|
193
|
+
throw new Error('expected two derived material regions');
|
|
194
|
+
}
|
|
195
|
+
// First region right edge in normalized UV: u_right = u + w
|
|
196
|
+
// = (0/64 + 0.5/64) + (16/64 - 1/64) = 0.5/64 + 15/64 = 15.5/64
|
|
197
|
+
// Second region left edge: u_left = 16/64 + 0.5/64 = 16.5/64
|
|
198
|
+
// Gap = 16.5/64 - 15.5/64 = 1/64 = 1 texel of atlasWidth.
|
|
199
|
+
const firstRight = (first[0] ?? 0) + (first[2] ?? 0);
|
|
200
|
+
const secondLeft = second[0] ?? 0;
|
|
201
|
+
const gap = secondLeft - firstRight;
|
|
202
|
+
expect(gap).toBeGreaterThanOrEqual(1 / 64 - 1e-6);
|
|
203
|
+
});
|
|
204
|
+
});
|