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
fix: the docs build parses the GripSurface summary; dusk-fort keeps its fog colour in colors
yhhfbed5180a1fd
diff --git a/docs/astro/src/data/componentDocs.ts b/docs/astro/src/data/componentDocs.tsindex 11280a1c0..7abc83414 100644--- a/docs/astro/src/data/componentDocs.ts+++ b/docs/astro/src/data/componentDocs.ts@@ -209,7 +209,7 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {Animator: { category: 'animation', summary: 'Runs an animator controller — states, transitions and blend trees — over the entity.', doc: 'animation/overview', anchor: 'animator-state-machine', anchorZh: '动画状态机' },AnimatorRootMotion: { category: 'animation', summary: 'Publishes how far the active animation asks the character to move, for gameplay to hand to a character controller — a request, never a result.', doc: 'animation/overview', anchor: 'root-motion', anchorZh: '根运动' },GripProfile: { category: 'animation', summary: 'Where on an object each palm sits, and how its fingers are held there.', doc: 'animation/grip-pose', anchor: 'holding-an-object' },- GripSurface: { category: 'animation', summary: 'A cylinder, capsule, sphere or box on a held object that its holder's fingers close onto and stop at.', doc: 'animation/grip-pose', anchor: 'closing-onto-the-object' },+ GripSurface: { category: 'animation', summary: 'A cylinder, capsule, sphere or box on a held object that its holder\'s fingers close onto and stop at.', doc: 'animation/grip-pose', anchor: 'closing-onto-the-object' },GripHolder: { category: 'animation', summary: 'Holds an object in its GripProfile\'s grip: the arms bent to its anchors, the fingers posed, in one order that cannot loop.', doc: 'animation/grip-pose', anchor: 'holding-an-object' },GripPose: { category: 'animation', summary: 'Holds a rig\'s hands in a named pose, a pistol grip, a handle, a cup, that fits any rig with fingers.', doc: 'animation/grip-pose' },SpringBone: { category: 'animation', summary: 'Makes every bone below this root a spring: the chain trails the animated pose by inertia, falls with gravity and is pulled back toward it (hair, tails, cords).', doc: 'animation/spring-bones', anchor: 'the-component', anchorZh: '组件' },diff --git a/examples/dusk-fort/assets/scenes/main.esscene b/examples/dusk-fort/assets/scenes/main.essceneindex 1dfe6b551..f1cd44c89 100644--- a/examples/dusk-fort/assets/scenes/main.esscene+++ b/examples/dusk-fort/assets/scenes/main.esscene@@ -56,7 +56,9 @@"uniforms": {"u_fogNear": 140,"u_fogFar": 480,- "u_intensity": 0.55,+ "u_intensity": 0.55+ },+ "colors": {"u_fogColor": {"r": 0.62,"g": 0.42,diff --git a/examples/dusk-fort/tools/build-scene.mjs b/examples/dusk-fort/tools/build-scene.mjsindex 78b12fcfb..cea174258 100644--- a/examples/dusk-fort/tools/build-scene.mjs+++ b/examples/dusk-fort/tools/build-scene.mjs@@ -76,7 +76,7 @@ const camera = add({ name: 'Camera', parent: null, components: [isGlobal: true, priority: 0, weight: 1,effects: [{ type: 'ssao', enabled: true, uniforms: { u_radius: 90, u_intensity: 1.1, u_bias: 0.12, u_power: 1.5 } },- { type: 'distanceFog', enabled: true, uniforms: { u_fogNear: 140, u_fogFar: 480, u_intensity: 0.55, u_fogColor: { r: 0.62, g: 0.42, b: 0.40, a: 1 } } },+ { type: 'distanceFog', enabled: true, uniforms: { u_fogNear: 140, u_fogFar: 480, u_intensity: 0.55 }, colors: { u_fogColor: { r: 0.62, g: 0.42, b: 0.40, a: 1 } } },{ type: 'bloom', enabled: true, uniforms: { u_threshold: 0.85, u_intensity: 0.9, u_radius: 1.4 } },{ type: 'colorGrade', enabled: true, uniforms: { u_exposure: 0.1, u_contrast: 1.08, u_saturation: 1.1, u_temperature: 0.08, u_tint: 0 } },{ type: 'tonemap', enabled: true, uniforms: { u_exposure: 0.2 } },