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
feat(editor): Create offers an Outdoor Environment, the sky, haze, clock and weather already pointing at one another
yhh1c3fba7f39a3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e9788ef0a..288d0aa93 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,7 @@ published separately; it ships inside the editor.### Added+- **An Outdoor Environment to create.** **Create → Rendering → Outdoor Environment** makes a sun, a sky light, a clock, a weather and a global volume with the sky (clouds that cast shadows), the haze (beams in their gaps) and a plain grade, already pointing at one another. It is the arrangement the Terrain & Water example uses, for the engine's scale of a hundred units to the metre.- **An Online 3D starter.** A template for a networked 3D game: a lit ground, a pawn per player predicted on its owner's screen and replicated to the others, a camera that follows your own, and a `server/` that runs the same project headless. The rules both ends agree on are one module, `src/shared/rules.ts`. `tools/check-arena-server.mjs` now takes `--project`, and runs against this template too.- **Start a project from the command line.** `estella create <template> <dir> [--name]` makes a project from any starter or example, and `estella templates` lists them. The editor's New project gallery and the command line now share one implementation (`pipeline/src/project/scaffold.ts`), so both copy the same files and write the same `package.json` and `.gitignore`.- **Clouds drawn from a coverage picture.** `skyAtmosphere` takes a Cloud Mask (`u_cloudMask`, with `u_cloudMaskTile` in kilometres of the cloud layer) and a second, higher one (`u_cloudMask2`): the clouds stand where the mask says and the noise only erodes them. The shadow the clouds cast and the beams of `heightFog`'s `cloudShade` read the same masks, which the fog takes from the sky. Terrain & Water uses the two the art made.diff --git a/desktop b/desktopindex d99ff295f..1c57c4dbf 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit d99ff295f62c8fafec1b91643896a1cabd9a54c0+Subproject commit 1c57c4dbffd9c347c4379d2c942cc685666b4c18diff --git a/docs/astro/src/content/docs/graphics/weather.mdx b/docs/astro/src/content/docs/graphics/weather.mdxindex 662f03a35..90f40d4ee 100644--- a/docs/astro/src/content/docs/graphics/weather.mdx+++ b/docs/astro/src/content/docs/graphics/weather.mdx@@ -8,6 +8,13 @@ as its author made it, so a weather is expressed as **multipliers of what the scquarter of its strength, the fog five times as thick, the picture a little greyer — plus a few levels that mean the sameeverywhere: how hard it rains, how wet the ground is. The same preset then fits any project.+## Start from the whole environment++The parts of an outdoor scene point at one another: the clock moves the sun, the sky draws clouds that cast shadows, the fog reads those+clouds so a gap in them is a beam, and the weather scales it all. **Create → Rendering → Outdoor Environment** makes the working arrangement+at once, in one root: a sun, a sky light, a clock, a weather and a global volume with the sky, the haze and a plain grade, set for the engine's+own scale of a hundred units to the metre. Change a number in any of them, or delete what you do not want; it is an ordinary set of entities.+## The componentAdd a `Weather` component to one entity.diff --git a/docs/astro/src/content/docs/zh-cn/graphics/weather.mdx b/docs/astro/src/content/docs/zh-cn/graphics/weather.mdxindex 3b4b8c85f..8adfd4e35 100644--- a/docs/astro/src/content/docs/zh-cn/graphics/weather.mdx+++ b/docs/astro/src/content/docs/zh-cn/graphics/weather.mdx@@ -6,6 +6,12 @@ description: 一个 Weather 组件,让场景处于晴、薄雾、阴天、雨或场景的天气不是一堆特效参数。项目的雾有它自己的单位,太阳有作者给它的亮度,所以天气表达成**场景已有设定的倍率**——太阳降到四分之一、雾厚五倍、画面灰一点——再加几个在哪里都含义相同的量:雨下多大、地面多湿。同一个预设于是适配任何项目。+## 从整套环境开始++户外场景的各个部分是互相指向的:时钟带动太阳,天空画出会投影的云,雾读取这些云,所以云的缺口就是一道光束,天气再整体缩放。+**创建 → 渲染 → Outdoor Environment** 一次做出这套可用的搭配,放在同一个根下:太阳、天空光、时钟、天气,以及一个带天空、雾霾和基础调色的+全局体积,数值按引擎自己的尺度(一米一百个单位)设置。想改哪个数就改哪个,不要的直接删,它们就是一组普通实体。+## 组件给某个实体加一个 `Weather` 组件。diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 165622dd2..4bad0457c 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2880,6 +2880,8 @@ export const NOTED = {{"internal":"A build fix for a header; nothing a creator could observe changed."},"fix(ci): the continuity gate and the effect-kind test follow the shared scaffold and the display stage":{"internal":"Gate and test follow the code they check."},+ "feat(editor): Create offers an Outdoor Environment, the sky, haze, clock and weather already pointing at one another":+ {"note":"An Outdoor Environment to create."},"feat(water): two tiled, scrolling detail normal maps give the surface its sparkle":{"note":"Sparkle on the water."},"fix(lod): a LODGroup with only a cull size is no longer ignored":