@holtjs/stage 0.8.0 → 0.9.0
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/CHANGELOG.md +17 -0
- package/dist/display-C_NPwPrE.js +1945 -0
- package/dist/{game-D46nY-B2.js → game-C-yXzyAX.js} +25 -15
- package/dist/{game-CEa0m4eX.d.ts → game-DnJYRLZP.d.ts} +5 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/joystick.d.ts +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/lighting.d.ts +99 -15
- package/dist/lighting.js +602 -98
- package/dist/projection.d.ts +47 -14
- package/dist/projection.js +200 -4
- package/dist/{renderer-webgpu-BXU-ZDIp.js → renderer-webgpu-BZ3J971y.js} +43 -1925
- package/dist/renderer-webgpu.d.ts +1 -1
- package/dist/renderer-webgpu.js +1 -1
- package/dist/rig2d.d.ts +1 -1
- package/dist/tilemap.d.ts +1 -1
- package/dist/trace.d.ts +1 -1
- package/package.json +1 -1
- package/skills/stage/SKILL.md +9 -6
- package/skills/stage/references/subpaths.md +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,23 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.0] - 2026-12-04
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **Complete 6-DOF 2D Affine Scene-Graph Transforms (`skewX` / `skewY`, `src/display.ts`, `src/renderer-gl.ts`, `src/renderer-webgpu.ts`, `src/renderer-2d.ts`)**:
|
|
13
|
+
- Added `skewX`, `skewY`, and `setSkew(sx, sy?)` on `DisplayObject`, completing the full 6-degree-of-freedom 2D affine group across `getWorldTransformMatrix()`, `ImageObject.getAnchor()`, `ImageObject.getAnchorPose()`, `RendererGl`, `RendererWebGpu`, and `Renderer2D` (unified onto direct `ctx.setTransform(m.a, m.b, m.c, m.d, m.tx, m.ty)` with zero cumulative drift).
|
|
14
|
+
- **True Oblique Sun-Cast Silhouette Shadows in `mountStage25D` (`@holtjs/stage/projection`)**:
|
|
15
|
+
- Added `Stage25DRig.shadowLayer` (`zIndex = 5`: strictly above `groundWorld` tiles and below `billboardLayer` sprites), `MountStage25DOptions.shadows` (`Shadow25DConfig`), `setSunShadow(cfg)`, and `syncDayNight(state)`.
|
|
16
|
+
- Automatically projects crisp ground-pinned silhouette shadows for both `ImageObject`/`SpriteObject` billboards and multi-part `Container` billboards (e.g. character + `syncAttachment` weapon), detaches along the sun ray when jumping (`wz > 0`), fades smoothly to zero at night (`0` shadow draw calls in darkness), and auto-disposes shadow clones via `onDispose()`.
|
|
17
|
+
- **Zero-Banding Analytical Radial Glow, Self-Lit `bindEmissive` Layer & Batched `flipX`/Rotation-Aware Normal-Lit Pass (`@holtjs/stage/lighting`)**:
|
|
18
|
+
- Upgraded `Lighting2DSystem` point lights from 5-ring stepped `Graphics` circles to a shared `128x128` smooth $C^1$ analytical radial falloff texture (`__stage_radial_glow`) rendered via `InstancedBatchObject` (`5x` fewer quads, zero Mach banding across WebGPU, WebGL2 & Canvas2D).
|
|
19
|
+
- Added `Lighting2DSystem.emissiveLayer` and `Lighting2DSystem.bindEmissive(sprite, opts?)` natively consuming `@holtjs/craft` `Frame.emissiveCenter`, `Frame.emissivePower`, and `${key}_emissive` self-lit atlases so campfires, torches, and glowing eyes shine brightly above the night `MULTIPLY` overlay across WebGPU, WebGL2, and Canvas2D.
|
|
20
|
+
- Upgraded `createNormalLitSpritePass` to single-draw batching with `flipX`/`flipY`/`rotation` tangent-basis transformation (`aBasis`), and added scene-graph native `createSceneNormalLitPass(scene, opts)` (`mode: 'rim' | 'replace'`) traversing `Container`s in painter's order.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- **WebGL2 `CustomPass` VAO State Isolation (`src/renderer-gl.ts`)**:
|
|
24
|
+
- `RendererGl.invalidateProgramState()` now explicitly unbinds any bound WebGL2 VAO via `gl.bindVertexArray(null)` before entering `CustomPass.onRender` and during `restoreState()`, preventing custom `gl.vertexAttribPointer` calls from mutating `RendererGl`'s internal `quadVao` / `polyVao`.
|
|
25
|
+
|
|
9
26
|
## [0.8.0] - 2026-12-04
|
|
10
27
|
|
|
11
28
|
### Added
|