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): the bakes, terrain, water and foliage work is noted
yhh5db903ad4ed6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 16997a607..545ab79a0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,12 +21,20 @@ published separately; it ships inside the editor.- **Surf on the shore.** Waves run in toward every shore of a water zone, stand up as the water shoals, break white and run up the ground past the waterline before falling back. `WaterZone.surf` sets how high a breaker stands against its body's waves and `surfLength` the length of the surf's waves; a current carries none, and `Waters.sample` rides the same surf. The zone now measures the distance to the shore across the ground for every body, an ocean over a beach included, where an ocean used to measure its depth.+- **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.+- **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.+- **Plants keep out of the water.** A `Foliage` area grows nothing under water unless `waterDepth` lets it stand that deep (reeds in the shallows), and is grown again when the water changes. Grass thins out blade by blade toward the distance its cells turn to their far version, so a near cell beside a far one is no longer three times as thick.+### Changed- **`WaterBody` keeps only what a body says.** Its `material`, `cellSize`, `cells`, `rings`, `waveLength`, `waveSpeed`, `waveDirection` and ripple fields have moved to the new `WaterZone`, which every body shares; `shoreWidth` now calms the waves toward the shore of an ocean and a river as well as a lake. A body of water is no longer tilted with its entity: it is turned about up only. `ShoreField`, `buildRectMesh`, `buildBoxMesh` and `buildRiverMesh` are gone from `esengine/water`.### Fixed+- **Ripples and surf on calm water.** The ripples a zone keeps fade out toward the edge of their window instead of stopping on a line across a lake, a breaker only whitens when it is steep for its length (a lake laps, the sea breaks), and foam seen from under the water is a faint shadow instead of a white sheet.+- **Water reads its data textures as numbers.** The textures the water's field, shore and ripples are read from were decoded as sRGB colour, which bent their values.- **A mesh on a material records its surface.** An opaque mesh whose material has a blend mode of Normal (the default) was drawn blended, so it wrote no surface record, and the effects that read it (screen-space reflections, rain, contact shadows) passed over it, and alpha-to-coverage cut-outs on it had no coverage. It is now drawn opaque. Water and refracting glass write their own record where the device can blend one target and not another (WebGPU, and WebGL2 with `OES_draw_buffers_indexed`).- **A terrain's splatmap keeps all four layers.** A splatmap whose fourth layer is in its alpha no longer erases the other three where that layer is thin: it is read as the numbers in the file, not as a colour the browser premultiplies by its alpha.diff --git a/desktop b/desktopindex 090f48016..cc9dee839 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 090f4801634f17c2070a72b5a3918b2cb1c8399f+Subproject commit cc9dee8390f81dd9e45b2a756d52d5b8e29135eddiff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 4c3d84466..04c9621c0 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2722,4 +2722,16 @@ export const NOTED = {{"internal":"The editor half of Water zones, which carries the note."},"feat(water): surf runs in toward the shore, breaks white and runs up the ground":{"note":"Surf on the shore."},+ "feat(terrain): rain erodes the ground and its noise is warped, baked over frames with their progress":+ {"note":"Eroded and warped terrain."},+ "feat(terrain): the Terrain shader meets its layers by relief, hides their tiling and wets the waterline":+ {"note":"A richer Terrain shader."},+ "feat(water): the surface mirrors the world, and ripples, surf and foam behave on calm water":+ {"note":"Water mirrors the world."},+ "feat(foliage): plants keep out of the water and grass thins toward its far cells":+ {"note":"Plants keep out of the water."},+ "feat(examples): Terrain & Water has a HUD, a beach view and quality levels":+ {"internal":"An example's own script, scene and textures; what it shows is in the engine notes."},+ "feat(editor): the status bar shows what the engine is baking, with its progress":+ {"note":"Bakes run over frames, with progress."},};