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
chore(examples): Bistro takes the new lighting and a Weather component, and the landing loop is reshot
yhhe0b714852b10
diff --git a/README.md b/README.mdindex 813084d4c..825adf8eb 100644--- a/README.md+++ b/README.md@@ -24,7 +24,7 @@Estella is a **2D and 3D game engine** — sprites, tilemaps and UI as much as lit, shadowed, physically simulated 3D worlds — with a TypeScript SDK driven by a high-performance **C++** core — as WebAssembly on the web, and compiled ahead of time on native platforms. It outputs games that run in **web browsers**, on the **desktop**, in **WeChat MiniGames**, as single-file **playable ads**, and as native **Android / iOS** apps. A visual editor is available as a separate, free download.<div align="center">- <img src="docs/assets/weather-965c7815.webp" alt="A Paris street corner rendered in real time by the Estella engine, moving from daylight through mist into rain with puddles" width="900" />+ <img src="docs/assets/weather-a53a539c.webp" alt="A Paris street corner rendered in real time by the Estella engine, moving from daylight through mist into rain with puddles" width="900" /><br/><sub><i>Amazon Lumberyard Bistro, rendered in real time by Estella (a sun that follows the sky, baked bounce light and reflections, the Neutral output transform). Scene © Amazon Lumberyard, <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>, modified.</i></sub></div>diff --git a/desktop b/desktopindex 1dc126381..616aacb99 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 1dc1263818058f1a859ab10d18ce5f81c209762c+Subproject commit 616aacb99ef6afa56fb75157746dd0537e7c14dbdiff --git a/docs/assets/weather-965c7815.webp b/docs/assets/weather-965c7815.webpdeleted file mode 100644index 906e1733c..000000000Binary files a/docs/assets/weather-965c7815.webp and /dev/null differdiff --git a/docs/assets/weather-a53a539c.webp b/docs/assets/weather-a53a539c.webpnew file mode 100644index 000000000..066e70a7fBinary files /dev/null and b/docs/assets/weather-a53a539c.webp differdiff --git a/docs/landing/index.html b/docs/landing/index.htmlindex 3d917b908..d320e74dc 100644--- a/docs/landing/index.html+++ b/docs/landing/index.html@@ -452,8 +452,8 @@<video id="hero-loop" width="1280" height="720" autoplay muted loop playsinline preload="metadata"poster="/hero-5df1f015.png"aria-label="A Paris street corner rendered in real time by the Estella engine, moving from clear daylight through morning mist into rain, with wet cobbles, puddles that mirror the scene, and ripples">- <source src="/weather-52d9aaaa.webm" type="video/webm" />- <source src="/weather-e54375ff.mp4" type="video/mp4" />+ <source src="/weather-98a16f59.webm" type="video/webm" />+ <source src="/weather-6f249a87.mp4" type="video/mp4" /><img src="/hero-5df1f015.png" width="1742" height="980"alt="A Paris street corner in daylight, rendered in real time by the Estella engine: a cafe, a scooter, cobbles and sun shadows" /></video>diff --git a/docs/landing/weather-52d9aaaa.webm b/docs/landing/weather-52d9aaaa.webmdeleted file mode 100644index 00f4cbecb..000000000Binary files a/docs/landing/weather-52d9aaaa.webm and /dev/null differdiff --git a/docs/landing/weather-6f249a87.mp4 b/docs/landing/weather-6f249a87.mp4new file mode 100644index 000000000..99eb21e75Binary files /dev/null and b/docs/landing/weather-6f249a87.mp4 differdiff --git a/docs/landing/weather-98a16f59.webm b/docs/landing/weather-98a16f59.webmnew file mode 100644index 000000000..1b7ddb195Binary files /dev/null and b/docs/landing/weather-98a16f59.webm differdiff --git a/docs/landing/weather-e54375ff.mp4 b/docs/landing/weather-e54375ff.mp4deleted file mode 100644index 14d8429e8..000000000Binary files a/docs/landing/weather-e54375ff.mp4 and /dev/null differdiff --git a/examples/bistro/assets/scenes/main.esscene b/examples/bistro/assets/scenes/main.essceneindex 4ad6d5b72..9c8877078 100644--- a/examples/bistro/assets/scenes/main.esscene+++ b/examples/bistro/assets/scenes/main.esscene@@ -60,6 +60,25 @@"u_power": 1.5}},+ {+ "type": "contactShadows",+ "enabled": true,+ "uniforms": {+ "u_intensity": 0.55,+ "u_length": 28,+ "u_thickness": 10+ }+ },+ {+ "type": "ssgi",+ "enabled": true,+ "uniforms": {+ "u_intensity": 0.9,+ "u_radius": 240,+ "u_thickness": 40,+ "u_maxBounce": 2.5+ }+ },{"type": "ssr","enabled": true,@@ -88,13 +107,15 @@}},"uniforms": {- "u_density": 0.00004,+ "u_density": 4e-05,"u_heightFalloff": 0.0008,"u_baseHeight": 0,"u_inscatter": 0.5,"u_sunAzimuth": 40,"u_sunElevation": 35,- "u_skyFog": 0.6+ "u_skyFog": 0.6,+ "u_volumetric": 0.5,+ "u_volumeRange": 6000}},{@@ -68873,6 +68894,38 @@}}]+ },+ {+ "id": 1150,+ "name": "Weather",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Weather",+ "data": {+ "preset": 0,+ "target": -1,+ "progress": 0,+ "duration": 10,+ "sequence": "clear,mist,rain,clear",+ "hold": 8,+ "drive": 127,+ "soundSource": 0+ }+ }+ ]}]-}+}\ No newline at end of filediff --git a/examples/bistro/tools/build-scene.mjs b/examples/bistro/tools/build-scene.mjsindex fc39c6751..31615cdf8 100644--- a/examples/bistro/tools/build-scene.mjs+++ b/examples/bistro/tools/build-scene.mjs@@ -50,8 +50,10 @@ add('Camera', [{ type: 'PostProcessVolume', data: { isGlobal: true, priority: 0, weight: 1, effects: [{ type: 'taa', enabled: true, uniforms: { u_blend: 0.1 } },{ type: 'ssao', enabled: true, uniforms: { u_radius: 70, u_intensity: 1, u_bias: 0.12, u_power: 1.5 } },+ { type: 'contactShadows', enabled: true, uniforms: { u_intensity: 0.55, u_length: 28, u_thickness: 10 } },+ { type: 'ssgi', enabled: true, uniforms: { u_intensity: 0.9, u_radius: 240, u_thickness: 40, u_maxBounce: 2.5 } },{ type: 'ssr', enabled: true, uniforms: { u_intensity: 0.6, u_maxDistance: 500, u_thickness: 14, u_floorBias: 1 } },- { type: 'heightFog', enabled: true, colors: { u_fogColor: { r: 0.72, g: 0.78, b: 0.86, a: 1 }, u_sunColor: { r: 1, g: 0.9, b: 0.7, a: 1 } }, uniforms: { u_density: 4e-05, u_heightFalloff: 0.0008, u_baseHeight: 0, u_inscatter: 0.5, u_sunAzimuth: 40, u_sunElevation: 35, u_skyFog: 0.6 } },+ { type: 'heightFog', enabled: true, colors: { u_fogColor: { r: 0.72, g: 0.78, b: 0.86, a: 1 }, u_sunColor: { r: 1, g: 0.9, b: 0.7, a: 1 } }, uniforms: { u_density: 4e-05, u_heightFalloff: 0.0008, u_baseHeight: 0, u_inscatter: 0.5, u_sunAzimuth: 40, u_sunElevation: 35, u_skyFog: 0.6, u_volumetric: 0.5, u_volumeRange: 6000 } },{ type: 'autoExposure', enabled: true, uniforms: { u_bias: 0.15, u_minEV: -2, u_maxEV: 2 } },{ type: 'colorGrade', enabled: true, uniforms: { u_exposure: 0, u_contrast: 1.08, u_saturation: 1.1, u_temperature: 0, u_tint: 0 } },{ type: 'bloom', enabled: true, uniforms: { u_threshold: 0.9, u_intensity: 0.5, u_radius: 1.2 } },@@ -94,5 +96,11 @@ for (const piece of pieces) {});}+// The weather the street lives under: clear, then mist, rain and clear again, a turn taking ten seconds and each holding eight.+add('Weather', [+ tr({ x: 0, y: 0, z: 0 }),+ { type: 'Weather', data: { preset: 0, target: -1, progress: 0, duration: 10, sequence: 'clear,mist,rain,clear', hold: 8, drive: 127, soundSource: 0 } },+]);+writeFileSync(SCENE, JSON.stringify({ version: 4, name: 'Main', entities }, null, 2));console.log(`wrote ${entities.length} entities`);