Skip to content

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.

fix(docs): the Time of Day page links under the site's /docs base

yhha242bc43d956
diff --git a/docs/astro/src/content/docs/graphics/time-of-day.mdx b/docs/astro/src/content/docs/graphics/time-of-day.mdx
index e5a79f451..691b97d6e 100644
--- a/docs/astro/src/content/docs/graphics/time-of-day.mdx
+++ b/docs/astro/src/content/docs/graphics/time-of-day.mdx
@@ -6,7 +6,7 @@ description: A TimeOfDay component that moves the sun and the moon across the sk
A day is a path the sun takes and what the light, the sky and the fog are because of where it is. `TimeOfDay` places the
sun with the astronomy that fits in four lines — an hour angle, a latitude and a season — so a day has the right shape
(a long high arc in summer, a short low one in winter, sunrise toward the east) from three numbers a person can understand.
-Everything else is the same idea as [Weather](/graphics/weather/): **multipliers of what the scene already says**, so the
+Everything else is the same idea as [Weather](/docs/graphics/weather/): **multipliers of what the scene already says**, so the
same hour fits any project.
## The component
@@ -30,7 +30,7 @@ Add a `TimeOfDay` component to one entity.
that fall away from the moon. The crossover happens where both are dark, so nothing pops.
- **The ambient light** is scaled and tinted — blue by night, warm at dusk — and **baked reflection probes** are dimmed and
drained of colour, since they were baked under a daytime sky.
-- **The sky.** A [Sky Atmosphere](/graphics/post-processing/) effect draws the dome, the sun, a dusk glow on the sun's side of the
+- **The sky.** A [Sky Atmosphere](/docs/graphics/post-processing/) effect draws the dome, the sun, a dusk glow on the sun's side of the
horizon, the moon and the stars. It takes the sun from the clock, so it never mistakes the moon-lit key light for the sun.
- **Fog.** Height Fog's colour is lit as the day is (dark at night, orange at dusk), and its glow follows the key light.
- **Exposure.** Auto Exposure's compensation is raised at night so it stays readable (a scene without one gets it on its Colour
diff --git a/docs/astro/src/content/docs/zh-cn/graphics/time-of-day.mdx b/docs/astro/src/content/docs/zh-cn/graphics/time-of-day.mdx
index 944a82c93..52442c0dc 100644
--- a/docs/astro/src/content/docs/zh-cn/graphics/time-of-day.mdx
+++ b/docs/astro/src/content/docs/zh-cn/graphics/time-of-day.mdx
@@ -5,7 +5,7 @@ description: 一个 TimeOfDay 组件,让太阳和月亮在天空中运行,调暗
一天就是太阳走过的一条路径,以及灯光、天空和雾因为它在哪里而成为的样子。`TimeOfDay` 用四行就能写下的天文公式放置太阳——
时角、纬度、季节——所以三个人人能懂的数,就能得到正确的一天的形状(夏天又长又高的弧线、冬天又短又低的弧线、日出偏东)。
-其余的和 [天气](/zh-cn/graphics/weather/) 是同一个思路:**场景已有设定的倍率**,同一个钟点适配任何项目。
+其余的和 [天气](/docs/zh-cn/graphics/weather/) 是同一个思路:**场景已有设定的倍率**,同一个钟点适配任何项目。
## 组件
@@ -26,7 +26,7 @@ description: 一个 TimeOfDay 组件,让太阳和月亮在天空中运行,调暗
落到地平线以下一点就熄灭。太阳落下后它对准**月亮**,强度是太阳的几百分之一,带蓝色,所以夜里的阴影背着月亮倒下。
交接发生在两者都很暗的地方,不会突变。
- **环境光**被缩放并染色——夜里偏蓝、黄昏偏暖——**烘焙反射探针**被调暗并褪色,因为它们是在白天的天空下烘焙的。
-- **天空。** [Sky Atmosphere](/zh-cn/graphics/post-processing/) 特效画出天穹、太阳、地平线上太阳那一侧的黄昏辉光、月亮和星星。
+- **天空。** [Sky Atmosphere](/docs/zh-cn/graphics/post-processing/) 特效画出天穹、太阳、地平线上太阳那一侧的黄昏辉光、月亮和星星。
它的太阳取自时钟,所以不会把月光下的主光当成太阳。
- **雾。** Height Fog 的颜色随白天而被照亮(夜里暗、黄昏偏橙),辉光跟随主光。
- **曝光。** 夜里 Auto Exposure 的补偿被抬高,让画面保持可读(没有它的场景改加在 Colour Grade 上)。