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.

feat(examples): neon-ascension grey-box, a night city to test reflections and bloom

yhhdd603dc961f7
diff --git a/examples/neon-ascension/README.md b/examples/neon-ascension/README.md
new file mode 100644
index 000000000..88a106071
--- /dev/null
+++ b/examples/neon-ascension/README.md
@@ -0,0 +1,26 @@
+# Neon Ascension (grey-box)
+
+A rain-soaked night city built from boxes, to answer one question before any
+art is made: do reflections, warm/cold light contrast and emissive bloom read
+the way the concept target does? It is not the finished scene.
+
+## Rebuild
+
+```
+node tools/generate-night-env.mjs # assets/env/night.hdr
+node ../../pipeline/bin/estella.mjs import-hdr assets/env/night.hdr assets/env
+node tools/make-greybox.mjs # scene, materials, project file
+```
+
+The night panorama is both the sky behind the scene and what the wet deck
+reflects, so its windows and neon carry real HDR radiance. Everything in the
+scene is derived from numbers in the two scripts.
+
+## Known gaps (measured on 2026-10-15)
+
+- `distanceFog`'s colour cannot be set from a `PostProcessVolume`: the effect
+ definition surfaces floats and textures only, and a colour written there
+ blanks the frame once bloom follows. The fog keeps its bright default.
+- The wet floor reflects the baked panorama only, not nearby geometry or the
+ river; planar reflection would be an engine addition.
+- At most 16 point lights are drawn per frame.
diff --git a/examples/neon-ascension/assets/env/night.esenv b/examples/neon-ascension/assets/env/night.esenv
new file mode 100644
index 000000000..0c1559784
--- /dev/null
+++ b/examples/neon-ascension/assets/env/night.esenv
@@ -0,0 +1,37 @@
+{
+ "version": 1,
+ "irradiance": [
+ 0.19011105597019196,
+ 0.13005176186561584,
+ 0.15363870561122894,
+ -0.025242740288376808,
+ -0.017921902239322662,
+ -0.0001530019799247384,
+ -0.03799489140510559,
+ -0.008801871910691261,
+ -0.017879009246826172,
+ -0.0009947464568540454,
+ 0.00035942369140684605,
+ -0.0007598819211125374,
+ -0.0002928194298874587,
+ -0.000007705976713623386,
+ -0.00020422693341970444,
+ -0.003734101075679064,
+ -0.0011564751621335745,
+ -0.001730769989080727,
+ 0.010958227328956127,
+ 0.0046395789831876755,
+ 0.005974410101771355,
+ 0.0039613437838852406,
+ -0.0001225911546498537,
+ 0.0024244626984000206,
+ 0.019710440188646317,
+ 0.008266065269708633,
+ 0.01095400657504797
+ ],
+ "specular": "night_env.png",
+ "faceSize": 128,
+ "mipCount": 5,
+ "maxRange": 8,
+ "sky": "night_sky.png"
+}
diff --git a/examples/neon-ascension/assets/env/night.esenv.meta b/examples/neon-ascension/assets/env/night.esenv.meta
new file mode 100644
index 000000000..c5f474b28
--- /dev/null
+++ b/examples/neon-ascension/assets/env/night.esenv.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4e92624c-7824-40ae-9bfb-2f8ed652fbd9",
+ "version": "2.0",
+ "type": "environment",
+ "importer": {}
+}
diff --git a/examples/neon-ascension/assets/env/night.hdr b/examples/neon-ascension/assets/env/night.hdr
new file mode 100644
index 000000000..8dc03574c
Binary files /dev/null and b/examples/neon-ascension/assets/env/night.hdr differ
diff --git a/examples/neon-ascension/assets/env/night_env.png b/examples/neon-ascension/assets/env/night_env.png
new file mode 100644
index 000000000..a90344f42
Binary files /dev/null and b/examples/neon-ascension/assets/env/night_env.png differ
diff --git a/examples/neon-ascension/assets/env/night_env.png.meta b/examples/neon-ascension/assets/env/night_env.png.meta
new file mode 100644
index 000000000..4871821f0
--- /dev/null
+++ b/examples/neon-ascension/assets/env/night_env.png.meta
@@ -0,0 +1,26 @@
+{
+ "uuid": "1fc7d7e0-1bb3-4417-a3ff-8d2df0f70612",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "compress": "off",
+ "compressFormat": "uastc",
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
diff --git a/examples/neon-ascension/assets/env/night_sky.png b/examples/neon-ascension/assets/env/night_sky.png
new file mode 100644
index 000000000..a9c3509bc
Binary files /dev/null and b/examples/neon-ascension/assets/env/night_sky.png differ
diff --git a/examples/neon-ascension/assets/env/night_sky.png.meta b/examples/neon-ascension/assets/env/night_sky.png.meta
new file mode 100644
index 000000000..089fc1623
--- /dev/null
+++ b/examples/neon-ascension/assets/env/night_sky.png.meta
@@ -0,0 +1,26 @@
+{
+ "uuid": "d8f036ab-0f1d-4a95-af42-b1ecd82654a3",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "compress": "off",
+ "compressFormat": "uastc",
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
diff --git a/examples/neon-ascension/assets/materials/coolWindow.esmaterial b/examples/neon-ascension/assets/materials/coolWindow.esmaterial
new file mode 100644
index 000000000..ed8e35f0c
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/coolWindow.esmaterial
@@ -0,0 +1,19 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.5,
+ "u_emissive": {
+ "r": 0.9,
+ "g": 1.4,
+ "b": 2,
+ "a": 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/cyanStrip.esmaterial b/examples/neon-ascension/assets/materials/cyanStrip.esmaterial
new file mode 100644
index 000000000..9c7939b92
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/cyanStrip.esmaterial
@@ -0,0 +1,19 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.3,
+ "u_emissive": {
+ "r": 0.2,
+ "g": 3.2,
+ "b": 4,
+ "a": 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/darkStone.esmaterial b/examples/neon-ascension/assets/materials/darkStone.esmaterial
new file mode 100644
index 000000000..2704fe4f7
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/darkStone.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.75
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/magentaSign.esmaterial b/examples/neon-ascension/assets/materials/magentaSign.esmaterial
new file mode 100644
index 000000000..84ecf3577
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/magentaSign.esmaterial
@@ -0,0 +1,19 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.4,
+ "u_emissive": {
+ "r": 4,
+ "g": 0.25,
+ "b": 2.4,
+ "a": 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/train.esmaterial b/examples/neon-ascension/assets/materials/train.esmaterial
new file mode 100644
index 000000000..1ddfc97ac
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/train.esmaterial
@@ -0,0 +1,19 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0.4,
+ "u_roughness": 0.3,
+ "u_emissive": {
+ "r": 1.2,
+ "g": 1.4,
+ "b": 1.6,
+ "a": 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/warmWindow.esmaterial b/examples/neon-ascension/assets/materials/warmWindow.esmaterial
new file mode 100644
index 000000000..53e4369a7
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/warmWindow.esmaterial
@@ -0,0 +1,19 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.5,
+ "u_emissive": {
+ "r": 2.2,
+ "g": 1.35,
+ "b": 0.55,
+ "a": 1
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/water.esmaterial b/examples/neon-ascension/assets/materials/water.esmaterial
new file mode 100644
index 000000000..75666f2ba
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/water.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0.9,
+ "u_roughness": 0.05
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/wetConcrete.esmaterial b/examples/neon-ascension/assets/materials/wetConcrete.esmaterial
new file mode 100644
index 000000000..9f2153ad4
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/wetConcrete.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0.5,
+ "u_roughness": 0.06
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/materials/wetMetal.esmaterial b/examples/neon-ascension/assets/materials/wetMetal.esmaterial
new file mode 100644
index 000000000..d73821f3d
--- /dev/null
+++ b/examples/neon-ascension/assets/materials/wetMetal.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 0,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 1,
+ "properties": {
+ "u_metallic": 0.85,
+ "u_roughness": 0.18
+ }
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/assets/scenes/main.esscene b/examples/neon-ascension/assets/scenes/main.esscene
new file mode 100644
index 000000000..5759b8efc
--- /dev/null
+++ b/examples/neon-ascension/assets/scenes/main.esscene
@@ -0,0 +1,2969 @@
+{
+ "version": 4,
+ "name": "Main",
+ "entities": [
+ {
+ "id": 0,
+ "name": "Camera",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -150,
+ "y": 520,
+ "z": 900
+ },
+ "rotation": {
+ "x": 0,
+ "y": -0.08715574274765817,
+ "z": 0,
+ "w": 0.9961946980917455
+ }
+ }
+ },
+ {
+ "type": "Camera",
+ "data": {
+ "projectionType": 0,
+ "fov": 52,
+ "nearPlane": 5,
+ "farPlane": 40000,
+ "isActive": true,
+ "priority": 0,
+ "clearFlags": 1,
+ "backgroundColor": {
+ "r": 0.02,
+ "g": 0.03,
+ "b": 0.05,
+ "a": 1
+ }
+ }
+ },
+ {
+ "type": "PostProcessVolume",
+ "data": {
+ "isGlobal": true,
+ "priority": 0,
+ "weight": 1,
+ "effects": [
+ {
+ "type": "distanceFog",
+ "enabled": true,
+ "uniforms": {
+ "u_fogNear": 900,
+ "u_fogFar": 16000,
+ "u_intensity": 0.55
+ }
+ },
+ {
+ "type": "ssao",
+ "enabled": true,
+ "uniforms": {}
+ },
+ {
+ "type": "bloom",
+ "enabled": true,
+ "uniforms": {
+ "u_threshold": 0.8,
+ "u_intensity": 1.6,
+ "u_radius": 1.4
+ }
+ },
+ {
+ "type": "colorGrade",
+ "enabled": true,
+ "uniforms": {
+ "u_contrast": 1.12,
+ "u_saturation": 1.05,
+ "u_temperature": -0.08
+ }
+ },
+ {
+ "type": "tonemap",
+ "enabled": true,
+ "uniforms": {}
+ },
+ {
+ "type": "vignette",
+ "enabled": true,
+ "uniforms": {
+ "u_intensity": 0.45,
+ "u_softness": 0.6
+ }
+ },
+ {
+ "type": "fxaa",
+ "enabled": true,
+ "uniforms": {}
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "Moon",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 1,
+ "color": {
+ "r": 0.45,
+ "g": 0.55,
+ "b": 0.85,
+ "a": 1
+ },
+ "intensity": 0.25,
+ "direction": {
+ "x": -0.4,
+ "y": -0.8
+ },
+ "directionZ": -0.5,
+ "meshShadows": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 2,
+ "name": "Ambient",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 2,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 1,
+ "enabled": true,
+ "environment": "assets/env/night.esenv",
+ "drawEnvironment": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Deck",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -300,
+ "y": 190,
+ "z": 300
+ },
+ "scale": {
+ "x": 16,
+ "y": 0.2,
+ "z": 22
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/wetConcrete.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 4,
+ "name": "Parapet0",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -80,
+ "y": 250,
+ "z": 650
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "Parapet1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -25,
+ "y": 250,
+ "z": 390
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 6,
+ "name": "Parapet2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 30,
+ "y": 250,
+ "z": 130
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 7,
+ "name": "Parapet3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 85,
+ "y": 250,
+ "z": -130
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 8,
+ "name": "Parapet4",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 140,
+ "y": 250,
+ "z": -390
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 9,
+ "name": "Parapet5",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 195,
+ "y": 250,
+ "z": -650
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Parapet6",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 250,
+ "y": 250,
+ "z": -910
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 11,
+ "name": "Parapet7",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 305,
+ "y": 250,
+ "z": -1170
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 12,
+ "name": "Parapet8",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 360,
+ "y": 250,
+ "z": -1430
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 1.2,
+ "z": 2.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 13,
+ "name": "PipeLow",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -1000,
+ "y": 330,
+ "z": 300
+ },
+ "scale": {
+ "x": 0.9,
+ "y": 0.9,
+ "z": 20
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cylinder",
+ "color": {
+ "r": 0.6,
+ "g": 0.55,
+ "b": 0.45,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/wetMetal.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 14,
+ "name": "PipeHigh",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -900,
+ "y": 560,
+ "z": 0
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 0.6,
+ "z": 18
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cylinder",
+ "color": {
+ "r": 0.5,
+ "g": 0.5,
+ "b": 0.5,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/wetMetal.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 15,
+ "name": "MachineBlock",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -950,
+ "y": 400,
+ "z": -250
+ },
+ "scale": {
+ "x": 5,
+ "y": 4.5,
+ "z": 6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 16,
+ "name": "MachineWindow",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -700,
+ "y": 430,
+ "z": -250
+ },
+ "scale": {
+ "x": 0.1,
+ "y": 1.6,
+ "z": 2.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 17,
+ "name": "Street",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1100,
+ "y": -250,
+ "z": -1300
+ },
+ "scale": {
+ "x": 12,
+ "y": 0.2,
+ "z": 36
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/wetConcrete.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 18,
+ "name": "River",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": -330,
+ "z": -3000
+ },
+ "scale": {
+ "x": 90,
+ "y": 0.1,
+ "z": 42
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 0.05,
+ "g": 0.08,
+ "b": 0.14,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/water.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 19,
+ "name": "BridgeDeck",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": -120,
+ "z": -2500
+ },
+ "scale": {
+ "x": 42,
+ "y": 0.6,
+ "z": 2.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 20,
+ "name": "BridgePier0",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -1700,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 21,
+ "name": "BridgePier1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -1250,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 22,
+ "name": "BridgePier2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -800,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 23,
+ "name": "BridgePier3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -350,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 24,
+ "name": "BridgePier4",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 100,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 25,
+ "name": "BridgePier5",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 550,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 26,
+ "name": "BridgePier6",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1000,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 27,
+ "name": "BridgePier7",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1450,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 28,
+ "name": "BridgePier8",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1900,
+ "y": -230,
+ "z": -2500
+ },
+ "scale": {
+ "x": 0.6,
+ "y": 2.3,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 29,
+ "name": "RailViaduct",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 350,
+ "y": 70,
+ "z": -1500
+ },
+ "scale": {
+ "x": 32,
+ "y": 0.7,
+ "z": 2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 30,
+ "name": "ViaductPier0",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -1000,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 31,
+ "name": "ViaductPier1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -580,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 32,
+ "name": "ViaductPier2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -160,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 33,
+ "name": "ViaductPier3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 260,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 34,
+ "name": "ViaductPier4",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 680,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 35,
+ "name": "ViaductPier5",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1100,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 36,
+ "name": "ViaductPier6",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1520,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 37,
+ "name": "ViaductPier7",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1940,
+ "y": -90,
+ "z": -1500
+ },
+ "scale": {
+ "x": 0.7,
+ "y": 3.4,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 38,
+ "name": "Train",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 500,
+ "y": 150,
+ "z": -1500
+ },
+ "scale": {
+ "x": 9,
+ "y": 0.8,
+ "z": 0.9
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/train.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 39,
+ "name": "TrainWindows",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 500,
+ "y": 160,
+ "z": -1448
+ },
+ "scale": {
+ "x": 8.8,
+ "y": 0.24,
+ "z": 0.06
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/coolWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 40,
+ "name": "RightBlock0",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2100,
+ "y": 110,
+ "z": -400
+ },
+ "scale": {
+ "x": 5.6,
+ "y": 7,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 41,
+ "name": "RightWindows0",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1826,
+ "y": 50,
+ "z": -350
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 3.8500000000000005,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 42,
+ "name": "RightBlock1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2160,
+ "y": 240,
+ "z": -920
+ },
+ "scale": {
+ "x": 5.2,
+ "y": 9.6,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 43,
+ "name": "RightWindows1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1906,
+ "y": 180,
+ "z": -870
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 5.28,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 44,
+ "name": "RightBlock2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2220,
+ "y": 370,
+ "z": -1440
+ },
+ "scale": {
+ "x": 4.8,
+ "y": 12.2,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 45,
+ "name": "RightWindows2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1986,
+ "y": 310,
+ "z": -1390
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 6.71,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 46,
+ "name": "RightBlock3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2280,
+ "y": 110,
+ "z": -1960
+ },
+ "scale": {
+ "x": 4.4,
+ "y": 7,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 47,
+ "name": "RightWindows3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2066,
+ "y": 50,
+ "z": -1910
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 3.8500000000000005,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 48,
+ "name": "RightBlock4",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2340,
+ "y": 240,
+ "z": -2480
+ },
+ "scale": {
+ "x": 4,
+ "y": 9.6,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 49,
+ "name": "RightWindows4",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2146,
+ "y": 180,
+ "z": -2430
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 5.28,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 50,
+ "name": "RightBlock5",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2400,
+ "y": 370,
+ "z": -3000
+ },
+ "scale": {
+ "x": 3.6,
+ "y": 12.2,
+ "z": 4.6
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 51,
+ "name": "RightWindows5",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2226,
+ "y": 310,
+ "z": -2950
+ },
+ "scale": {
+ "x": 0.08,
+ "y": 6.71,
+ "z": 3.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/warmWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 52,
+ "name": "MagentaBannerR",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1700,
+ "y": 350,
+ "z": -900
+ },
+ "scale": {
+ "x": 0.14,
+ "y": 3.8,
+ "z": 1.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/magentaSign.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 53,
+ "name": "TowerL",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 420,
+ "y": 1500,
+ "z": -5200
+ },
+ "scale": {
+ "x": 5.2,
+ "y": 36,
+ "z": 5.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 0.8,
+ "g": 0.8,
+ "b": 0.85,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 54,
+ "name": "TowerR",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1180,
+ "y": 1500,
+ "z": -5200
+ },
+ "scale": {
+ "x": 5.2,
+ "y": 36,
+ "z": 5.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 0.8,
+ "g": 0.8,
+ "b": 0.85,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 55,
+ "name": "TowerBaseL",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 420,
+ "y": 100,
+ "z": -5200
+ },
+ "scale": {
+ "x": 8.2,
+ "y": 7,
+ "z": 8.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 56,
+ "name": "TowerBaseR",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1180,
+ "y": 100,
+ "z": -5200
+ },
+ "scale": {
+ "x": 8.2,
+ "y": 7,
+ "z": 8.2
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/darkStone.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 57,
+ "name": "CyanStripL",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 680,
+ "y": 1500,
+ "z": -4930
+ },
+ "scale": {
+ "x": 0.24,
+ "y": 34,
+ "z": 0.14
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/cyanStrip.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 58,
+ "name": "CyanStripR",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 920,
+ "y": 1500,
+ "z": -4930
+ },
+ "scale": {
+ "x": 0.24,
+ "y": 34,
+ "z": 0.14
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/cyanStrip.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 59,
+ "name": "RingBridge",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 800,
+ "y": 3350,
+ "z": -5200
+ },
+ "scale": {
+ "x": 15,
+ "y": 0.7,
+ "z": 1.4
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 0.7,
+ "g": 0.75,
+ "b": 0.8,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/wetMetal.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 60,
+ "name": "Pod",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 800,
+ "y": 2100,
+ "z": -5100
+ },
+ "scale": {
+ "x": 4.4,
+ "y": 0.9,
+ "z": 3
+ }
+ }
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "builtin:cube",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "lit": true,
+ "opaque": true,
+ "cullBackfaces": true,
+ "enabled": true,
+ "material": "assets/materials/coolWindow.esmaterial"
+ }
+ }
+ ]
+ },
+ {
+ "id": 61,
+ "name": "DeckLamp",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -760,
+ "y": 400,
+ "z": -200
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.65,
+ "radius": 900,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 62,
+ "name": "DeckLamp2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -250,
+ "y": 330,
+ "z": 420
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.45,
+ "radius": 700,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 63,
+ "name": "StreetLamp1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1150,
+ "y": -80,
+ "z": -700
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.55,
+ "radius": 900,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 64,
+ "name": "StreetLamp2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1150,
+ "y": -80,
+ "z": -1500
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.55,
+ "radius": 900,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 65,
+ "name": "StreetLamp3",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1150,
+ "y": -80,
+ "z": -2300
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.55,
+ "radius": 900,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 66,
+ "name": "BalconyGlowR",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1900,
+ "y": 200,
+ "z": -300
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.6,
+ "radius": 1200,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 67,
+ "name": "BalconyGlowR2",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 2300,
+ "y": 400,
+ "z": -1300
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.6,
+ "radius": 1200,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 68,
+ "name": "MagentaFill",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 1550,
+ "y": 360,
+ "z": -800
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.1,
+ "b": 0.65,
+ "a": 1
+ },
+ "intensity": 0.7,
+ "radius": 1100,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 69,
+ "name": "TrainGlow",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 500,
+ "y": 200,
+ "z": -1500
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 0.55,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 0.45,
+ "radius": 900,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 70,
+ "name": "TowerCyan",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 800,
+ "y": 1200,
+ "z": -4600
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 0.1,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 1,
+ "radius": 2600,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "TowerBase",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 800,
+ "y": 100,
+ "z": -4300
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.6,
+ "radius": 1800,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 72,
+ "name": "BridgeGlow",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": -2300
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 0,
+ "color": {
+ "r": 1,
+ "g": 0.62,
+ "b": 0.25,
+ "a": 1
+ },
+ "intensity": 0.4,
+ "radius": 1400,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/project.esproject b/examples/neon-ascension/project.esproject
new file mode 100644
index 000000000..634a08e27
--- /dev/null
+++ b/examples/neon-ascension/project.esproject
@@ -0,0 +1,13 @@
+{
+ "formatVersion": "1",
+ "name": "Neon Ascension",
+ "description": "A rain-soaked night city grey-box: reflections, warm/cold light contrast and emissive bloom.",
+ "tag": "3D",
+ "version": "0.1.0",
+ "defaultScene": "assets/scenes/main.esscene",
+ "designResolution": {
+ "width": 1920,
+ "height": 1080
+ },
+ "spineVersion": "none"
+}
\ No newline at end of file
diff --git a/examples/neon-ascension/src/main.ts b/examples/neon-ascension/src/main.ts
new file mode 100644
index 000000000..b0c9174a8
--- /dev/null
+++ b/examples/neon-ascension/src/main.ts
@@ -0,0 +1,2 @@
+// The scene is authored as data; nothing here needs code.
+export {};
diff --git a/examples/neon-ascension/tools/generate-night-env.mjs b/examples/neon-ascension/tools/generate-night-env.mjs
new file mode 100644
index 000000000..3fdb79b71
--- /dev/null
+++ b/examples/neon-ascension/tools/generate-night-env.mjs
@@ -0,0 +1,138 @@
+// The night the scene stands in, written as a Radiance panorama: a low cloud deck,
+// a warm haze on the horizon, a skyline of lit windows, and a few neon accents.
+// It is both looked at (the sky behind the grey-box) and reflected (the wet deck
+// and the river mirror it), which is why it carries real HDR radiance on the
+// windows and neon rather than a picture of them.
+//
+// node tools/generate-night-env.mjs [width]
+// node ../../pipeline/bin/estella.mjs import-hdr assets/env/night.hdr assets/env
+import { mkdirSync, writeFileSync } from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const WIDTH = Number(process.argv[2]) || 2048;
+const HEIGHT = WIDTH / 2;
+const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+mkdirSync(path.join(ROOT, 'assets', 'env'), { recursive: true });
+const OUT = path.join(ROOT, 'assets', 'env', 'night.hdr');
+
+const mix = (a, b, t) => a.map((v, i) => v + (b[i] - v) * t);
+const clamp01 = (v) => Math.max(0, Math.min(1, v));
+const smooth = (a, b, v) => { const t = clamp01((v - a) / (b - a)); return t * t * (3 - 2 * t); };
+
+// Integer hash -> [0,1), so every column and window is the same on each run.
+function hash(n) {
+ n = (n ^ 61) ^ (n >>> 16); n = Math.imul(n, 9); n ^= n >>> 4;
+ n = Math.imul(n, 0x27d4eb2d); n ^= n >>> 15;
+ return (n >>> 0) / 4294967296;
+}
+
+const ZENITH = [0.010, 0.014, 0.028];
+const CLOUD = [0.040, 0.050, 0.085];
+const HAZE = [0.55, 0.30, 0.16];
+const GROUND = [0.020, 0.018, 0.022];
+
+// Azimuth 0 is +Z, the centre of the image; the camera looks to -Z, which is the
+// seam (azimuth +-180). Degrees from the -Z axis, positive toward +X.
+const fromForward = (phi) => {
+ let d = (phi * 180) / Math.PI;
+ d = d > 0 ? 180 - d : -180 - d;
+ return d;
+};
+
+const COLUMN = 0.9; // degrees of azimuth per skyline column
+const NEON = [
+ { at: 36, width: 1.1, top: 14, color: [14, 0.9, 7.5] }, // magenta banner, right
+ { at: -62, width: 0.9, top: 11, color: [12, 0.8, 6.5] }, // magenta banner, left
+ { at: 12, width: 0.45, top: 32, color: [0.8, 12, 16] }, // the tower's cyan strip
+ { at: 7, width: 0.45, top: 32, color: [0.8, 12, 16] },
+];
+
+function radiance(dx, dy, dz, phi) {
+ const elevation = (Math.asin(Math.max(-1, Math.min(1, dy))) * 180) / Math.PI;
+ if (elevation < 0) return mix(GROUND, [0.05, 0.04, 0.035], clamp01(-elevation / 30));
+
+ // Sky: dark zenith into a cloud deck, haze piling up at the horizon.
+ let c = mix(CLOUD, ZENITH, smooth(5, 70, elevation));
+ const cloud = 0.6 + 0.4 * Math.sin(phi * 9 + elevation * 0.55) * Math.sin(phi * 4.3 - elevation * 0.3);
+ c = c.map((v) => v * cloud);
+ c = mix(c, HAZE, Math.exp(-elevation / 5) * 0.35);
+
+ // Skyline: columns of height set by a hash, denser and taller toward the middle.
+ const az = fromForward(phi);
+ const column = Math.floor((az + 180) / COLUMN);
+ const h = 4 + hash(column * 7 + 3) * 22 * (1 - Math.min(1, Math.abs(az) / 140));
+ const inside = elevation < h;
+ if (inside) {
+ let body = [0.012, 0.014, 0.022];
+ // Windows: a grid inside each column, a hash decides which are lit and what colour.
+ const u = ((az + 180) / COLUMN) % 1;
+ const v = (elevation / 0.9) % 1;
+ const gx = Math.floor(((az + 180) / COLUMN) * 3), gy = Math.floor(elevation / 0.9);
+ const lit = hash(gx * 131 + gy * 977 + column) > 0.62;
+ if (lit && u > 0.12 && u < 0.88 && v > 0.25 && v < 0.8 && elevation > 0.8) {
+ const warm = hash(gx * 17 + gy * 5) > 0.2;
+ body = warm ? [3.2, 1.7, 0.7] : [1.0, 1.9, 3.0];
+ const fade = 1 - elevation / (h + 4);
+ body = body.map((x) => x * fade * (0.5 + hash(gy * 3 + gx) * 0.7));
+ }
+ c = body;
+ }
+
+ // Neon accents stand above the skyline.
+ for (const n of NEON) {
+ if (Math.abs(az - n.at) < n.width && elevation < n.top && elevation > 0.6) c = n.color.map((x, i) => Math.max(c[i], x * (1 - elevation / (n.top + 6))));
+ }
+
+ // The tower: two dark shafts either side of the forward axis, taller than the rest.
+ for (const sx of [-1, 1]) {
+ const d = Math.abs(az - (9.5 + sx * 3.4));
+ if (d < 1.9 && elevation < 33 - d * 3) c = [0.010, 0.012, 0.018];
+ }
+ return c;
+}
+
+function rgbe([r, g, b]) {
+ const m = Math.max(r, g, b);
+ if (m < 1e-32) return [0, 0, 0, 0];
+ const e = Math.ceil(Math.log2(m) + 1e-9);
+ const scale = 256 / 2 ** e;
+ return [Math.min(255, Math.floor(r * scale)), Math.min(255, Math.floor(g * scale)),
+ Math.min(255, Math.floor(b * scale)), e + 128];
+}
+
+function encodeScanline(pixels) {
+ const out = [2, 2, (WIDTH >> 8) & 0xff, WIDTH & 0xff];
+ for (let c = 0; c < 4; c++) {
+ const ch = pixels.map((p) => p[c]);
+ let i = 0;
+ while (i < WIDTH) {
+ let run = 1;
+ while (i + run < WIDTH && run < 127 && ch[i + run] === ch[i]) run++;
+ if (run >= 4) { out.push(128 + run, ch[i]); i += run; continue; }
+ let lit = 0;
+ while (i + lit < WIDTH && lit < 128) {
+ const j = i + lit;
+ if (j + 3 < WIDTH && ch[j] === ch[j + 1] && ch[j] === ch[j + 2] && ch[j] === ch[j + 3]) break;
+ lit++;
+ }
+ out.push(lit, ...ch.slice(i, i + lit));
+ i += lit;
+ }
+ }
+ return out;
+}
+
+const header = `#?RADIANCE\n# generated for estella examples/neon-ascension (tools/generate-night-env.mjs)\nFORMAT=32-bit_rle_rgbe\n\n-Y ${HEIGHT} +X ${WIDTH}\n`;
+const body = [];
+for (let y = 0; y < HEIGHT; y++) {
+ const theta = ((y + 0.5) / HEIGHT) * Math.PI;
+ const row = [];
+ for (let x = 0; x < WIDTH; x++) {
+ const phi = ((x + 0.5) / WIDTH - 0.5) * 2 * Math.PI;
+ row.push(rgbe(radiance(Math.sin(phi) * Math.sin(theta), Math.cos(theta), Math.cos(phi) * Math.sin(theta), phi)));
+ }
+ body.push(...encodeScanline(row));
+}
+writeFileSync(OUT, Buffer.concat([Buffer.from(header, 'ascii'), Buffer.from(body)]));
+console.log(`${path.relative(process.cwd(), OUT)}: ${WIDTH}x${HEIGHT}`);
diff --git a/examples/neon-ascension/tools/make-greybox.mjs b/examples/neon-ascension/tools/make-greybox.mjs
new file mode 100644
index 000000000..942619725
--- /dev/null
+++ b/examples/neon-ascension/tools/make-greybox.mjs
@@ -0,0 +1,190 @@
+// Grey-box of the "Neon Ascension" concept target: boxes only, no authored models.
+// It exists to answer one question before any art is made — do wet reflections,
+// warm/cold light contrast and emissive bloom read the way the concept does?
+// Everything is derived from the numbers below; an art note is an edit and a rerun.
+//
+// node tools/make-greybox.mjs
+import { mkdirSync, writeFileSync } from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const SCENES = path.join(ROOT, 'assets', 'scenes');
+const MATS = path.join(ROOT, 'assets', 'materials');
+mkdirSync(SCENES, { recursive: true });
+mkdirSync(MATS, { recursive: true });
+
+// A cube is 100 units a side, so scale s covers s*100 units.
+const U = 100;
+
+const rgba = (r, g, b, a = 1) => ({ r, g, b, a });
+
+// Deterministic so the skyline is the same every run.
+let seed = 7;
+const rand = () => ((seed = (seed * 1664525 + 1013904223) >>> 0) / 2 ** 32);
+
+const materials = {
+ wetConcrete: { metallic: 0.5, roughness: 0.06 },
+ wetMetal: { metallic: 0.85, roughness: 0.18 },
+ darkStone: { metallic: 0.0, roughness: 0.75 },
+ water: { metallic: 0.9, roughness: 0.05 },
+ warmWindow: { metallic: 0, roughness: 0.5, emissive: rgba(2.2, 1.35, 0.55) },
+ coolWindow: { metallic: 0, roughness: 0.5, emissive: rgba(0.9, 1.4, 2.0) },
+ cyanStrip: { metallic: 0, roughness: 0.3, emissive: rgba(0.2, 3.2, 4.0) },
+ magentaSign: { metallic: 0, roughness: 0.4, emissive: rgba(4.0, 0.25, 2.4) },
+ train: { metallic: 0.4, roughness: 0.3, emissive: rgba(1.2, 1.4, 1.6) },
+};
+for (const [name, m] of Object.entries(materials)) {
+ const properties = { u_metallic: m.metallic, u_roughness: m.roughness };
+ if (m.emissive) properties.u_emissive = m.emissive;
+ writeFileSync(path.join(MATS, `${name}.esmaterial`), JSON.stringify({
+ version: '1.0', type: 'material', shader: 'builtin:model',
+ blendMode: 0, depthTest: true, depthWrite: true, cull: 1, properties,
+ }, null, 2));
+}
+
+const entities = [];
+let nextId = 0;
+const add = (name, components) => {
+ const id = nextId++;
+ entities.push({ id, name, parent: null, children: [], visible: true, components });
+ return id;
+};
+
+const transform = (p, s, q) => ({
+ type: 'Transform',
+ data: {
+ position: { x: p[0], y: p[1], z: p[2] },
+ ...(s ? { scale: { x: s[0], y: s[1], z: s[2] } } : {}),
+ ...(q ? { rotation: q } : {}),
+ },
+});
+
+// Camera looks along -z by default; yaw/pitch compose into the quaternion.
+function lookQuat(yawDeg, pitchDeg) {
+ const y = (yawDeg * Math.PI) / 360, p = (pitchDeg * Math.PI) / 360;
+ const qy = { x: 0, y: Math.sin(y), z: 0, w: Math.cos(y) };
+ const qx = { x: Math.sin(p), y: 0, z: 0, w: Math.cos(p) };
+ return {
+ x: qy.w * qx.x + qy.x * qx.w,
+ y: qy.y * qx.w + qy.w * qx.y,
+ z: qy.x * qx.y - qy.y * qx.x + qy.z * qx.w + qy.w * qx.z,
+ w: qy.w * qx.w - qy.x * qx.x - qy.y * qx.y - qy.z * qx.z,
+ };
+}
+
+const box = (name, mat, p, size, color = rgba(1, 1, 1), mesh = 'builtin:cube') => add(name, [
+ transform(p, size.map((v) => v / U)),
+ { type: 'MeshRenderer', data: {
+ mesh, color, lit: true, opaque: true, cullBackfaces: true, enabled: true,
+ material: `assets/materials/${mat}.esmaterial`,
+ } },
+]);
+
+const pointLight = (name, p, color, intensity, radius) => add(name, [
+ transform(p),
+ { type: 'Light', data: { type: 0, color, intensity, radius, enabled: true } },
+]);
+
+// ---- camera: a balcony on the left, looking across the river at the towers ----
+add('Camera', [
+ transform([-150, 520, 900], null, lookQuat(-10, 0)),
+ { type: 'Camera', data: {
+ projectionType: 0, fov: 52, nearPlane: 5, farPlane: 40000, isActive: true, priority: 0,
+ clearFlags: 1, backgroundColor: rgba(0.02, 0.03, 0.05),
+ } },
+ { type: 'PostProcessVolume', data: {
+ isGlobal: true, priority: 0, weight: 1,
+ effects: [
+ { type: 'distanceFog', enabled: true,
+ uniforms: { u_fogNear: 900, u_fogFar: 16000, u_intensity: 0.55 } },
+ { type: 'ssao', enabled: true, uniforms: {} },
+ { type: 'bloom', enabled: true, uniforms: { u_threshold: 0.8, u_intensity: 1.6, u_radius: 1.4 } },
+ { type: 'colorGrade', enabled: true, uniforms: { u_contrast: 1.12, u_saturation: 1.05, u_temperature: -0.08 } },
+ { type: 'tonemap', enabled: true, uniforms: {} },
+ { type: 'vignette', enabled: true, uniforms: { u_intensity: 0.45, u_softness: 0.6 } },
+ { type: 'fxaa', enabled: true, uniforms: {} },
+ ],
+ } },
+]);
+
+// ---- global light: cold moon + dark blue ambient ----
+add('Moon', [transform([0, 0, 0]), { type: 'Light', data: {
+ type: 1, color: rgba(0.45, 0.55, 0.85), intensity: 0.25,
+ direction: { x: -0.4, y: -0.8 }, directionZ: -0.5, meshShadows: true, enabled: true,
+} }]);
+add('Ambient', [transform([0, 0, 0]), { type: 'Light', data: {
+ type: 2, color: rgba(1, 1, 1), intensity: 1.0, enabled: true,
+ environment: 'assets/env/night.esenv', drawEnvironment: true,
+} }]);
+
+// ---- foreground deck (left): wet floor, parapet, pipes ----
+box('Deck', 'wetConcrete', [-300, 190, 300], [1600, 20, 2200]);
+for (let i = 0; i < 9; i++) {
+ box(`Parapet${i}`, 'darkStone', [-80 + i * 55, 250, 650 - i * 260], [90, 120, 220]);
+}
+box('PipeLow', 'wetMetal', [-1000, 330, 300], [90, 90, 2000], rgba(0.6, 0.55, 0.45), 'builtin:cylinder');
+box('PipeHigh', 'wetMetal', [-900, 560, 0], [60, 60, 1800], rgba(0.5, 0.5, 0.5), 'builtin:cylinder');
+box('MachineBlock', 'darkStone', [-950, 400, -250], [500, 450, 600]);
+box('MachineWindow', 'warmWindow', [-700, 430, -250], [10, 160, 260]);
+
+// ---- middle ground: street, river, bridge, elevated rail + train ----
+box('Street', 'wetConcrete', [1100, -250, -1300], [1200, 20, 3600]);
+box('River', 'water', [200, -330, -3000], [9000, 10, 4200], rgba(0.05, 0.08, 0.14));
+box('BridgeDeck', 'darkStone', [200, -120, -2500], [4200, 60, 260]);
+for (let i = 0; i < 9; i++) box(`BridgePier${i}`, 'darkStone', [-1700 + i * 450, -230, -2500], [60, 230, 120]);
+box('RailViaduct', 'darkStone', [350, 70, -1500], [3200, 70, 200]);
+for (let i = 0; i < 8; i++) box(`ViaductPier${i}`, 'darkStone', [-1000 + i * 420, -90, -1500], [70, 340, 90]);
+box('Train', 'train', [500, 150, -1500], [900, 80, 90]);
+box('TrainWindows', 'coolWindow', [500, 160, -1448], [880, 24, 6]);
+
+// ---- right-hand terraced buildings with warm windows ----
+for (let i = 0; i < 6; i++) {
+ const w = 560 - i * 40, h = 700 + (i % 3) * 260;
+ box(`RightBlock${i}`, 'darkStone', [2100 + i * 60, -240 + h / 2, -400 - i * 520], [w, h, 460]);
+ box(`RightWindows${i}`, 'warmWindow', [2100 + i * 60 - w / 2 + 6, -240 + h / 2 - 60, -400 - i * 520 + 50],
+ [8, h * 0.55, 340]);
+}
+box('MagentaBannerR', 'magentaSign', [1700, 350, -900], [14, 380, 120]);
+
+// ---- main tower: two tapered shafts, cyan strips, ring ----
+const TX = 800, TZ = -5200;
+box('TowerL', 'darkStone', [TX - 380, 1500, TZ], [520, 3600, 520], rgba(0.8, 0.8, 0.85));
+box('TowerR', 'darkStone', [TX + 380, 1500, TZ], [520, 3600, 520], rgba(0.8, 0.8, 0.85));
+box('TowerBaseL', 'darkStone', [TX - 380, 100, TZ], [820, 700, 820]);
+box('TowerBaseR', 'darkStone', [TX + 380, 100, TZ], [820, 700, 820]);
+box('CyanStripL', 'cyanStrip', [TX - 120, 1500, TZ + 270], [24, 3400, 14]);
+box('CyanStripR', 'cyanStrip', [TX + 120, 1500, TZ + 270], [24, 3400, 14]);
+box('RingBridge', 'wetMetal', [TX, 3350, TZ], [1500, 70, 140], rgba(0.7, 0.75, 0.8));
+box('Pod', 'coolWindow', [TX, 2100, TZ + 100], [440, 90, 300]);
+
+// ---- skyline: the environment panorama is the skyline; no boxes here ----
+
+// ---- lights: 16 is the engine's per-frame cap, so every one earns its slot ----
+const sodium = rgba(1.0, 0.62, 0.25);
+pointLight('DeckLamp', [-760, 400, -200], sodium, 0.65, 900);
+pointLight('DeckLamp2', [-250, 330, 420], sodium, 0.45, 700);
+pointLight('StreetLamp1', [1150, -80, -700], sodium, 0.55, 900);
+pointLight('StreetLamp2', [1150, -80, -1500], sodium, 0.55, 900);
+pointLight('StreetLamp3', [1150, -80, -2300], sodium, 0.55, 900);
+pointLight('BalconyGlowR', [1900, 200, -300], sodium, 0.6, 1200);
+pointLight('BalconyGlowR2', [2300, 400, -1300], sodium, 0.6, 1200);
+pointLight('MagentaFill', [1550, 360, -800], rgba(1.0, 0.1, 0.65), 0.7, 1100);
+pointLight('TrainGlow', [500, 200, -1500], rgba(0.55, 0.8, 1.0), 0.45, 900);
+pointLight('TowerCyan', [TX, 1200, TZ + 600], rgba(0.1, 0.8, 1.0), 1.0, 2600);
+pointLight('TowerBase', [TX, 100, TZ + 900], sodium, 0.6, 1800);
+pointLight('BridgeGlow', [200, 0, -2300], sodium, 0.4, 1400);
+
+const scene = { version: 4, name: 'Main', entities };
+writeFileSync(path.join(SCENES, 'main.esscene'), JSON.stringify(scene, null, 2));
+writeFileSync(path.join(ROOT, 'project.esproject'), JSON.stringify({
+ formatVersion: '1',
+ name: 'Neon Ascension',
+ description: 'A rain-soaked night city grey-box: reflections, warm/cold light contrast and emissive bloom.',
+ tag: '3D',
+ version: '0.1.0',
+ defaultScene: 'assets/scenes/main.esscene',
+ designResolution: { width: 1920, height: 1080 },
+ spineVersion: 'none',
+}, null, 2));
+console.log(`wrote ${entities.length} entities, ${Object.keys(materials).length} materials`);
diff --git a/examples/neon-ascension/tsconfig.json b/examples/neon-ascension/tsconfig.json
new file mode 100644
index 000000000..105dd19fa
--- /dev/null
+++ b/examples/neon-ascension/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "strict": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "declaration": false,
+ "outDir": "./dist",
+ "rootDir": ".",
+ "paths": {
+ "esengine": ["./.esengine/sdk/index.d.ts"],
+ "estella-plugin-*": ["./.esengine/packages/*"],
+ "esengine/wasm": ["./.esengine/sdk/wasm.d.ts"]
+ }
+ },
+ "include": ["src/**/*"],
+ "exclude": ["node_modules"]
+}