A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
chore(release): a note for the Cyber Rooftop example
yhh6b5f934f2b4e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 342c8f6d2..4209b6903 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@ published separately; it ships inside the editor.### Added- **Contact shadows and screen-space bounce light.** Contact Shadows and Screen Space GI effects add small sharp shadows at contacts and one bounce of colour between surfaces, and the weather softens the sun's shadows. `contactShadows` marches a short ray toward the scene's sun in the depth buffer; `ssgi` gathers eight rays a pixel over the G-buffer's normals at half size into a float target and averages the neighbours on the same surface before laying the light, times the receiver's colour, over the picture. The Weather component raises the sun's `sourceAngle` and lowers its `shadowStrength` as the sky clouds over.+- **Cyber Rooftop example.** Cyber Rooftop adds a rooftop survival-base example with a 2D HUD and a first-person build tool. The world is editable 3D models (a rooftop shelter, planters, containers, pipework, a water plant, city buildings, a train) with rain, steam and puddle reflections; the HUD is built from Canvas, UINode, UIVisual and Text. It is a runnable reconstruction of a reference image, not a pixel match, and its survival systems (inventory, saving) are not implemented.- **Thin lines against the sky.** A wire or railing thinner than a pixel stays one line against the sky instead of breaking into dashes. The Sky Atmosphere effect paints every pixel whose depth is the far plane, and depth is resolved from a single sample of a multisampled target, so a wire covered at some samples and not at that one was painted over wherever the sample missed. With the sky in the chain the scene is now cleared to nothing, its alpha is how much of each pixel geometry covers, and the sky is laid under it by that coverage: on a half-pixel wire across the sky the columns that show it went from 49% to 100%, on WebGL2 and WebGPU. An effect asks for this by declaring `u_sceneCoverage`; with Keep Background above zero the scene is cleared to the camera's colour as before.- **Cleaner contact shadows.** Contact shadows are soft and keep off surfaces facing away from the sun, so a wall no longer carries a speckle a temporal pass could not average, and the effect stack flags a Temporal Anti-Aliasing that sits before a noisy effect. The march now fades along its length (a hit at the far end is half a shadow), starts at a different offset every frame as well as every pixel so a temporal pass averages the whole march, and skips a surface facing away from the sun. On the Bistro hero the grain on a flat wall fell from 3.95 to 2.82 (the same wall with the effect off: 2.72); the example now runs `taa` after the fog, where it can average the noise before it.- **Details panels for the world.** Time Of Day shows the day as a curve with a hand for the hour, Weather as preset buttons with a live readout, a volume's effects are grouped and tagged, and a Model material's surface layers are sections with switches. The sun's curve is the real one for the component's latitude and declination; the effect stack lists colour parameters it used to leave out, folds, and marks the effects that need WebGPU; a layer's switch writes its strength parameter as an ordinary undoable edit.diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 1b5cf68e0..dac3fcd56 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2495,6 +2495,8 @@ export const NOTED = {{"note":"Height Fog and Light Shafts follow the scene's own sun, and Height Fog can carry the sun's shadows as volumetric light."},"feat(editor): Time Of Day and Weather panels, a grouped effect stack and material layer switches":{"internal":"the desktop half of the Details panels entry just below, which carries the note"},+ "feat(examples): add cyberpunk rooftop scene and building HUD":+ {"note":"Cyber Rooftop adds a rooftop survival-base example with a 2D HUD and a first-person build tool."},"fix(render): a wire narrower than a pixel is no longer painted over by the sky in dashes":{"note":"A wire or railing thinner than a pixel stays one line against the sky instead of breaking into dashes."},"fix(render): contact shadows no longer speckle a surface the sun does not reach, and a temporal pass placed before a noisy effect is flagged":