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
docs(changelog): hex-tiled terrain layers are noted
yhhb182da7152b6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 31fa4e843..ff92e08eb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ published separately; it ships inside the editor.- **A vertex hook can hand the fragment a colour.** What a material's vertex hook leaves in `es_vertexColor` is now the colour its fragment receives (times the instance's tint), on both backends.- **Bakes run over frames, with progress.** Work that used to hold a frame until it was done (a terrain worn by rain, a water zone baked, terrain chunks built, plants grown) is now spread over frames within a budget, and listed with its progress in the new `Bakes` resource (`bakesOf(app).active`). The editor's status bar shows it as a bar, for the edit world and for the game running in Play, and a game can show it on a loading screen. Plants wait for the ground and the water they stand on instead of being grown twice.- **Eroded and warped terrain.** `Terrain.erosion` wears the ground with rain (a heightmap's as well as the noise's): gullies down the slopes, sharper ridges, silt in the valleys, and dirt painted where the water ran; the same seed wears the same ground. `Terrain.warp` bends the noise by noise of its own for winding valleys and bent ridges. `erodeHeightfield` and `erosionJob` do the same for a tool.+- **Terrain layers without repeat, and with natural edges.** Each layer is read with hex tiling near the eye (every hexagonal cell takes it shifted and turned at random, the three about a point blended by distance and brightness), so no tile is seen; from the middle distance on it also mixes in itself on a tile `u_farScale` times as wide; and each layer's weight wanders by noise of its own (`u_blendNoise`), so where grass meets sand the line is ragged instead of the paint's gradient. `u_antiTile` now sets the hex tiling's strength.- **A richer Terrain shader.** Layers meet by their relief (`u_heightBlend`), each is read twice and blended by slow noise so no repeat is seen (`u_antiTile`), every layer gets the broad variation, their brightness is drawn into the light as relief (`u_relief`), and ground below `u_wetLevel + u_wetBand` darkens and shines at the waterline.- **Water mirrors the world.** Seen from above the surface now reflects what is on screen (hills, trees, the far shore) along its reflected ray, not only the sky, fading at the picture's edge; the quality level's mirror switch covers it.- **Soft water edges.** Where the water thins out at a shore the ground behind shows through more and more over the last `u_edgeSoftness` of depth, so the water meets it along a soft line instead of the zone's texel steps, and the shore's foam is broken up rather than drawn as an outline.diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex a91b1df25..92bb3c662 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2754,4 +2754,8 @@ export const NOTED = {{"note":"Terrain without cracks, and without end."},"test(editor): the terrain, foliage and water checks cut the ground by its cell size":{"internal":"Editor checks follow the Terrain fields that replaced chunks; they draw nothing new."},+ "feat(terrain): layers are read with hex tiling and a wide far reading, and their weights wander, so ground shows no repeat or ruled edge":+ {"note":"Terrain layers without repeat, and with natural edges."},+ "docs(terrain): the terrain pages describe the CDLOD ground, its pages, infinite extent and erosion":+ {"internal":"Documentation of features with their own notes."},};