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): Terrain & Water grows its plants from world rules and the lakewood art

yhh2191adb488ba
diff --git a/examples/terrain-water/assets/materials/flowers.esmaterial b/examples/terrain-water/assets/materials/flowers.esmaterial
deleted file mode 100644
index 72b9e3a5e..000000000
--- a/examples/terrain-water/assets/materials/flowers.esmaterial
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "version": "1.0",
- "type": "material",
- "shader": "builtin:foliage",
- "blendMode": 0,
- "depthTest": true,
- "depthWrite": true,
- "cull": 0,
- "properties": {
- "u_baseColor": {
- "r": 0.12,
- "g": 0.22,
- "b": 0.06,
- "a": 1
- },
- "u_tipColor": {
- "r": 0.98,
- "g": 0.84,
- "b": 0.3,
- "a": 1
- },
- "u_windStrength": 6,
- "u_windSpeed": 1.2,
- "u_windDirection": 30,
- "u_gustScale": 0.0015,
- "u_flutter": 0.35,
- "u_translucency": 0.5
- }
-}
diff --git a/examples/terrain-water/assets/materials/flowers.esmaterial.meta b/examples/terrain-water/assets/materials/flowers.esmaterial.meta
deleted file mode 100644
index e6ad29a08..000000000
--- a/examples/terrain-water/assets/materials/flowers.esmaterial.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "a10f1a20-6a3c-4592-a38b-55edfce4428f",
- "version": "2.0",
- "type": "material",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/materials/meadow.esmaterial b/examples/terrain-water/assets/materials/meadow.esmaterial
deleted file mode 100644
index da9fbf7b9..000000000
--- a/examples/terrain-water/assets/materials/meadow.esmaterial
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "version": "1.0",
- "type": "material",
- "shader": "builtin:foliage",
- "blendMode": 0,
- "depthTest": true,
- "depthWrite": true,
- "cull": 0,
- "properties": {
- "u_baseColor": {
- "r": 0.1,
- "g": 0.2,
- "b": 0.05,
- "a": 1
- },
- "u_tipColor": {
- "r": 0.5,
- "g": 0.66,
- "b": 0.22,
- "a": 1
- },
- "u_windStrength": 6,
- "u_windSpeed": 1.2,
- "u_windDirection": 30,
- "u_gustScale": 0.0015,
- "u_flutter": 0.35,
- "u_translucency": 0.5
- }
-}
diff --git a/examples/terrain-water/assets/materials/meadow.esmaterial.meta b/examples/terrain-water/assets/materials/meadow.esmaterial.meta
deleted file mode 100644
index bfd44028c..000000000
--- a/examples/terrain-water/assets/materials/meadow.esmaterial.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "e52f2ae5-9650-4508-86e7-343999780d8d",
- "version": "2.0",
- "type": "material",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/materials/pine.esmaterial b/examples/terrain-water/assets/materials/pine.esmaterial
deleted file mode 100644
index 8bce7df00..000000000
--- a/examples/terrain-water/assets/materials/pine.esmaterial
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "version": "1.0",
- "type": "material",
- "shader": "builtin:foliage",
- "blendMode": 0,
- "depthTest": true,
- "depthWrite": true,
- "cull": 0,
- "properties": {
- "u_albedo": "assets/textures/pine.png",
- "u_useTexture": 1,
- "u_baseColor": {
- "r": 1,
- "g": 1,
- "b": 1,
- "a": 1
- },
- "u_tipColor": {
- "r": 1,
- "g": 1,
- "b": 1,
- "a": 1
- },
- "u_windStrength": 9,
- "u_windSpeed": 0.9,
- "u_windDirection": 30,
- "u_gustScale": 0.0006,
- "u_flutter": 0.1,
- "u_translucency": 0.15,
- "u_roughness": 0.9
- }
-}
diff --git a/examples/terrain-water/assets/materials/pine.esmaterial.meta b/examples/terrain-water/assets/materials/pine.esmaterial.meta
deleted file mode 100644
index 5f7183769..000000000
--- a/examples/terrain-water/assets/materials/pine.esmaterial.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "b863e686-da7e-417d-8a28-57886a1e184f",
- "version": "2.0",
- "type": "material",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/materials/reeds.esmaterial b/examples/terrain-water/assets/materials/reeds.esmaterial
deleted file mode 100644
index 7bbbd7a02..000000000
--- a/examples/terrain-water/assets/materials/reeds.esmaterial
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "version": "1.0",
- "type": "material",
- "shader": "builtin:foliage",
- "blendMode": 0,
- "depthTest": true,
- "depthWrite": true,
- "cull": 0,
- "properties": {
- "u_baseColor": {
- "r": 0.16,
- "g": 0.2,
- "b": 0.08,
- "a": 1
- },
- "u_tipColor": {
- "r": 0.62,
- "g": 0.58,
- "b": 0.32,
- "a": 1
- },
- "u_windStrength": 10,
- "u_windSpeed": 1.2,
- "u_windDirection": 30,
- "u_gustScale": 0.0015,
- "u_flutter": 0.35,
- "u_translucency": 0.5
- }
-}
diff --git a/examples/terrain-water/assets/materials/reeds.esmaterial.meta b/examples/terrain-water/assets/materials/reeds.esmaterial.meta
deleted file mode 100644
index 69c33bf19..000000000
--- a/examples/terrain-water/assets/materials/reeds.esmaterial.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "bc35dbd2-86e6-4fff-b633-10e9fad136b5",
- "version": "2.0",
- "type": "material",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/models/pine.esmesh b/examples/terrain-water/assets/models/pine.esmesh
deleted file mode 100644
index 3ad9c7c1b..000000000
Binary files a/examples/terrain-water/assets/models/pine.esmesh and /dev/null differ
diff --git a/examples/terrain-water/assets/models/pine.esmesh.meta b/examples/terrain-water/assets/models/pine.esmesh.meta
deleted file mode 100644
index 183609c94..000000000
--- a/examples/terrain-water/assets/models/pine.esmesh.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "85689922-3d9a-4e3e-badd-a82c2ab45ccb",
- "version": "2.0",
- "type": "mesh",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/plants/ground/grass_albedo.png b/examples/terrain-water/assets/plants/ground/grass_albedo.png
new file mode 100644
index 000000000..19a801653
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/grass_albedo.png differ
diff --git a/examples/terrain-water/assets/plants/ground/grass_albedo.png.meta b/examples/terrain-water/assets/plants/ground/grass_albedo.png.meta
new file mode 100644
index 000000000..69cd4b154
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/grass_albedo.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "17adaf58-9c6c-49d9-8bc3-e1f8ff221708",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": true
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/ground/grass_mask.png b/examples/terrain-water/assets/plants/ground/grass_mask.png
new file mode 100644
index 000000000..248a4f3ce
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/grass_mask.png differ
diff --git a/examples/terrain-water/assets/plants/ground/grass_mask.png.meta b/examples/terrain-water/assets/plants/ground/grass_mask.png.meta
new file mode 100644
index 000000000..8475f4921
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/grass_mask.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "e1c25591-ecab-4dcb-ae1b-8af224b550b0",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/ground/grass_normal.png b/examples/terrain-water/assets/plants/ground/grass_normal.png
new file mode 100644
index 000000000..79bed3b41
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/grass_normal.png differ
diff --git a/examples/terrain-water/assets/plants/ground/grass_normal.png.meta b/examples/terrain-water/assets/plants/ground/grass_normal.png.meta
new file mode 100644
index 000000000..42c9719ad
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/grass_normal.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "0bdc54e1-430f-45ad-b410-d54ca93908d2",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/ground/sand_albedo.png b/examples/terrain-water/assets/plants/ground/sand_albedo.png
new file mode 100644
index 000000000..e574ad06b
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/sand_albedo.png differ
diff --git a/examples/terrain-water/assets/plants/ground/sand_albedo.png.meta b/examples/terrain-water/assets/plants/ground/sand_albedo.png.meta
new file mode 100644
index 000000000..11c698941
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/sand_albedo.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "4ab05784-c0b1-42e0-9345-c98ddfa9c050",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": true
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/ground/sand_mask.png b/examples/terrain-water/assets/plants/ground/sand_mask.png
new file mode 100644
index 000000000..14da42640
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/sand_mask.png differ
diff --git a/examples/terrain-water/assets/plants/ground/sand_mask.png.meta b/examples/terrain-water/assets/plants/ground/sand_mask.png.meta
new file mode 100644
index 000000000..166969737
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/sand_mask.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "76a479ba-4571-4289-a787-83373d1f8729",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/ground/sand_normal.png b/examples/terrain-water/assets/plants/ground/sand_normal.png
new file mode 100644
index 000000000..3fe64441c
Binary files /dev/null and b/examples/terrain-water/assets/plants/ground/sand_normal.png differ
diff --git a/examples/terrain-water/assets/plants/ground/sand_normal.png.meta b/examples/terrain-water/assets/plants/ground/sand_normal.png.meta
new file mode 100644
index 000000000..4831b6a8a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/ground/sand_normal.png.meta
@@ -0,0 +1,13 @@
+{
+ "uuid": "c9f07da9-7478-49cf-b81e-7f1a2b06212d",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 512,
+ "compress": "none",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh
new file mode 100644
index 000000000..c0f97937c
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh.meta b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh.meta
new file mode 100644
index 000000000..ec208794e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "f4a3370d-d62d-4ec4-89c8-98e5204bd9a3",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab
new file mode 100644
index 000000000..59f14f355
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "flower-amber",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "flower-amber",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/flower-amber/flower-amber.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/c6bd1d6d261b.png",
+ "material": "assets/plants/models/flower-amber/flower-amber_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab.meta b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab.meta
new file mode 100644
index 000000000..0fbf1d16a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "ebe6666c-c7ca-4e35-a302-6a08607f8b95",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial.meta
new file mode 100644
index 000000000..8416b5795
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-amber/flower-amber_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c838d118-a8f3-4c3d-897a-9c292e765ed5",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh
new file mode 100644
index 000000000..be8fecdbf
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh.meta b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh.meta
new file mode 100644
index 000000000..935641f5f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "1a22c720-95c0-4c9d-b73b-039341730e42",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab
new file mode 100644
index 000000000..ceb14ae47
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "flower-blue",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "flower-blue",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/flower-blue/flower-blue.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/7b838a37789d.png",
+ "material": "assets/plants/models/flower-blue/flower-blue_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab.meta b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab.meta
new file mode 100644
index 000000000..679f4cc57
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4fdc07f4-0243-438e-afb0-074bde8f7eb8",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial.meta
new file mode 100644
index 000000000..3a152305a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-blue/flower-blue_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bf6f0b33-707d-4269-bf47-85491908ef67",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh
new file mode 100644
index 000000000..93bef542a
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh.meta b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh.meta
new file mode 100644
index 000000000..bf92edc03
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "2e948032-0fcc-4eb8-8b10-7603c9ff34a9",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab
new file mode 100644
index 000000000..c1d84fb9b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "flower-ivory",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "flower-ivory",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/flower-ivory/flower-ivory.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/c39b006790e7.png",
+ "material": "assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab.meta b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab.meta
new file mode 100644
index 000000000..e4d352ff0
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "5d2747e7-9852-4acc-a7b1-5265cc11feb2",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial.meta
new file mode 100644
index 000000000..43e082740
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3ce8b0b5-49f7-4478-af0a-ddd04c8ef6ec",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh
new file mode 100644
index 000000000..1c2b7e876
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh.meta
new file mode 100644
index 000000000..f6f0435bf
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b5dfe7fe-4953-4b50-9daa-49725ab7740e",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab
new file mode 100644
index 000000000..615177a85
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-bank",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-bank",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-bank/granite-bank.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-bank/granite-bank_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab.meta
new file mode 100644
index 000000000..fc0a48778
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c02a005b-f7f8-4273-aeab-779412ec69a2",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial
new file mode 100644
index 000000000..4c2fecf4b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fb385d2130d7.png",
+ "u_occlusionMap": "../../textures/8920cbee1876.png",
+ "u_metallicRoughnessMap": "../../textures/8920cbee1876.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial.meta
new file mode 100644
index 000000000..ad56f2ba3
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/granite-bank_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4a138779-d412-4bb4-bbdb-882e6fb4fd53",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh
new file mode 100644
index 000000000..ba24a4fbc
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh.meta
new file mode 100644
index 000000000..77d264cea
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "95a02d51-1a48-4c8a-bdc8-97a26c63c4ef",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab
new file mode 100644
index 000000000..32d5911fc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-bank",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-bank__lod1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-bank/lod1/granite-bank.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab.meta
new file mode 100644
index 000000000..50fc483e5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "07a53403-fad5-48e2-9208-c3e16ddc9c14",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial
new file mode 100644
index 000000000..0c9d2acfa
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fb385d2130d7.png",
+ "u_occlusionMap": "../../../textures/8920cbee1876.png",
+ "u_metallicRoughnessMap": "../../../textures/8920cbee1876.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial.meta
new file mode 100644
index 000000000..cc4ce1c12
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-bank/lod1/granite-bank_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6470b0fe-3801-4e0e-a81a-8eb89bd34ce7",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh
new file mode 100644
index 000000000..5a6ebe9be
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh.meta
new file mode 100644
index 000000000..2f54ab95d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c8069841-6477-4379-a4f8-4c9b8d096852",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab
new file mode 100644
index 000000000..a57bd8909
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-crown",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-crown",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-crown/granite-crown.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-crown/granite-crown_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab.meta
new file mode 100644
index 000000000..c09087364
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "ba7da9bd-9789-467f-acca-988baef0c36f",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial
new file mode 100644
index 000000000..4ca1c5037
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/e9b6e836c451.png",
+ "u_occlusionMap": "../../textures/1dd589172892.png",
+ "u_metallicRoughnessMap": "../../textures/1dd589172892.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial.meta
new file mode 100644
index 000000000..5cb1c4129
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/granite-crown_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "1b554069-472d-4436-a7b6-08e0a3206f86",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh
new file mode 100644
index 000000000..f387039c2
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh.meta
new file mode 100644
index 000000000..e9f3933be
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6c92c984-d51a-48fb-801e-698c8e6a46f8",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab
new file mode 100644
index 000000000..b6454a97e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-crown",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-crown__lod1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-crown/lod1/granite-crown.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab.meta
new file mode 100644
index 000000000..11e7959d9
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bb2a19fc-d84f-49cc-8029-48c10033a712",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial
new file mode 100644
index 000000000..360a3c1d5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/e9b6e836c451.png",
+ "u_occlusionMap": "../../../textures/1dd589172892.png",
+ "u_metallicRoughnessMap": "../../../textures/1dd589172892.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial.meta
new file mode 100644
index 000000000..46a0a6a14
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-crown/lod1/granite-crown_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bed8b5ac-2b83-4483-a5cf-31a9cb1d8411",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh
new file mode 100644
index 000000000..cd4f10007
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh.meta
new file mode 100644
index 000000000..562678599
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "03ad2c36-524a-410b-bc49-ef6f446b29df",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab
new file mode 100644
index 000000000..44054423a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-split",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-split",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-split/granite-split.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-split/granite-split_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab.meta
new file mode 100644
index 000000000..7f4bcc969
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/granite-split.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "d5e8ba10-24ff-4528-9fdd-398877e88d4a",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial
new file mode 100644
index 000000000..0080b60ed
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/2047a69b34b7.png",
+ "u_occlusionMap": "../../textures/bd4367bf2d30.png",
+ "u_metallicRoughnessMap": "../../textures/bd4367bf2d30.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial.meta
new file mode 100644
index 000000000..9be863326
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/granite-split_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bf3e3a3c-7a93-4df9-affb-77779400db4f",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh
new file mode 100644
index 000000000..7a7b78b88
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh.meta b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh.meta
new file mode 100644
index 000000000..c8dc0919a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "2216db70-d243-4252-bc02-a519e7af6f28",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab
new file mode 100644
index 000000000..c4581ec23
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "granite-split",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "granite-split__lod1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/granite-split/lod1/granite-split.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "material": "assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab.meta b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab.meta
new file mode 100644
index 000000000..3c48b60a0
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c673258d-e3c7-468c-8ad4-d70f6f157451",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial
new file mode 100644
index 000000000..56151ccdd
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial
@@ -0,0 +1,17 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/2047a69b34b7.png",
+ "u_occlusionMap": "../../../textures/bd4367bf2d30.png",
+ "u_metallicRoughnessMap": "../../../textures/bd4367bf2d30.png",
+ "u_metallic": 1,
+ "u_roughness": 1,
+ "u_occlusionStrength": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial.meta
new file mode 100644
index 000000000..b1920b65c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/granite-split/lod1/granite-split_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "8d11252a-9ab1-40cd-9415-589be0ede71e",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh
new file mode 100644
index 000000000..078c02ee9
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh.meta b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh.meta
new file mode 100644
index 000000000..97dc57ca5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "daf39cf9-d760-45ec-aa25-6eeb671aa6f6",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab
new file mode 100644
index 000000000..f6efb9adb
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "grass-fine",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "grass-fine",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/grass-fine/grass-fine.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/grass-fine/grass-fine_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab.meta b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab.meta
new file mode 100644
index 000000000..01249cff9
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6a0bcdbf-1ee3-475e-b5db-b4b7d5df32ee",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial.meta
new file mode 100644
index 000000000..a137acb0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/grass-fine_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "0d4e9462-6898-420b-8d36-1cbc0f7bfe09",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh
new file mode 100644
index 000000000..1f9df6348
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh.meta b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh.meta
new file mode 100644
index 000000000..55ee5f750
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "d11d72f5-8c8d-4fc1-9e77-5d0aa764bc1c",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab
new file mode 100644
index 000000000..e4721b3de
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "grass-fine",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "grass-fine__lod1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/grass-fine/lod1/grass-fine.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab.meta b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab.meta
new file mode 100644
index 000000000..5ff889e29
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "a323968a-9260-4613-85de-34732f47376f",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial.meta
new file mode 100644
index 000000000..378bc8ee7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-fine/lod1/grass-fine_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "e23a07db-6905-4aef-95ab-f23a0633907f",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh
new file mode 100644
index 000000000..9b3f22308
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh.meta b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh.meta
new file mode 100644
index 000000000..434fafa13
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "1db2cb73-4b14-49dd-8fa4-cee091fe75af",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab
new file mode 100644
index 000000000..a3d585cbf
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "grass-meadow",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "grass-meadow",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/grass-meadow/grass-meadow.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab.meta b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab.meta
new file mode 100644
index 000000000..5570233ff
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "ffb76b62-aab4-45b0-b2d1-b8da5793f429",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial.meta
new file mode 100644
index 000000000..e333efd5c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "f887fca3-9594-4e4d-af7d-2af000428605",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh
new file mode 100644
index 000000000..855454244
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh.meta b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh.meta
new file mode 100644
index 000000000..ea7658981
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "02acc5da-cc97-413e-8490-11140c94f93c",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab
new file mode 100644
index 000000000..1020c6e7d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "grass-meadow",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "grass-meadow__lod1",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab.meta b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab.meta
new file mode 100644
index 000000000..ac86738f4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "a376e170-d1d9-412b-a279-a9276b5eba29",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial.meta
new file mode 100644
index 000000000..b308dc73d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/grass-meadow/lod1/grass-meadow_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6b86241a-0721-477e-91a1-5b84789d9fed",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab
new file mode 100644
index 000000000..ab635f274
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab
@@ -0,0 +1,112 @@
+{
+ "version": "2",
+ "name": "reed-lakeside",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "reed-lakeside__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "reed-lakeside_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "reed-lakeside_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "reed-lakeside_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial",
+ "color": {
+ "r": 0.1899999976158142,
+ "g": 0.10999999940395355,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab.meta
new file mode 100644
index 000000000..6d83e269f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "8b050da0-702b-474c-9680-98ef05f12156",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh
new file mode 100644
index 000000000..5c1b977a6
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh.meta
new file mode 100644
index 000000000..5d5a00e66
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "2badda09-3651-4012-8fd1-7ca0c1c7ff58",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh
new file mode 100644
index 000000000..68f36007c
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh.meta
new file mode 100644
index 000000000..6115956d7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "f58ffe16-e2de-4151-ba47-0cfd4a3598af",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh
new file mode 100644
index 000000000..916936df4
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh.meta
new file mode 100644
index 000000000..1a1c2cf66
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "549c5b3f-c93e-48ea-a1a1-d6f0f517cb33",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial.meta
new file mode 100644
index 000000000..0a2392828
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "1d304f82-3ceb-4c27-916d-958fdd8a07f8",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial.meta
new file mode 100644
index 000000000..2029a18b7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c2bb5f1b-fa31-4bdd-935e-fc5bf555be47",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial.meta
new file mode 100644
index 000000000..9d5b89557
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/lod1/reed-lakeside_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3128fe11-6bf8-40c7-9181-7f9c113541b4",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab
new file mode 100644
index 000000000..a04134836
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab
@@ -0,0 +1,112 @@
+{
+ "version": "2",
+ "name": "reed-lakeside",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "reed-lakeside",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "reed-lakeside_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "reed-lakeside_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "reed-lakeside_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial",
+ "color": {
+ "r": 0.1899999976158142,
+ "g": 0.10999999940395355,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab.meta
new file mode 100644
index 000000000..26a576608
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "80dc607a-b6a0-459c-8e0a-0b3205685e4f",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh
new file mode 100644
index 000000000..26fd3d8f9
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh.meta
new file mode 100644
index 000000000..b0f29f2d5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3ea1c50f-7977-42e7-9d96-3273c7e3d318",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh
new file mode 100644
index 000000000..534217148
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh.meta
new file mode 100644
index 000000000..dc1f7152b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "625428a1-3cb5-40ec-bf34-9e6cebf9e5a8",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh
new file mode 100644
index 000000000..4a22c692b
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh.meta
new file mode 100644
index 000000000..1c9fb21f4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "e4bdf484-8d1b-4897-a2ad-d18b1e94f87c",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial.meta
new file mode 100644
index 000000000..0dd6096bc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3fcdb736-4ea5-4064-a1d6-ba729da25012",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial.meta
new file mode 100644
index 000000000..e6f7f58a6
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "11f4ac5e-25df-444b-b61e-e38b375293a2",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial.meta
new file mode 100644
index 000000000..46e906d9b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "7430bcd6-6414-4c99-9c4b-9dbbf1232db7",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab
new file mode 100644
index 000000000..9a2b443d2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab
@@ -0,0 +1,113 @@
+{
+ "version": "2",
+ "name": "shrub-hazel",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "shrub-hazel__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "shrub-hazel_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "shrub-hazel_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "shrub-hazel_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab.meta
new file mode 100644
index 000000000..f51f0f6f9
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "447b6240-2ce7-47fb-9022-43f1859bcbd9",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh
new file mode 100644
index 000000000..dd46b274f
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh.meta
new file mode 100644
index 000000000..d70f4df7b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "799a476c-6ffc-401b-9757-760cbefc76f0",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh
new file mode 100644
index 000000000..829254930
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh.meta
new file mode 100644
index 000000000..2967823ad
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b4f1104a-4774-4e07-b59d-97c5cf728ccb",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh
new file mode 100644
index 000000000..ae76fe618
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh.meta
new file mode 100644
index 000000000..e2cae87d4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4e17f7a5-8b0a-4bd9-a53e-6e7a9223581f",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial
new file mode 100644
index 000000000..863ac88fa
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial.meta
new file mode 100644
index 000000000..3445bd345
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b0551c61-fe82-4add-a512-e51300aa5a2f",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial.meta
new file mode 100644
index 000000000..33a37399b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "268af015-a2e6-4063-b956-4a4d533ae730",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial.meta
new file mode 100644
index 000000000..8b2f5ad3f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/lod1/shrub-hazel_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bb0cc371-e527-436d-a0d0-b0036f6b4ee9",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab
new file mode 100644
index 000000000..eae729341
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab
@@ -0,0 +1,113 @@
+{
+ "version": "2",
+ "name": "shrub-hazel",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "shrub-hazel",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "shrub-hazel_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "shrub-hazel_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "shrub-hazel_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab.meta
new file mode 100644
index 000000000..5eb41e2a4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4f170f62-9f83-46f0-9a24-24a4b0b581f4",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh
new file mode 100644
index 000000000..dd46b274f
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh.meta
new file mode 100644
index 000000000..3ecab720f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "9dc92a86-bd95-420c-bd67-f725efa1c48b",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh
new file mode 100644
index 000000000..00750a182
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh.meta
new file mode 100644
index 000000000..b932ee7b2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b91feb0f-850c-4e5e-a7f6-63123a3a7b25",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh
new file mode 100644
index 000000000..f6b36d991
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh.meta
new file mode 100644
index 000000000..e0c470ddb
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "140e472e-fb95-4a50-a858-a95e427e041e",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial
new file mode 100644
index 000000000..06340008f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial.meta
new file mode 100644
index 000000000..972f22e70
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "adc9eb53-a6cb-48ef-a4ae-d3a5633ed165",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial.meta
new file mode 100644
index 000000000..843b40c1d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "637754c5-98db-40aa-9d70-872c347533c9",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial.meta
new file mode 100644
index 000000000..8b23e91b8
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4d24b946-8095-438b-aa15-5ccbcbd0f465",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab
new file mode 100644
index 000000000..e297e32bf
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab
@@ -0,0 +1,113 @@
+{
+ "version": "2",
+ "name": "shrub-woodland-coppice",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "shrub-woodland-coppice__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "shrub-woodland-coppice_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "shrub-woodland-coppice_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "shrub-woodland-coppice_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab.meta
new file mode 100644
index 000000000..ba334fe44
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "28161598-72e1-4cae-9c4e-460c6752dcc0",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh
new file mode 100644
index 000000000..cdf812484
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh.meta
new file mode 100644
index 000000000..c6d11f548
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "282eaa5b-7184-4c1d-95bf-ddef6fdf9739",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh
new file mode 100644
index 000000000..f0434d76a
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh.meta
new file mode 100644
index 000000000..0994d4f35
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b1437c0c-8a25-4e73-9914-9f5453c1a0b2",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh
new file mode 100644
index 000000000..cf645f786
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh.meta
new file mode 100644
index 000000000..f259d465f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "db6f1b10-2f5e-4245-bd67-65dfd092010d",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial
new file mode 100644
index 000000000..863ac88fa
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial.meta
new file mode 100644
index 000000000..a7e4467c5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3264c33a-fa70-4f01-893d-733fad1895f9",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial.meta
new file mode 100644
index 000000000..cfa233d63
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "33a96f7a-7109-4697-a578-603a8d1c610b",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial.meta
new file mode 100644
index 000000000..c00ee2bfc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "20a203e1-c4a1-49d7-8ba0-eb7ce0d83d1e",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab
new file mode 100644
index 000000000..0968ebb88
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab
@@ -0,0 +1,113 @@
+{
+ "version": "2",
+ "name": "shrub-woodland-coppice",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "shrub-woodland-coppice",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1",
+ "n0_p2"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "shrub-woodland-coppice_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "shrub-woodland-coppice_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p2",
+ "name": "shrub-woodland-coppice_0_2",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh",
+ "lit": true,
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial",
+ "color": {
+ "r": 0.10000000149011612,
+ "g": 0.2199999988079071,
+ "b": 0.03500000014901161,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab.meta
new file mode 100644
index 000000000..3deeab7d2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "878234e1-50de-435c-83c4-a28b3f2256bd",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh
new file mode 100644
index 000000000..cdf812484
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh.meta
new file mode 100644
index 000000000..7869d1558
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "e78cd63c-df6a-4ded-abac-d34dc0dbcb12",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh
new file mode 100644
index 000000000..838e6f401
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh.meta
new file mode 100644
index 000000000..1ca75e954
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "a4ff9554-2cac-47c3-bc47-0c77175d4998",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh
new file mode 100644
index 000000000..557c49090
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh.meta
new file mode 100644
index 000000000..304a3ed41
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "ad7a2592-2731-4215-9b72-08ea249b7fbf",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial
new file mode 100644
index 000000000..06340008f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial.meta
new file mode 100644
index 000000000..c6cab2ec0
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "4a49ca21-549e-4944-b6fe-1def9716d368",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial.meta
new file mode 100644
index 000000000..1859dd7f7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "2b93f162-fc20-4cce-ab22-33591bbd20db",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial
new file mode 100644
index 000000000..1a291689a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial
@@ -0,0 +1,13 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.7799999713897705
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial.meta b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial.meta
new file mode 100644
index 000000000..886a2a966
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "f51ccc80-5819-400f-9264-cf8afaa45b48",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh
new file mode 100644
index 000000000..77f699f86
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh.meta
new file mode 100644
index 000000000..0e6943bd4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "57ec2347-d80b-4e73-bab9-e57675f831f7",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab
new file mode 100644
index 000000000..93ec0e2ea
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "tree-birch",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-birch__far",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-birch/far/tree-birch.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/8540ee80eab4.png",
+ "material": "assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab.meta
new file mode 100644
index 000000000..903f4cce7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "078d282c-067b-4ed3-bc10-c760c3bee612",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial.meta
new file mode 100644
index 000000000..00b4dfc7f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6598f1b2-2c7a-4b4e-90f2-addcf3731a02",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab
new file mode 100644
index 000000000..6ed56ce50
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-birch",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-birch__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-birch_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/6ac5a795fda4.png",
+ "material": "assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-birch_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab.meta
new file mode 100644
index 000000000..7511729a6
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "a8c5b5d7-874e-4c32-9fdc-bdc7f3dc0e0e",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh
new file mode 100644
index 000000000..f81f6bb5f
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh.meta
new file mode 100644
index 000000000..eececb770
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "63abd481-d324-4209-bff0-eea5b1524bc2",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh
new file mode 100644
index 000000000..5dc3fe3a3
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh.meta
new file mode 100644
index 000000000..452aea842
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3e1ba5a9-44fd-470a-a2a2-d9c63f03cb4e",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial
new file mode 100644
index 000000000..a56b72b2c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/b4e751c63a70.png",
+ "u_metallicRoughnessMap": "../../../textures/5da59fa2f12b.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial.meta
new file mode 100644
index 000000000..c2271de6b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b7bfec09-a2ab-474e-a1de-8cf68af91963",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial.meta
new file mode 100644
index 000000000..9d83fc656
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/lod1/tree-birch_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3a32fd62-1d6e-4fca-9784-f81f524f471e",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab
new file mode 100644
index 000000000..fa1f6a5cc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-birch",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-birch",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-birch_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-birch/tree-birch_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/6ac5a795fda4.png",
+ "material": "assets/plants/models/tree-birch/tree-birch_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-birch_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-birch/tree-birch_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-birch/tree-birch_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab.meta
new file mode 100644
index 000000000..8b88042fc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "9ff46bce-dc84-4b29-8a14-28e9deaca886",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh
new file mode 100644
index 000000000..4cde3210d
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh.meta
new file mode 100644
index 000000000..d7abfb0e4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "504bc42e-f25c-436e-b98c-f7218282f92f",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh
new file mode 100644
index 000000000..d9a5b7814
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh.meta
new file mode 100644
index 000000000..88436ce2c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "9fe26146-d5c0-4140-9237-d0b8d484e014",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial
new file mode 100644
index 000000000..48e80db49
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/b4e751c63a70.png",
+ "u_metallicRoughnessMap": "../../textures/5da59fa2f12b.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial.meta
new file mode 100644
index 000000000..f005c92f1
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "b99dfd73-9f87-45ad-a45b-735e35c8c832",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial.meta
new file mode 100644
index 000000000..cc1b04ab2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-birch/tree-birch_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "8747cd57-38db-4645-87e0-4a98f76023bf",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh
new file mode 100644
index 000000000..27c9751d2
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh.meta
new file mode 100644
index 000000000..e102d4cd0
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "224ee7f7-05a0-44ad-b376-20fac6128ee5",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab
new file mode 100644
index 000000000..990a1eac4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "tree-oak",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-oak__far",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-oak/far/tree-oak.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/a0835f44f491.png",
+ "material": "assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab.meta
new file mode 100644
index 000000000..ff5729e8e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "23950474-cce0-439f-818c-a08fe079e638",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial.meta
new file mode 100644
index 000000000..964ee39cc
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "df502dd4-cef7-4807-8298-58edb85d0383",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab
new file mode 100644
index 000000000..58e1b059e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-oak",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-oak__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-oak_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-oak_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab.meta
new file mode 100644
index 000000000..39995ac4a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "7fb6a0d3-51dc-4066-9742-1b8e2b4b2df2",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh
new file mode 100644
index 000000000..6c19ecf42
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh.meta
new file mode 100644
index 000000000..9a656d062
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "dbd825d6-31a9-49fe-bf94-02faa6216955",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh
new file mode 100644
index 000000000..7c19e89a6
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh.meta
new file mode 100644
index 000000000..d8cb24f27
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "f79dafb6-a366-4149-92f3-6495e5bd1d48",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial
new file mode 100644
index 000000000..863ac88fa
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial.meta
new file mode 100644
index 000000000..988fc3991
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "a37c6325-0954-4504-89a0-e95842eed4bf",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial.meta
new file mode 100644
index 000000000..ac237b76d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/lod1/tree-oak_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "9e714eea-7117-46c5-ae4e-fd03e68ea74b",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab
new file mode 100644
index 000000000..886b4a27e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-oak",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-oak",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-oak_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-oak/tree-oak_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/tree-oak/tree-oak_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-oak_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-oak/tree-oak_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-oak/tree-oak_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab.meta
new file mode 100644
index 000000000..0c0030f1d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "973cef46-c948-4f6c-a620-331a3c85d212",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh
new file mode 100644
index 000000000..00ccd7374
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh.meta
new file mode 100644
index 000000000..0bc54a257
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c363b496-2f49-4be7-94c2-4df07649e917",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh
new file mode 100644
index 000000000..1b0abcb57
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh.meta
new file mode 100644
index 000000000..89acd69a5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "5387b002-205f-43c0-b7cc-9b37914d331f",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial
new file mode 100644
index 000000000..06340008f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial.meta
new file mode 100644
index 000000000..9b98ad6e8
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3b83d22f-f881-4e78-b62d-983bf976d16c",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial.meta
new file mode 100644
index 000000000..b3f3c1567
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-oak/tree-oak_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "ebeb0891-163a-4d18-a076-32b8bec19e48",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh
new file mode 100644
index 000000000..17777e0da
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh.meta
new file mode 100644
index 000000000..c6fce5a1a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "6fbdb5da-1f04-4d45-9515-4094e41782ec",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab
new file mode 100644
index 000000000..ae8800a17
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab
@@ -0,0 +1,37 @@
+{
+ "version": "2",
+ "name": "tree-willow",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-willow__far",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-willow/far/tree-willow.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/6f7a57043a90.png",
+ "material": "assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab.meta
new file mode 100644
index 000000000..c1dcb92e7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bcad4da5-bee1-40ab-aef1-d51e0bc4ff69",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial
new file mode 100644
index 000000000..6f271ac0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial
@@ -0,0 +1,14 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_metallic": 0,
+ "u_roughness": 0.8500000238418579,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial.meta
new file mode 100644
index 000000000..8ec7cf8f3
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "bf1ce716-de79-4c96-b3dc-24d80ab1c2e2",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab
new file mode 100644
index 000000000..4420de534
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-willow",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-willow__lod1",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-willow_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-willow_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab.meta
new file mode 100644
index 000000000..f36fb1482
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "c55e0e90-52e3-49f0-92d4-4ec892f2ae31",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh
new file mode 100644
index 000000000..92859fab9
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh.meta
new file mode 100644
index 000000000..b31473962
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "849dbce4-4ef8-4a7e-b5fa-010f84dadeda",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh
new file mode 100644
index 000000000..d9b63e5e3
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh.meta
new file mode 100644
index 000000000..c325a7a9d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "234aa72b-69d3-4c0a-8c2c-0bf04fd9b761",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial
new file mode 100644
index 000000000..863ac88fa
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial.meta
new file mode 100644
index 000000000..c55883aa2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3898ba78-e103-42c6-a962-be4b0629dfad",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial
new file mode 100644
index 000000000..0ba1bdda4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial.meta
new file mode 100644
index 000000000..4753a183d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/lod1/tree-willow_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "77121a5d-201b-4a39-82d9-9b67759701b7",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab
new file mode 100644
index 000000000..168c8012c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab
@@ -0,0 +1,83 @@
+{
+ "version": "2",
+ "name": "tree-willow",
+ "rootEntityId": "n0",
+ "entities": [
+ {
+ "prefabEntityId": "n0",
+ "name": "tree-willow",
+ "parent": null,
+ "children": [
+ "n0_p0",
+ "n0_p1"
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p0",
+ "name": "tree-willow_0_0",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-willow/tree-willow_0_0.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "material": "assets/plants/models/tree-willow/tree-willow_m0.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "prefabEntityId": "n0_p1",
+ "name": "tree-willow_0_1",
+ "parent": "n0",
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "MeshRenderer",
+ "data": {
+ "mesh": "assets/plants/models/tree-willow/tree-willow_0_1.esmesh",
+ "lit": true,
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "material": "assets/plants/models/tree-willow/tree-willow_m1.esmaterial",
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "opaque": true,
+ "enabled": true
+ }
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab.meta b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab.meta
new file mode 100644
index 000000000..30cedea63
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow.esprefab.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "e069516d-1931-49c2-930d-86fb05012794",
+ "version": "2.0",
+ "type": "prefab",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh
new file mode 100644
index 000000000..45a8a81a9
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh.meta
new file mode 100644
index 000000000..b1afb66cf
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_0.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "aa00b12b-fbd5-47c7-8caf-ceed945a50ee",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh
new file mode 100644
index 000000000..31e431909
Binary files /dev/null and b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh differ
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh.meta b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh.meta
new file mode 100644
index 000000000..70c81aa91
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_0_1.esmesh.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "77f4ebbd-e23c-4404-bb14-d233cbaa96f4",
+ "version": "2.0",
+ "type": "mesh",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial
new file mode 100644
index 000000000..06340008f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial
@@ -0,0 +1,15 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/ff15562f9f8e.png",
+ "u_metallicRoughnessMap": "../../textures/e4f3080983d9.png",
+ "u_metallic": 0,
+ "u_roughness": 1
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial.meta
new file mode 100644
index 000000000..63d081816
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m0.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "193d853e-abd9-4f13-bd98-e0c91618ec60",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial
new file mode 100644
index 000000000..8683d7d4e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial
@@ -0,0 +1,16 @@
+{
+ "version": "1.0",
+ "type": "material",
+ "shader": "builtin:model",
+ "blendMode": 9,
+ "depthTest": true,
+ "depthWrite": true,
+ "cull": 0,
+ "properties": {
+ "u_normalMap": "../../textures/fa9b71309439.png",
+ "u_metallicRoughnessMap": "../../textures/60a100a22efa.png",
+ "u_metallic": 0,
+ "u_roughness": 1,
+ "u_alphaCutoff": 0.45
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial.meta b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial.meta
new file mode 100644
index 000000000..8ed9231c7
--- /dev/null
+++ b/examples/terrain-water/assets/plants/models/tree-willow/tree-willow_m1.esmaterial.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "3ddc098c-ef75-497b-bfba-d700e21f8ad5",
+ "version": "2.0",
+ "type": "material",
+ "importer": {}
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/06df0060cfc9.png b/examples/terrain-water/assets/plants/textures/06df0060cfc9.png
new file mode 100644
index 000000000..63d0edc50
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/06df0060cfc9.png differ
diff --git a/examples/terrain-water/assets/plants/textures/06df0060cfc9.png.meta b/examples/terrain-water/assets/plants/textures/06df0060cfc9.png.meta
new file mode 100644
index 000000000..c4dccace2
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/06df0060cfc9.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "72f74913-8eb6-4e1b-b866-1d14d72b99fd",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": true,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/1dd589172892.png b/examples/terrain-water/assets/plants/textures/1dd589172892.png
new file mode 100644
index 000000000..e5a1bfbc5
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/1dd589172892.png differ
diff --git a/examples/terrain-water/assets/plants/textures/1dd589172892.png.meta b/examples/terrain-water/assets/plants/textures/1dd589172892.png.meta
new file mode 100644
index 000000000..1c926d6d3
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/1dd589172892.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "ff883e9a-4111-4d7e-8e4d-ed873286baaf",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/2047a69b34b7.png b/examples/terrain-water/assets/plants/textures/2047a69b34b7.png
new file mode 100644
index 000000000..b97a99e94
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/2047a69b34b7.png differ
diff --git a/examples/terrain-water/assets/plants/textures/2047a69b34b7.png.meta b/examples/terrain-water/assets/plants/textures/2047a69b34b7.png.meta
new file mode 100644
index 000000000..cf75a246d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/2047a69b34b7.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "d312cb11-2655-4146-8dd0-7f989f2698ec",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png b/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png
new file mode 100644
index 000000000..431f3a00f
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png differ
diff --git a/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png.meta b/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png.meta
new file mode 100644
index 000000000..2894540e3
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/5da59fa2f12b.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "ae204fc9-ab20-4299-bbfd-82feb189e1ea",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/60a100a22efa.png b/examples/terrain-water/assets/plants/textures/60a100a22efa.png
new file mode 100644
index 000000000..982593f49
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/60a100a22efa.png differ
diff --git a/examples/terrain-water/assets/plants/textures/60a100a22efa.png.meta b/examples/terrain-water/assets/plants/textures/60a100a22efa.png.meta
new file mode 100644
index 000000000..9789532f1
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/60a100a22efa.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "b4b8085f-b274-44e8-a9f2-1b77606457e9",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "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
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png b/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png
new file mode 100644
index 000000000..24cc454dd
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png differ
diff --git a/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png.meta b/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png.meta
new file mode 100644
index 000000000..5f7fc4e8d
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/6ac5a795fda4.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "809a1a39-92d0-4cc1-8a2e-d3340fd55b5b",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": true,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/6f7a57043a90.png b/examples/terrain-water/assets/plants/textures/6f7a57043a90.png
new file mode 100644
index 000000000..fb19ddfae
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/6f7a57043a90.png differ
diff --git a/examples/terrain-water/assets/plants/textures/6f7a57043a90.png.meta b/examples/terrain-water/assets/plants/textures/6f7a57043a90.png.meta
new file mode 100644
index 000000000..0ec9e2c0a
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/6f7a57043a90.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "c0cb0a43-b4a9-4ea3-96c8-1481d365f1a8",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/7b838a37789d.png b/examples/terrain-water/assets/plants/textures/7b838a37789d.png
new file mode 100644
index 000000000..0e31b3370
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/7b838a37789d.png differ
diff --git a/examples/terrain-water/assets/plants/textures/7b838a37789d.png.meta b/examples/terrain-water/assets/plants/textures/7b838a37789d.png.meta
new file mode 100644
index 000000000..b4ded79c5
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/7b838a37789d.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "c76b75cf-8e20-43c9-a2b6-0da240b7565f",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/8540ee80eab4.png b/examples/terrain-water/assets/plants/textures/8540ee80eab4.png
new file mode 100644
index 000000000..edb436351
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/8540ee80eab4.png differ
diff --git a/examples/terrain-water/assets/plants/textures/8540ee80eab4.png.meta b/examples/terrain-water/assets/plants/textures/8540ee80eab4.png.meta
new file mode 100644
index 000000000..ec8c69457
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/8540ee80eab4.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "b69eed17-a4e6-4365-98b4-c47a8387bf3b",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/8920cbee1876.png b/examples/terrain-water/assets/plants/textures/8920cbee1876.png
new file mode 100644
index 000000000..31d7558ef
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/8920cbee1876.png differ
diff --git a/examples/terrain-water/assets/plants/textures/8920cbee1876.png.meta b/examples/terrain-water/assets/plants/textures/8920cbee1876.png.meta
new file mode 100644
index 000000000..e26cf541e
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/8920cbee1876.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "44818197-15c5-4ed1-b663-54ce8b6197e7",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/938bddcdab05.png b/examples/terrain-water/assets/plants/textures/938bddcdab05.png
new file mode 100644
index 000000000..0aba13911
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/938bddcdab05.png differ
diff --git a/examples/terrain-water/assets/plants/textures/938bddcdab05.png.meta b/examples/terrain-water/assets/plants/textures/938bddcdab05.png.meta
new file mode 100644
index 000000000..3497d9dae
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/938bddcdab05.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "9ca6dffa-7c0c-47a2-a252-71eb8d6521a8",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/a0835f44f491.png b/examples/terrain-water/assets/plants/textures/a0835f44f491.png
new file mode 100644
index 000000000..e7f26fc1d
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/a0835f44f491.png differ
diff --git a/examples/terrain-water/assets/plants/textures/a0835f44f491.png.meta b/examples/terrain-water/assets/plants/textures/a0835f44f491.png.meta
new file mode 100644
index 000000000..ecb840cd9
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/a0835f44f491.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "3b72b27c-f7b4-463d-9da5-29cd5120d279",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/b4e751c63a70.png b/examples/terrain-water/assets/plants/textures/b4e751c63a70.png
new file mode 100644
index 000000000..2040c58da
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/b4e751c63a70.png differ
diff --git a/examples/terrain-water/assets/plants/textures/b4e751c63a70.png.meta b/examples/terrain-water/assets/plants/textures/b4e751c63a70.png.meta
new file mode 100644
index 000000000..8526c124c
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/b4e751c63a70.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "3f7a68e5-a5bd-4f4f-8fa6-ca4420b835e6",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png b/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png
new file mode 100644
index 000000000..ff9de0b06
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png differ
diff --git a/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png.meta b/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png.meta
new file mode 100644
index 000000000..aa36381cb
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/b7b7361f83eb.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "652b055d-3a3a-48c1-8f6b-5f7f349daa0e",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": true,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png b/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png
new file mode 100644
index 000000000..a2207bb97
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png differ
diff --git a/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png.meta b/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png.meta
new file mode 100644
index 000000000..07221ffe4
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/bd4367bf2d30.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "ab7312b1-cd34-4243-a82c-d4a3aa57d399",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/c39b006790e7.png b/examples/terrain-water/assets/plants/textures/c39b006790e7.png
new file mode 100644
index 000000000..596b6f346
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/c39b006790e7.png differ
diff --git a/examples/terrain-water/assets/plants/textures/c39b006790e7.png.meta b/examples/terrain-water/assets/plants/textures/c39b006790e7.png.meta
new file mode 100644
index 000000000..6cc702e4f
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/c39b006790e7.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "107473b5-041f-4dfb-8ba8-8ed1de1498b9",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png b/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png
new file mode 100644
index 000000000..e2bca149e
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png differ
diff --git a/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png.meta b/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png.meta
new file mode 100644
index 000000000..3eb8cc984
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/c6bd1d6d261b.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "da29fc38-9039-4b4b-a5e1-846de52c9f86",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "sRGB": true,
+ "mipCoverage": 0.45,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/e4f3080983d9.png b/examples/terrain-water/assets/plants/textures/e4f3080983d9.png
new file mode 100644
index 000000000..107ef5889
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/e4f3080983d9.png differ
diff --git a/examples/terrain-water/assets/plants/textures/e4f3080983d9.png.meta b/examples/terrain-water/assets/plants/textures/e4f3080983d9.png.meta
new file mode 100644
index 000000000..2f2de9403
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/e4f3080983d9.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "5fc77cd5-2952-477a-aa44-f79dc51fc4d9",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/e9b6e836c451.png b/examples/terrain-water/assets/plants/textures/e9b6e836c451.png
new file mode 100644
index 000000000..88d879d82
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/e9b6e836c451.png differ
diff --git a/examples/terrain-water/assets/plants/textures/e9b6e836c451.png.meta b/examples/terrain-water/assets/plants/textures/e9b6e836c451.png.meta
new file mode 100644
index 000000000..29ed93832
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/e9b6e836c451.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "e6646db1-86ca-457d-a543-42a3bde61230",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/fa9b71309439.png b/examples/terrain-water/assets/plants/textures/fa9b71309439.png
new file mode 100644
index 000000000..d984f2601
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/fa9b71309439.png differ
diff --git a/examples/terrain-water/assets/plants/textures/fa9b71309439.png.meta b/examples/terrain-water/assets/plants/textures/fa9b71309439.png.meta
new file mode 100644
index 000000000..7f01ad66b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/fa9b71309439.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "dc8e1b53-31d6-4afb-abec-dd4fdd2d7b1b",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "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
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/fb385d2130d7.png b/examples/terrain-water/assets/plants/textures/fb385d2130d7.png
new file mode 100644
index 000000000..fa64d9165
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/fb385d2130d7.png differ
diff --git a/examples/terrain-water/assets/plants/textures/fb385d2130d7.png.meta b/examples/terrain-water/assets/plants/textures/fb385d2130d7.png.meta
new file mode 100644
index 000000000..4a6883764
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/fb385d2130d7.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "9a593033-6a80-499b-8d35-7bb132ea3307",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png b/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png
new file mode 100644
index 000000000..a7f42cbb7
Binary files /dev/null and b/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png differ
diff --git a/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png.meta b/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png.meta
new file mode 100644
index 000000000..fde3cb44b
--- /dev/null
+++ b/examples/terrain-water/assets/plants/textures/ff15562f9f8e.png.meta
@@ -0,0 +1,27 @@
+{
+ "uuid": "97772347-6b1f-4730-8f95-e95a7b08bf91",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 1024,
+ "compress": "auto",
+ "compressFormat": "uastc",
+ "mipmaps": true,
+ "filterMode": "linear",
+ "wrapMode": "repeat",
+ "sRGB": false,
+ "mipCoverage": 0,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ },
+ "sheet": {
+ "cellWidth": 0,
+ "cellHeight": 0,
+ "margin": 0,
+ "spacing": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/terrain-water/assets/scenes/main.esscene b/examples/terrain-water/assets/scenes/main.esscene
index b614e9bb9..72b00522d 100644
--- a/examples/terrain-water/assets/scenes/main.esscene
+++ b/examples/terrain-water/assets/scenes/main.esscene
@@ -719,167 +719,29 @@
},
{
"id": 12,
- "name": "Meadow",
+ "name": "Plants",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
- "data": {
- "position": {
- "x": 1000,
- "y": 0,
- "z": 0
- }
- }
- },
- {
- "type": "Foliage",
- "data": {
- "material": "assets/materials/meadow.esmaterial",
- "sizeX": 18000,
- "sizeZ": 16000,
- "cellSize": 1000,
- "seed": 3,
- "minScale": 0.7,
- "maxScale": 1.4,
- "minUp": 0.85,
- "lodDistance": 1800,
- "drawDistance": 4500,
- "count": 2200,
- "heightMin": 860,
- "heightMax": 3400,
- "bladeHeight": 55,
- "bladeWidth": 6
- }
- }
- ]
- },
- {
- "id": 13,
- "name": "Flowers",
- "parent": null,
- "children": [],
- "visible": true,
- "components": [
- {
- "type": "Transform",
- "data": {
- "position": {
- "x": 1000,
- "y": 0,
- "z": 0
- }
- }
- },
- {
- "type": "Foliage",
- "data": {
- "material": "assets/materials/flowers.esmaterial",
- "sizeX": 18000,
- "sizeZ": 16000,
- "cellSize": 1000,
- "seed": 11,
- "minScale": 0.7,
- "maxScale": 1.4,
- "minUp": 0.85,
- "lodDistance": 1800,
- "drawDistance": 4500,
- "count": 160,
- "heightMin": 900,
- "heightMax": 2200,
- "bladeHeight": 45,
- "bladeWidth": 9
- }
- }
- ]
- },
- {
- "id": 14,
- "name": "Reeds",
- "parent": null,
- "children": [],
- "visible": true,
- "components": [
- {
- "type": "Transform",
- "data": {
- "position": {
- "x": 1000,
- "y": 0,
- "z": 0
- }
- }
- },
- {
- "type": "Foliage",
- "data": {
- "material": "assets/materials/reeds.esmaterial",
- "sizeX": 18000,
- "sizeZ": 16000,
- "cellSize": 1000,
- "seed": 5,
- "minScale": 0.7,
- "maxScale": 1.4,
- "minUp": 0.75,
- "lodDistance": 1800,
- "drawDistance": 4500,
- "count": 1600,
- "heightMin": 660,
- "heightMax": 840,
- "bladeHeight": 150,
- "bladeWidth": 4,
- "waterDepth": 60
- }
- }
- ]
- },
- {
- "id": 15,
- "name": "Pines",
- "parent": null,
- "children": [],
- "visible": true,
- "components": [
- {
- "type": "Transform",
- "data": {
- "position": {
- "x": 0,
- "y": 0,
- "z": -3000
- }
- }
+ "data": {}
},
{
- "type": "Foliage",
+ "type": "WorldGen",
"data": {
- "mesh": "assets/models/pine.esmesh",
- "material": "assets/materials/pine.esmaterial",
- "sizeX": 28000,
- "sizeZ": 20000,
- "cellSize": 1200,
- "count": 2,
- "seed": 8,
- "minScale": 8,
- "maxScale": 13,
- "minUp": 0.8,
- "heightMin": 1600,
- "heightMax": 3850,
- "lodDistance": 7000,
- "drawDistance": 60000,
- "cardU0": 0.2,
- "cardV0": 0.22,
- "cardU1": 0.8,
- "cardV1": 0.95,
- "cardTent": 1
+ "rules": "assets/worlds/plants.esworld",
+ "version": 1,
+ "world": "terrain-water",
+ "seed": 7,
+ "paintGround": false
}
}
]
},
{
- "id": 16,
+ "id": 13,
"name": "Crate 1",
"parent": null,
"children": [],
@@ -975,7 +837,7 @@
]
},
{
- "id": 17,
+ "id": 14,
"name": "Crate 2",
"parent": null,
"children": [],
@@ -1071,7 +933,7 @@
]
},
{
- "id": 18,
+ "id": 15,
"name": "Crate 3",
"parent": null,
"children": [],
@@ -1167,7 +1029,7 @@
]
},
{
- "id": 19,
+ "id": 16,
"name": "Crate 4",
"parent": null,
"children": [],
@@ -1263,7 +1125,7 @@
]
},
{
- "id": 20,
+ "id": 17,
"name": "Crate 5",
"parent": null,
"children": [],
@@ -1359,7 +1221,7 @@
]
},
{
- "id": 21,
+ "id": 18,
"name": "Crate 6",
"parent": null,
"children": [],
@@ -1455,7 +1317,7 @@
]
},
{
- "id": 22,
+ "id": 19,
"name": "Crate 7",
"parent": null,
"children": [],
@@ -1551,7 +1413,7 @@
]
},
{
- "id": 23,
+ "id": 20,
"name": "Crate 8",
"parent": null,
"children": [],
@@ -1647,7 +1509,7 @@
]
},
{
- "id": 24,
+ "id": 21,
"name": "Crate 9",
"parent": null,
"children": [],
diff --git a/examples/terrain-water/assets/terrain/grass.esterrainlayer b/examples/terrain-water/assets/terrain/grass.esterrainlayer
index cfcfd627a..92cc80979 100644
--- a/examples/terrain-water/assets/terrain/grass.esterrainlayer
+++ b/examples/terrain-water/assets/terrain/grass.esterrainlayer
@@ -1,13 +1,14 @@
{
- "albedo": "assets/textures/grass.png",
- "normal": "assets/textures/grass_normal.png",
- "mask": "assets/textures/grass_mask.png",
- "tile": 900,
+ "albedo": "assets/plants/ground/grass_albedo.png",
+ "normal": "assets/plants/ground/grass_normal.png",
+ "mask": "assets/plants/ground/grass_mask.png",
+ "tile": 600,
"tint": [
- 1,
- 1,
- 1
+ 0.62,
+ 0.78,
+ 0.6
],
"roughness": 0.95,
- "normalStrength": 1
+ "normalStrength": 1,
+ "heightBlend": 0.15
}
diff --git a/examples/terrain-water/assets/terrain/rock.esterrainlayer b/examples/terrain-water/assets/terrain/rock.esterrainlayer
index 45df74db7..55126a247 100644
--- a/examples/terrain-water/assets/terrain/rock.esterrainlayer
+++ b/examples/terrain-water/assets/terrain/rock.esterrainlayer
@@ -9,5 +9,6 @@
1
],
"roughness": 0.75,
- "normalStrength": 1
+ "normalStrength": 1,
+ "heightBlend": 0.9
}
diff --git a/examples/terrain-water/assets/terrain/sand.esterrainlayer b/examples/terrain-water/assets/terrain/sand.esterrainlayer
index 9804f449b..c0cd76a50 100644
--- a/examples/terrain-water/assets/terrain/sand.esterrainlayer
+++ b/examples/terrain-water/assets/terrain/sand.esterrainlayer
@@ -1,13 +1,14 @@
{
- "albedo": "assets/textures/sand.png",
- "normal": "assets/textures/sand_normal.png",
- "mask": "assets/textures/sand_mask.png",
- "tile": 700,
+ "albedo": "assets/plants/ground/sand_albedo.png",
+ "normal": "assets/plants/ground/sand_normal.png",
+ "mask": "assets/plants/ground/sand_mask.png",
+ "tile": 500,
"tint": [
1,
1,
1
],
"roughness": 0.85,
- "normalStrength": 1
+ "normalStrength": 1,
+ "heightBlend": 0.15
}
diff --git a/examples/terrain-water/assets/terrain/snow.esterrainlayer b/examples/terrain-water/assets/terrain/snow.esterrainlayer
index 889aadd0b..54537ce7f 100644
--- a/examples/terrain-water/assets/terrain/snow.esterrainlayer
+++ b/examples/terrain-water/assets/terrain/snow.esterrainlayer
@@ -9,5 +9,6 @@
1
],
"roughness": 0.55,
- "normalStrength": 1
+ "normalStrength": 1,
+ "heightBlend": 0.4
}
diff --git a/examples/terrain-water/assets/textures/grass.png b/examples/terrain-water/assets/textures/grass.png
deleted file mode 100644
index 5f1679a61..000000000
Binary files a/examples/terrain-water/assets/textures/grass.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/grass.png.meta b/examples/terrain-water/assets/textures/grass.png.meta
deleted file mode 100644
index aa9a63149..000000000
--- a/examples/terrain-water/assets/textures/grass.png.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "uuid": "8e58cf02-51eb-4ba0-83e7-6e12e63c515e",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat"
- }
-}
diff --git a/examples/terrain-water/assets/textures/grass_mask.png b/examples/terrain-water/assets/textures/grass_mask.png
deleted file mode 100644
index 5a1d2cf47..000000000
Binary files a/examples/terrain-water/assets/textures/grass_mask.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/grass_mask.png.meta b/examples/terrain-water/assets/textures/grass_mask.png.meta
deleted file mode 100644
index af28773d4..000000000
--- a/examples/terrain-water/assets/textures/grass_mask.png.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "uuid": "43542119-9d09-4155-be3f-de95353c7267",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat",
- "sRGB": false
- }
-}
diff --git a/examples/terrain-water/assets/textures/grass_normal.png b/examples/terrain-water/assets/textures/grass_normal.png
deleted file mode 100644
index 714eb8eee..000000000
Binary files a/examples/terrain-water/assets/textures/grass_normal.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/grass_normal.png.meta b/examples/terrain-water/assets/textures/grass_normal.png.meta
deleted file mode 100644
index d3ae325b9..000000000
--- a/examples/terrain-water/assets/textures/grass_normal.png.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "uuid": "6aa85d7b-28d1-474f-b88b-e7ace38cb2af",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat",
- "sRGB": false
- }
-}
diff --git a/examples/terrain-water/assets/textures/pine.png b/examples/terrain-water/assets/textures/pine.png
deleted file mode 100644
index 90a41eccb..000000000
Binary files a/examples/terrain-water/assets/textures/pine.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/pine.png.meta b/examples/terrain-water/assets/textures/pine.png.meta
deleted file mode 100644
index 02ae3f7b2..000000000
--- a/examples/terrain-water/assets/textures/pine.png.meta
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uuid": "c78bcfbc-288f-4a3c-8493-4401c5c4ce5d",
- "version": "2.0",
- "type": "texture",
- "importer": {}
-}
diff --git a/examples/terrain-water/assets/textures/sand.png b/examples/terrain-water/assets/textures/sand.png
deleted file mode 100644
index 645b700e6..000000000
Binary files a/examples/terrain-water/assets/textures/sand.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/sand.png.meta b/examples/terrain-water/assets/textures/sand.png.meta
deleted file mode 100644
index ef3fc884d..000000000
--- a/examples/terrain-water/assets/textures/sand.png.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "uuid": "785e28d9-6365-469a-92e2-b9d3b240e60f",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat"
- }
-}
diff --git a/examples/terrain-water/assets/textures/sand_mask.png b/examples/terrain-water/assets/textures/sand_mask.png
deleted file mode 100644
index c25849306..000000000
Binary files a/examples/terrain-water/assets/textures/sand_mask.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/sand_mask.png.meta b/examples/terrain-water/assets/textures/sand_mask.png.meta
deleted file mode 100644
index d58522f58..000000000
--- a/examples/terrain-water/assets/textures/sand_mask.png.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "uuid": "1ac1e7c8-f460-40aa-8ff3-c10716440f15",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat",
- "sRGB": false
- }
-}
diff --git a/examples/terrain-water/assets/textures/sand_normal.png b/examples/terrain-water/assets/textures/sand_normal.png
deleted file mode 100644
index f68b4dee1..000000000
Binary files a/examples/terrain-water/assets/textures/sand_normal.png and /dev/null differ
diff --git a/examples/terrain-water/assets/textures/sand_normal.png.meta b/examples/terrain-water/assets/textures/sand_normal.png.meta
deleted file mode 100644
index 2181b199f..000000000
--- a/examples/terrain-water/assets/textures/sand_normal.png.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "uuid": "c4776d13-80f1-4280-80d2-96ea1919ad6b",
- "version": "2.0",
- "type": "texture",
- "importer": {
- "wrapMode": "repeat",
- "sRGB": false
- }
-}
diff --git a/examples/terrain-water/assets/worlds/plants.esworld b/examples/terrain-water/assets/worlds/plants.esworld
new file mode 100644
index 000000000..320a34dde
--- /dev/null
+++ b/examples/terrain-water/assets/worlds/plants.esworld
@@ -0,0 +1,1848 @@
+{
+ "id": "terrain-water:plants",
+ "versions": [
+ 1
+ ],
+ "noise": {
+ "moisture": {
+ "scale": 4200,
+ "octaves": 3
+ },
+ "rock": {
+ "scale": 700,
+ "octaves": 3
+ },
+ "turf": {
+ "scale": 1400,
+ "octaves": 2
+ },
+ "bloom": {
+ "scale": 1100,
+ "octaves": 2
+ },
+ "reeds": {
+ "scale": 900,
+ "octaves": 2
+ }
+ },
+ "plants": {
+ "oak": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/tree-oak/tree-oak_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-oak/lod1/tree-oak_0_0.esmesh",
+ "material": "assets/plants/models/tree-oak/tree-oak_m0.esmaterial",
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/tree-oak/tree-oak_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-oak/lod1/tree-oak_0_1.esmesh",
+ "material": "assets/plants/models/tree-oak/tree-oak_m1.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 6000,
+ "drawDistance": 16000,
+ "far": [
+ {
+ "mesh": "assets/plants/models/tree-oak/far/tree-oak.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/tree-oak/far/tree-oak_m0.esmaterial",
+ "texture": "assets/plants/textures/a0835f44f491.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "farDistance": 200000,
+ "tints": [
+ [
+ 0.94,
+ 1,
+ 0.9
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.05,
+ 0.98,
+ 0.87
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "birch": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/tree-birch/tree-birch_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-birch/lod1/tree-birch_0_0.esmesh",
+ "material": "assets/plants/models/tree-birch/tree-birch_m0.esmaterial",
+ "texture": "assets/plants/textures/6ac5a795fda4.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/tree-birch/tree-birch_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-birch/lod1/tree-birch_0_1.esmesh",
+ "material": "assets/plants/models/tree-birch/tree-birch_m1.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 6000,
+ "drawDistance": 16000,
+ "far": [
+ {
+ "mesh": "assets/plants/models/tree-birch/far/tree-birch.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/tree-birch/far/tree-birch_m0.esmaterial",
+ "texture": "assets/plants/textures/8540ee80eab4.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "farDistance": 200000,
+ "tints": [
+ [
+ 0.94,
+ 1,
+ 0.93
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.04,
+ 1.04,
+ 0.9
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "willow": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/tree-willow/tree-willow_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-willow/lod1/tree-willow_0_0.esmesh",
+ "material": "assets/plants/models/tree-willow/tree-willow_m0.esmaterial",
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/tree-willow/tree-willow_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/tree-willow/lod1/tree-willow_0_1.esmesh",
+ "material": "assets/plants/models/tree-willow/tree-willow_m1.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 6000,
+ "drawDistance": 16000,
+ "far": [
+ {
+ "mesh": "assets/plants/models/tree-willow/far/tree-willow.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/tree-willow/far/tree-willow_m0.esmaterial",
+ "texture": "assets/plants/textures/6f7a57043a90.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "farDistance": 200000,
+ "tints": [
+ [
+ 0.9,
+ 1,
+ 1.03
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.05,
+ 1,
+ 0.94
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "hazel": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_0.esmesh",
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m0.esmaterial",
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_1.esmesh",
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m1.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/shrub-hazel/shrub-hazel_0_2.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-hazel/lod1/shrub-hazel_0_2.esmesh",
+ "material": "assets/plants/models/shrub-hazel/shrub-hazel_m2.esmaterial",
+ "texture": "",
+ "tint": [
+ 0.10000000149011612,
+ 0.2199999988079071,
+ 0.03500000014901161,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 4000,
+ "drawDistance": 12000,
+ "far": [],
+ "farDistance": 0,
+ "tints": [
+ [
+ 0.94,
+ 1,
+ 0.92
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.08,
+ 1.03,
+ 0.9
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "coppice": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_0.esmesh",
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m0.esmaterial",
+ "texture": "assets/plants/textures/06df0060cfc9.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_1.esmesh",
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m1.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_0_2.esmesh",
+ "lod1Mesh": "assets/plants/models/shrub-woodland-coppice/lod1/shrub-woodland-coppice_0_2.esmesh",
+ "material": "assets/plants/models/shrub-woodland-coppice/shrub-woodland-coppice_m2.esmaterial",
+ "texture": "",
+ "tint": [
+ 0.10000000149011612,
+ 0.2199999988079071,
+ 0.03500000014901161,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 4000,
+ "drawDistance": 12000,
+ "far": [],
+ "farDistance": 0,
+ "tints": [
+ [
+ 0.94,
+ 1,
+ 0.92
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.08,
+ 1.03,
+ 0.9
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "granite-crown": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/granite-crown/granite-crown.esmesh",
+ "lod1Mesh": "assets/plants/models/granite-crown/lod1/granite-crown.esmesh",
+ "material": "assets/plants/models/granite-crown/granite-crown_m0.esmaterial",
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 9000,
+ "drawDistance": 33000,
+ "far": [],
+ "farDistance": 0,
+ "sink": 8,
+ "unit": 100
+ },
+ "granite-bank": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/granite-bank/granite-bank.esmesh",
+ "lod1Mesh": "assets/plants/models/granite-bank/lod1/granite-bank.esmesh",
+ "material": "assets/plants/models/granite-bank/granite-bank_m0.esmaterial",
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 9000,
+ "drawDistance": 33000,
+ "far": [],
+ "farDistance": 0,
+ "sink": 8,
+ "unit": 100
+ },
+ "granite-split": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/granite-split/granite-split.esmesh",
+ "lod1Mesh": "assets/plants/models/granite-split/lod1/granite-split.esmesh",
+ "material": "assets/plants/models/granite-split/granite-split_m0.esmaterial",
+ "texture": "assets/plants/textures/b7b7361f83eb.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 9000,
+ "drawDistance": 33000,
+ "far": [],
+ "farDistance": 0,
+ "sink": 8,
+ "unit": 100
+ },
+ "grass-fine": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/grass-fine/grass-fine.esmesh",
+ "lod1Mesh": "assets/plants/models/grass-fine/lod1/grass-fine.esmesh",
+ "material": "assets/plants/models/grass-fine/grass-fine_m0.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 3000,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "tints": [
+ [
+ 0.9,
+ 1,
+ 0.85
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.12,
+ 1.02,
+ 0.8
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "grass-meadow": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/grass-meadow/grass-meadow.esmesh",
+ "lod1Mesh": "assets/plants/models/grass-meadow/lod1/grass-meadow.esmesh",
+ "material": "assets/plants/models/grass-meadow/grass-meadow_m0.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 3000,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "tints": [
+ [
+ 0.9,
+ 1,
+ 0.85
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.12,
+ 1.02,
+ 0.8
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ },
+ "flower-ivory": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/flower-ivory/flower-ivory.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/flower-ivory/flower-ivory_m0.esmaterial",
+ "texture": "assets/plants/textures/c39b006790e7.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 0,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "unit": 100
+ },
+ "flower-amber": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/flower-amber/flower-amber.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/flower-amber/flower-amber_m0.esmaterial",
+ "texture": "assets/plants/textures/c6bd1d6d261b.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 0,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "unit": 100
+ },
+ "flower-blue": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/flower-blue/flower-blue.esmesh",
+ "lod1Mesh": "",
+ "material": "assets/plants/models/flower-blue/flower-blue_m0.esmaterial",
+ "texture": "assets/plants/textures/7b838a37789d.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 0,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "unit": 100
+ },
+ "reed": {
+ "parts": [
+ {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_0.esmesh",
+ "lod1Mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_0.esmesh",
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m0.esmaterial",
+ "texture": "assets/plants/textures/938bddcdab05.png",
+ "tint": [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_1.esmesh",
+ "lod1Mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_1.esmesh",
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m1.esmaterial",
+ "texture": "",
+ "tint": [
+ 0.10000000149011612,
+ 0.2199999988079071,
+ 0.03500000014901161,
+ 1
+ ],
+ "opaque": true
+ },
+ {
+ "mesh": "assets/plants/models/reed-lakeside/reed-lakeside_0_2.esmesh",
+ "lod1Mesh": "assets/plants/models/reed-lakeside/lod1/reed-lakeside_0_2.esmesh",
+ "material": "assets/plants/models/reed-lakeside/reed-lakeside_m2.esmaterial",
+ "texture": "",
+ "tint": [
+ 0.1899999976158142,
+ 0.10999999940395355,
+ 0.03500000014901161,
+ 1
+ ],
+ "opaque": true
+ }
+ ],
+ "lodDistance": 4000,
+ "drawDistance": 9000,
+ "far": [],
+ "farDistance": 0,
+ "tints": [
+ [
+ 0.9,
+ 1,
+ 0.9
+ ],
+ [
+ 1,
+ 1,
+ 1
+ ],
+ [
+ 1.1,
+ 1.02,
+ 0.83
+ ]
+ ],
+ "tintScale": 1300,
+ "unit": 100
+ }
+ },
+ "biomes": [
+ {
+ "id": "wood",
+ "transition": 300,
+ "conditions": [
+ {
+ "field": "moisture",
+ "min": 0.3,
+ "blend": 0.15
+ },
+ {
+ "field": "shoreDistance",
+ "min": 600,
+ "blend": 500
+ },
+ {
+ "field": "up",
+ "min": 0.78,
+ "blend": 0.12
+ },
+ {
+ "field": "height",
+ "min": 760,
+ "max": 3700,
+ "blend": 250
+ },
+ {
+ "field": "paint.grass",
+ "min": 0.1,
+ "blend": 0.2
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "grove-oak",
+ "layer": "groves",
+ "density": 0.6
+ },
+ {
+ "recipe": "grove-birch",
+ "layer": "groves",
+ "density": 0.5
+ },
+ {
+ "recipe": "tufts",
+ "layer": "cover",
+ "density": 0.4
+ },
+ {
+ "recipe": "drift-ivory",
+ "layer": "drifts",
+ "density": 0.1
+ }
+ ]
+ },
+ {
+ "id": "meadow",
+ "transition": 200,
+ "conditions": [
+ {
+ "field": "shoreDistance",
+ "min": 120,
+ "blend": 900
+ },
+ {
+ "field": "up",
+ "min": 0.9,
+ "blend": 0.06
+ },
+ {
+ "field": "height",
+ "min": 780,
+ "max": 3300,
+ "blend": 250
+ },
+ {
+ "field": "paint.grass",
+ "min": 0.35,
+ "blend": 0.25
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "lone-oak",
+ "layer": "groves",
+ "density": 0.08
+ },
+ {
+ "recipe": "lone-birch",
+ "layer": "groves",
+ "density": 0.06
+ },
+ {
+ "recipe": "tufts",
+ "layer": "cover",
+ "density": 0.35
+ },
+ {
+ "recipe": "drift-ivory",
+ "layer": "drifts",
+ "density": 0.1
+ },
+ {
+ "recipe": "drift-amber",
+ "layer": "drifts",
+ "density": 0.1
+ },
+ {
+ "recipe": "drift-blue",
+ "layer": "drifts",
+ "density": 0.1
+ }
+ ]
+ },
+ {
+ "id": "turf",
+ "transition": 300,
+ "conditions": [
+ {
+ "field": "shoreDistance",
+ "min": 120,
+ "blend": 900
+ },
+ {
+ "field": "up",
+ "min": 0.9,
+ "blend": 0.06
+ },
+ {
+ "field": "height",
+ "min": 780,
+ "max": 3300,
+ "blend": 250
+ },
+ {
+ "field": "paint.grass",
+ "min": 0.35,
+ "blend": 0.25
+ },
+ {
+ "field": "turf",
+ "min": 0.35,
+ "blend": 0.15
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "tufts",
+ "layer": "cover",
+ "density": 1
+ }
+ ]
+ },
+ {
+ "id": "blooms",
+ "transition": 300,
+ "conditions": [
+ {
+ "field": "shoreDistance",
+ "min": 300,
+ "blend": 900
+ },
+ {
+ "field": "up",
+ "min": 0.92,
+ "blend": 0.05
+ },
+ {
+ "field": "height",
+ "min": 780,
+ "max": 2600,
+ "blend": 300
+ },
+ {
+ "field": "paint.grass",
+ "min": 0.45,
+ "blend": 0.25
+ },
+ {
+ "field": "bloom",
+ "min": 0.42,
+ "blend": 0.13
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "drift-ivory",
+ "layer": "drifts",
+ "density": 0.33
+ },
+ {
+ "recipe": "drift-amber",
+ "layer": "drifts",
+ "density": 0.33
+ },
+ {
+ "recipe": "drift-blue",
+ "layer": "drifts",
+ "density": 0.33
+ },
+ {
+ "recipe": "tufts",
+ "layer": "cover",
+ "density": 0.5
+ }
+ ]
+ },
+ {
+ "id": "bank",
+ "transition": 200,
+ "conditions": [
+ {
+ "field": "shoreDistance",
+ "min": 100,
+ "max": 1800,
+ "blend": 450
+ },
+ {
+ "field": "up",
+ "min": 0.9,
+ "blend": 0.08
+ },
+ {
+ "field": "height",
+ "min": 700,
+ "max": 1200,
+ "blend": 120
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "willows",
+ "layer": "banks",
+ "density": 0.8
+ },
+ {
+ "recipe": "tufts",
+ "layer": "cover",
+ "density": 0.25
+ }
+ ]
+ },
+ {
+ "id": "shallows",
+ "transition": 250,
+ "conditions": [
+ {
+ "field": "shoreDistance",
+ "min": -250,
+ "max": 350,
+ "blend": 220
+ },
+ {
+ "field": "reeds",
+ "min": 0.3,
+ "blend": 0.2
+ },
+ {
+ "field": "height",
+ "min": 630,
+ "max": 820,
+ "blend": 40
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "reed-strip",
+ "layer": "reeds",
+ "density": 0.9
+ }
+ ]
+ },
+ {
+ "id": "rocky",
+ "transition": 200,
+ "conditions": [
+ {
+ "field": "paint.rock",
+ "min": 0.15,
+ "blend": 0.2
+ },
+ {
+ "field": "height",
+ "min": 700,
+ "max": 4000,
+ "blend": 200
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "rocks-crown",
+ "layer": "stones",
+ "density": 0.5
+ },
+ {
+ "recipe": "rocks-bank",
+ "layer": "stones",
+ "density": 0.4
+ },
+ {
+ "recipe": "rocks-split",
+ "layer": "stones",
+ "density": 0.3
+ }
+ ]
+ },
+ {
+ "id": "scatter",
+ "transition": 400,
+ "conditions": [
+ {
+ "field": "rock",
+ "min": 0.62,
+ "blend": 0.08
+ },
+ {
+ "field": "up",
+ "min": 0.8,
+ "blend": 0.1
+ },
+ {
+ "field": "shoreDistance",
+ "min": 100,
+ "blend": 300
+ },
+ {
+ "field": "height",
+ "min": 700,
+ "max": 4000,
+ "blend": 200
+ }
+ ],
+ "recipes": [
+ {
+ "recipe": "rocks-split",
+ "layer": "stones",
+ "density": 0.5
+ },
+ {
+ "recipe": "rocks-bank",
+ "layer": "stones",
+ "density": 0.3
+ }
+ ]
+ }
+ ],
+ "recipes": [
+ {
+ "id": "grove-oak",
+ "version": 1,
+ "tags": [
+ "tree"
+ ],
+ "anchor": {
+ "id": "elder",
+ "plant": "oak",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "scale": [
+ 1,
+ 1.35
+ ]
+ },
+ "members": [
+ {
+ "id": "kin",
+ "plant": "oak",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 300,
+ 750
+ ],
+ "scale": [
+ 0.7,
+ 1.25
+ ]
+ },
+ {
+ "id": "other",
+ "plant": "birch",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 300,
+ 750
+ ],
+ "scale": [
+ 0.7,
+ 1.25
+ ]
+ },
+ {
+ "id": "hazel",
+ "plant": "hazel",
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "coppice",
+ "plant": "coppice",
+ "count": [
+ 1,
+ 2
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "grass-fine.100",
+ "plant": "grass-fine",
+ "count": [
+ 3,
+ 7
+ ],
+ "ring": [
+ 100,
+ 900
+ ],
+ "scale": [
+ 1,
+ 1.9
+ ],
+ "footprint": 20,
+ "minUp": 0.8,
+ "chance": 0.8
+ },
+ {
+ "id": "grass-meadow.100",
+ "plant": "grass-meadow",
+ "count": [
+ 2,
+ 5
+ ],
+ "ring": [
+ 100,
+ 900
+ ],
+ "scale": [
+ 1,
+ 1.9
+ ],
+ "footprint": 20,
+ "minUp": 0.8,
+ "chance": 0.8
+ }
+ ]
+ },
+ {
+ "id": "grove-birch",
+ "version": 1,
+ "tags": [
+ "tree"
+ ],
+ "anchor": {
+ "id": "elder",
+ "plant": "birch",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "scale": [
+ 1,
+ 1.35
+ ]
+ },
+ "members": [
+ {
+ "id": "kin",
+ "plant": "birch",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 300,
+ 750
+ ],
+ "scale": [
+ 0.7,
+ 1.25
+ ]
+ },
+ {
+ "id": "other",
+ "plant": "oak",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.8,
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 300,
+ 750
+ ],
+ "scale": [
+ 0.7,
+ 1.25
+ ]
+ },
+ {
+ "id": "hazel",
+ "plant": "hazel",
+ "count": [
+ 1,
+ 3
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "coppice",
+ "plant": "coppice",
+ "count": [
+ 1,
+ 2
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "grass-fine.100",
+ "plant": "grass-fine",
+ "count": [
+ 3,
+ 7
+ ],
+ "ring": [
+ 100,
+ 900
+ ],
+ "scale": [
+ 1,
+ 1.9
+ ],
+ "footprint": 20,
+ "minUp": 0.8,
+ "chance": 0.8
+ },
+ {
+ "id": "grass-meadow.100",
+ "plant": "grass-meadow",
+ "count": [
+ 2,
+ 5
+ ],
+ "ring": [
+ 100,
+ 900
+ ],
+ "scale": [
+ 1,
+ 1.9
+ ],
+ "footprint": 20,
+ "minUp": 0.8,
+ "chance": 0.8
+ }
+ ]
+ },
+ {
+ "id": "lone-oak",
+ "version": 1,
+ "tags": [
+ "tree"
+ ],
+ "anchor": {
+ "id": "elder",
+ "plant": "oak",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.92,
+ "scale": [
+ 0.9,
+ 1.3
+ ]
+ },
+ "members": [
+ {
+ "id": "hazel",
+ "plant": "hazel",
+ "count": [
+ 0,
+ 2
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "coppice",
+ "plant": "coppice",
+ "count": [
+ 0,
+ 1
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "lone-birch",
+ "version": 1,
+ "tags": [
+ "tree"
+ ],
+ "anchor": {
+ "id": "elder",
+ "plant": "birch",
+ "footprint": 50,
+ "canopy": 500,
+ "minUp": 0.92,
+ "scale": [
+ 0.9,
+ 1.3
+ ]
+ },
+ "members": [
+ {
+ "id": "hazel",
+ "plant": "hazel",
+ "count": [
+ 0,
+ 2
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ },
+ {
+ "id": "coppice",
+ "plant": "coppice",
+ "count": [
+ 0,
+ 1
+ ],
+ "ring": [
+ 250,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1.2
+ ],
+ "footprint": 80,
+ "canopy": 150,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "willows",
+ "version": 1,
+ "tags": [
+ "tree"
+ ],
+ "anchor": {
+ "id": "willow",
+ "plant": "willow",
+ "scale": [
+ 0.9,
+ 1.2
+ ],
+ "footprint": 60,
+ "canopy": 500,
+ "minUp": 0.8
+ },
+ "members": [
+ {
+ "id": "kin",
+ "plant": "willow",
+ "count": [
+ 0,
+ 2
+ ],
+ "ring": [
+ 450,
+ 800
+ ],
+ "scale": [
+ 0.7,
+ 1
+ ],
+ "footprint": 60,
+ "canopy": 450,
+ "minUp": 0.8,
+ "chance": 0.5
+ },
+ {
+ "id": "grass-meadow.150",
+ "plant": "grass-meadow",
+ "count": [
+ 3,
+ 7
+ ],
+ "ring": [
+ 150,
+ 700
+ ],
+ "scale": [
+ 1,
+ 1.6
+ ],
+ "footprint": 20,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "rocks-crown",
+ "version": 1,
+ "tags": [
+ "stone"
+ ],
+ "anchor": {
+ "id": "crown",
+ "plant": "granite-crown",
+ "scale": [
+ 0.8,
+ 1.6
+ ],
+ "footprint": 120,
+ "canopy": 160,
+ "minUp": 0.6
+ },
+ "members": [
+ {
+ "id": "small",
+ "plant": "granite-split",
+ "count": [
+ 1,
+ 4
+ ],
+ "ring": [
+ 120,
+ 420
+ ],
+ "scale": [
+ 0.35,
+ 0.7
+ ],
+ "footprint": 40,
+ "minUp": 0.6
+ }
+ ]
+ },
+ {
+ "id": "rocks-bank",
+ "version": 1,
+ "tags": [
+ "stone"
+ ],
+ "anchor": {
+ "id": "bank",
+ "plant": "granite-bank",
+ "scale": [
+ 0.8,
+ 1.6
+ ],
+ "footprint": 120,
+ "canopy": 160,
+ "minUp": 0.6
+ },
+ "members": [
+ {
+ "id": "small",
+ "plant": "granite-split",
+ "count": [
+ 1,
+ 4
+ ],
+ "ring": [
+ 120,
+ 420
+ ],
+ "scale": [
+ 0.35,
+ 0.7
+ ],
+ "footprint": 40,
+ "minUp": 0.6
+ }
+ ]
+ },
+ {
+ "id": "rocks-split",
+ "version": 1,
+ "tags": [
+ "stone"
+ ],
+ "anchor": {
+ "id": "split",
+ "plant": "granite-split",
+ "scale": [
+ 0.8,
+ 1.6
+ ],
+ "footprint": 120,
+ "canopy": 160,
+ "minUp": 0.6
+ },
+ "members": [
+ {
+ "id": "small",
+ "plant": "granite-split",
+ "count": [
+ 1,
+ 4
+ ],
+ "ring": [
+ 120,
+ 420
+ ],
+ "scale": [
+ 0.35,
+ 0.7
+ ],
+ "footprint": 40,
+ "minUp": 0.6
+ }
+ ]
+ },
+ {
+ "id": "tufts",
+ "version": 1,
+ "tags": [
+ "grass"
+ ],
+ "anchor": {
+ "id": "tuft",
+ "plant": "grass-fine",
+ "scale": [
+ 1.1,
+ 1.9
+ ],
+ "footprint": 15,
+ "minUp": 0.8
+ },
+ "members": [
+ {
+ "id": "grass-meadow.25",
+ "plant": "grass-meadow",
+ "count": [
+ 3,
+ 8
+ ],
+ "ring": [
+ 25,
+ 120
+ ],
+ "scale": [
+ 0.9,
+ 1.7
+ ],
+ "footprint": 12,
+ "minUp": 0.8
+ },
+ {
+ "id": "grass-fine.25",
+ "plant": "grass-fine",
+ "count": [
+ 0,
+ 3
+ ],
+ "ring": [
+ 25,
+ 120
+ ],
+ "scale": [
+ 0.9,
+ 1.5
+ ],
+ "footprint": 12,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "drift-ivory",
+ "version": 1,
+ "tags": [
+ "flower"
+ ],
+ "anchor": {
+ "id": "bloom",
+ "plant": "flower-ivory",
+ "scale": [
+ 1,
+ 1.4
+ ],
+ "footprint": 10,
+ "minUp": 0.85
+ },
+ "members": [
+ {
+ "id": "more",
+ "plant": "flower-ivory",
+ "count": [
+ 5,
+ 14
+ ],
+ "ring": [
+ 40,
+ 220
+ ],
+ "scale": [
+ 0.8,
+ 1.4
+ ],
+ "footprint": 12,
+ "minUp": 0.85
+ },
+ {
+ "id": "grass-fine.40",
+ "plant": "grass-fine",
+ "count": [
+ 2,
+ 5
+ ],
+ "ring": [
+ 40,
+ 200
+ ],
+ "scale": [
+ 1,
+ 1.6
+ ],
+ "footprint": 12,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "drift-amber",
+ "version": 1,
+ "tags": [
+ "flower"
+ ],
+ "anchor": {
+ "id": "bloom",
+ "plant": "flower-amber",
+ "scale": [
+ 1,
+ 1.4
+ ],
+ "footprint": 10,
+ "minUp": 0.85
+ },
+ "members": [
+ {
+ "id": "more",
+ "plant": "flower-amber",
+ "count": [
+ 5,
+ 14
+ ],
+ "ring": [
+ 40,
+ 220
+ ],
+ "scale": [
+ 0.8,
+ 1.4
+ ],
+ "footprint": 12,
+ "minUp": 0.85
+ },
+ {
+ "id": "grass-fine.40",
+ "plant": "grass-fine",
+ "count": [
+ 2,
+ 5
+ ],
+ "ring": [
+ 40,
+ 200
+ ],
+ "scale": [
+ 1,
+ 1.6
+ ],
+ "footprint": 12,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "drift-blue",
+ "version": 1,
+ "tags": [
+ "flower"
+ ],
+ "anchor": {
+ "id": "bloom",
+ "plant": "flower-blue",
+ "scale": [
+ 1,
+ 1.4
+ ],
+ "footprint": 10,
+ "minUp": 0.85
+ },
+ "members": [
+ {
+ "id": "more",
+ "plant": "flower-blue",
+ "count": [
+ 5,
+ 14
+ ],
+ "ring": [
+ 40,
+ 220
+ ],
+ "scale": [
+ 0.8,
+ 1.4
+ ],
+ "footprint": 12,
+ "minUp": 0.85
+ },
+ {
+ "id": "grass-fine.40",
+ "plant": "grass-fine",
+ "count": [
+ 2,
+ 5
+ ],
+ "ring": [
+ 40,
+ 200
+ ],
+ "scale": [
+ 1,
+ 1.6
+ ],
+ "footprint": 12,
+ "minUp": 0.8
+ }
+ ]
+ },
+ {
+ "id": "reed-strip",
+ "version": 1,
+ "tags": [
+ "reed"
+ ],
+ "anchor": {
+ "id": "reed",
+ "plant": "reed",
+ "scale": [
+ 0.9,
+ 1.4
+ ],
+ "footprint": 25,
+ "waterDepth": 70,
+ "minUp": 0.5
+ },
+ "members": [
+ {
+ "id": "more",
+ "plant": "reed",
+ "count": [
+ 2,
+ 6
+ ],
+ "ring": [
+ 30,
+ 160
+ ],
+ "scale": [
+ 0.8,
+ 1.4
+ ],
+ "footprint": 20,
+ "waterDepth": 70,
+ "minUp": 0.5
+ }
+ ]
+ }
+ ],
+ "layers": [
+ {
+ "id": "groves",
+ "spacing": 750,
+ "chunkSize": 3200,
+ "drawDistance": 17000
+ },
+ {
+ "id": "banks",
+ "spacing": 420,
+ "chunkSize": 3200,
+ "drawDistance": 17000
+ },
+ {
+ "id": "stones",
+ "spacing": 1500,
+ "chunkSize": 3200,
+ "drawDistance": 34000
+ },
+ {
+ "id": "cover",
+ "spacing": 190,
+ "chunkSize": 3200,
+ "drawDistance": 9500,
+ "occupies": false
+ },
+ {
+ "id": "drifts",
+ "spacing": 600,
+ "chunkSize": 3200,
+ "drawDistance": 9500,
+ "occupies": false
+ },
+ {
+ "id": "reeds",
+ "spacing": 130,
+ "chunkSize": 3200,
+ "drawDistance": 9500,
+ "occupies": false
+ }
+ ]
+}
diff --git a/examples/terrain-water/assets/worlds/plants.esworld.meta b/examples/terrain-water/assets/worlds/plants.esworld.meta
new file mode 100644
index 000000000..3627ddd5c
--- /dev/null
+++ b/examples/terrain-water/assets/worlds/plants.esworld.meta
@@ -0,0 +1,6 @@
+{
+ "uuid": "66dd13b5-ec63-4ffe-a43b-b6bc0877a34f",
+ "version": "2.0",
+ "type": "world-rules",
+ "importer": {}
+}
diff --git a/examples/terrain-water/src/main.ts b/examples/terrain-water/src/main.ts
index b37b16317..3b32833c0 100644
--- a/examples/terrain-water/src/main.ts
+++ b/examples/terrain-water/src/main.ts
@@ -20,7 +20,7 @@ const WEATHER_NAMES = ['Clear', 'Mist', 'Overcast', 'Rain', 'Storm'];
/** The other places to look from; the first viewpoint is the scene's own camera. */
const VIEWS: { name: string; pose: Pose }[] = [
- { name: 'By the lake', pose: pose(-1200, 1500, 1800, 0.25, -0.15) },
+ { name: 'By the lake', pose: pose(-3300, 1250, 3600, -0.68, -0.12) },
{ name: 'The lake and the river mouths', pose: pose(4200, 2600, -2500, 1.9, -0.18) },
{ name: 'Up the river', pose: pose(-3600, 3000, -6200, -0.15, -0.12) },
]
diff --git a/examples/terrain-water/tools/build.mjs b/examples/terrain-water/tools/build.mjs
index 068c7b7f3..225a2f0f3 100644
--- a/examples/terrain-water/tools/build.mjs
+++ b/examples/terrain-water/tools/build.mjs
@@ -9,20 +9,21 @@
*
* node examples/terrain-water/tools/build.mjs
*
- * It needs the SDK built (`node build-tools/cli.js sdk`), for the spline the rivers and their beds are both laid along and for the
- * mesh format of the pine. The world is in centimetres, the scale 3D physics takes by default: a crate is about 120 units.
+ * It needs the SDK built (`node build-tools/cli.js sdk`), for the spline the rivers and their beds are both laid along. The plants are the
+ * lakewood set in assets/plants, placed by plants.mjs. The world is in centimetres, the scale 3D physics takes by default: a crate is about
+ * 120 units.
*/
import { mkdirSync, writeFileSync, existsSync } from 'node:fs';
import { randomUUID } from 'node:crypto';
import path from 'node:path';
import zlib from 'node:zlib';
import { fileURLToPath } from 'node:url';
+import { plantRules } from './plants.mjs';
const HERE = path.dirname(fileURLToPath(import.meta.url));
const PROJECT = path.resolve(HERE, '..');
const SDK = new URL('../../../sdk/dist/', import.meta.url);
const { SplineCurve } = await import(new URL('spline/index.js', SDK).href);
-const { MeshChannel, MeshChannelType, packChannels, encodeMesh } = await import(new URL('index.node.js', SDK).href);
/** The place, in one table, in world units (centimetres). North is -z; the sea is to the south. */
const WORLD = {
@@ -247,6 +248,23 @@ function heightmap() {
* The paint, as a splatmap: red grass, green sand, blue snow, alpha rock. Sand on the beach and the sea floor, round the lake and in
* the rivers' beds; snow on the high ground; rock where it is steep; grass everywhere else.
*/
+/** The paint at a place: grass, sand, snow and rock, as shares of one. `h` is the ground's height there, `slope` its steepness. */
+function paintAt(x, z, h, slope) {
+ const grain = fbm(x / 600, z / 600, 71, 3);
+ const beach = 1 - smooth(180, 380, h - WORLD.sea + grain * 120);
+ const lakeside = 1 - smooth(30, 140, Math.abs(h - WORLD.lake.level - 40) - 40);
+ const banks = Math.max(...rivers.map((curve) => {
+ const near = curve.nearest(x, z);
+ return 1 - smooth(1.1, 2, near.distance / (curve.width(near.s) / 2));
+ }));
+ const sand = Math.max(beach, lakeDistance(x, z) < 1.25 ? lakeside : 0, banks) * (0.8 + 0.2 * grain);
+ const snow = smooth(WORLD.snow - 200, WORLD.snow + 300, h + (grain - 0.5) * 500) * (1 - smooth(0.6, 1.1, slope));
+ const rock = smooth(0.55, 0.95, slope) * (1 - sand);
+ const grass = Math.max(0, 1 - sand - snow - rock);
+ const sum = grass + sand + snow + rock || 1;
+ return [grass / sum, sand / sum, snow / sum, rock / sum];
+}
+
function splatmap() {
const n = WORLD.resolution;
const step = WORLD.size / (n - 1);
@@ -254,19 +272,7 @@ function splatmap() {
const x = (px / (n - 1) - 0.5) * WORLD.size, z = (py / (n - 1) - 0.5) * WORLD.size;
const h = gridAt(px, py);
const slope = Math.hypot(gridAt(px + 1, py) - gridAt(px - 1, py), gridAt(px, py + 1) - gridAt(px, py - 1)) / (2 * step);
- const grain = fbm(x / 600, z / 600, 71, 3);
- const beach = 1 - smooth(180, 380, h - WORLD.sea + grain * 120);
- const lakeside = 1 - smooth(30, 140, Math.abs(h - WORLD.lake.level - 40) - 40);
- const banks = Math.max(...rivers.map((curve) => {
- const near = curve.nearest(x, z);
- return 1 - smooth(1.1, 2, near.distance / (curve.width(near.s) / 2));
- }));
- const sand = Math.max(beach, lakeDistance(x, z) < 1.25 ? lakeside : 0, banks) * (0.8 + 0.2 * grain);
- const snow = smooth(WORLD.snow - 200, WORLD.snow + 300, h + (grain - 0.5) * 500) * (1 - smooth(0.6, 1.1, slope));
- const rock = smooth(0.55, 0.95, slope) * (1 - sand);
- const grass = Math.max(0, 1 - sand - snow - rock);
- const sum = grass + sand + snow + rock || 1;
- return [255 * grass / sum, 255 * sand / sum, 255 * snow / sum, 255 * rock / sum];
+ return paintAt(x, z, h, slope).map((w) => 255 * w);
});
write('assets/textures/splat.png', image);
meta('assets/textures/splat.png', 'texture');
@@ -294,7 +300,7 @@ function texture(name, seed, shade, layer) {
* map from that relief's slope, and the mask (occlusion deeper in the low places, the layer's roughness varied a little, the relief as
* height). And the `.esterrainlayer` file that names them.
*/
-function terrainLayer(name, size, rgb, { tile, roughness, relief }) {
+function terrainLayer(name, size, rgb, { tile, roughness, relief, heightBlend }) {
const h = new Float64Array(size * size);
for (let k = 0; k < size * size; k++) h[k] = (rgb[k * 3] * 0.299 + rgb[k * 3 + 1] * 0.587 + rgb[k * 3 + 2] * 0.114) / 255;
const at = (x, y) => h[((y + size) % size) * size + ((x + size) % size)];
@@ -315,7 +321,7 @@ function terrainLayer(name, size, rgb, { tile, roughness, relief }) {
const file = `assets/terrain/${name}.esterrainlayer`;
write(file, `${JSON.stringify({
albedo: `assets/textures/${name}.png`, normal: `assets/textures/${name}_normal.png`, mask: `assets/textures/${name}_mask.png`,
- tile, tint: [1, 1, 1], roughness, normalStrength: 1,
+ tile, tint: [1, 1, 1], roughness, normalStrength: 1, heightBlend,
}, null, 2)}\n`);
meta(file, 'terrain-layer');
}
@@ -335,34 +341,26 @@ function cells(u, v, period, seed) {
return { d1, d2, id };
}
+/** A terrain layer made of the lakewood textures of `from`, in assets/plants/ground. */
+function artLayer(name, from, { tile, roughness, heightBlend, tint = [1, 1, 1] }) {
+ const file = `assets/terrain/${name}.esterrainlayer`;
+ write(file, `${JSON.stringify({
+ albedo: `assets/plants/ground/${from}_albedo.png`, normal: `assets/plants/ground/${from}_normal.png`, mask: `assets/plants/ground/${from}_mask.png`,
+ tile, tint, roughness, normalStrength: 1, heightBlend,
+ }, null, 2)}\n`);
+ meta(file, 'terrain-layer');
+}
+
function textures() {
- // Grass: a meadow seen from standing height. Patches of fresh and dry grass, clumps darker at their roots, blades as short strokes, a little earth between.
- texture('grass', 1, (u, v, n) => {
- const patch = n(0, 4, 2), dry = smooth(0.55, 0.8, n(10, 3, 3)), clump = n(20, 4, 12);
- const blade = tiled(u * 160, v * 40, 160, 91) * 0.5 + tiled(u * 40, v * 160, 40, 92) * 0.5;
- const earth = smooth(0.78, 0.9, n(30, 3, 20)) * (1 - clump);
- let c = mix([46, 78, 26], [92, 134, 44], patch);
- c = mix(c, [146, 140, 70], dry * 0.7);
- c = mix(c, [86, 70, 44], earth);
- return c.map((x) => x * (0.62 + 0.38 * clump) * (0.82 + 0.3 * blade));
- }, { tile: 900, roughness: 0.95, relief: 3 });
- // Sand: low ripples the wind combed across it, running one way and only gently bent (a contour of noise reads as rings), fading
- // in and out in patches; pebbles and broken shell scattered over.
- texture('sand', 2, (u, v, n) => {
- const bend = (n(0, 2, 2) - 0.5) * 0.6;
- const ripple = (Math.sin((v * 24 + u * 3 + bend) * Math.PI * 2) * 0.5 + 0.5) * smooth(0.35, 0.7, n(50, 3, 3));
- const grain = hash(Math.floor(u * 512), Math.floor(v * 512), 5);
- const stones = cells(u, v, 18, 21);
- const pebble = 1 - smooth(0.12, 0.2, stones.d1);
- let c = mix([170, 150, 114], [222, 204, 164], n(10, 4, 4));
- c = c.map((x) => x * (0.93 + 0.07 * ripple) * (0.93 + 0.1 * grain));
- return mix(c, mix([110, 104, 96], [196, 188, 172], stones.id), pebble * (stones.id > 0.55 ? 1 : 0));
- }, { tile: 700, roughness: 0.85, relief: 4 });
+ // Grass and sand are the lakewood set's (assets/plants/ground); the snow and the rock below are made here.
+ // The meadow a little deeper and cooler than the art's texture, which the sun lifts to a yellow-green: it sits with the plants' dark green, not against it.
+ artLayer('grass', 'grass', { tile: 600, roughness: 0.95, heightBlend: 0.15, tint: [0.62, 0.78, 0.6] });
+ artLayer('sand', 'sand', { tile: 500, roughness: 0.85, heightBlend: 0.15 });
// Snow: windblown, bluish in its hollows, with the odd glint.
texture('snow', 3, (u, v, n) => {
const drift = n(0, 4, 4), sparkle = hash(Math.floor(u * 512), Math.floor(v * 512), 7) > 0.985 ? 1.08 : 1;
return mix([196, 210, 230], [252, 253, 255], smooth(0.2, 0.75, drift)).map((x) => Math.min(255, x * sparkle));
- }, { tile: 1100, roughness: 0.55, relief: 2 });
+ }, { tile: 1100, roughness: 0.55, relief: 2, heightBlend: 0.4 });
// Rock: strata running across it, cracks between blocks, weathered lighter on the faces, lichen in patches.
texture('rock', 4, (u, v, n) => {
const block = cells(u, v, 6, 31);
@@ -373,72 +371,7 @@ function textures() {
let c = mix([70, 68, 66], [138, 134, 126], face * 0.6 + strata * 0.25 + block.id * 0.25);
c = mix(c, [118, 124, 82], lichen * 0.55);
return c.map((x) => x * (0.35 + 0.65 * crack) * (0.85 + 0.25 * n(60, 3, 64)));
- }, { tile: 1400, roughness: 0.75, relief: 6 });
- // The pine's colour: bark at the foot, then needles that darken toward the shade under each tier.
- const strip = png(8, 128, (x, y) => {
- const v = 1 - y / 127;
- if (v < 0.2) return mix([70, 50, 34], [96, 70, 48], hash(x, y, 7)).concat(255);
- const needles = 0.8 + 0.4 * hash(x, y, 9);
- return mix([22, 52, 30], [58, 104, 52], (v - 0.2) / 0.8).map((c) => c * needles).concat(255);
- });
- write('assets/textures/pine.png', strip);
- meta('assets/textures/pine.png', 'texture');
-}
-
-// ── the pine ───────────────────────────────────────────────────────────────────────────────────────────────────────────
-
-/** A pine: a trunk and five tiers of cone, ninety units tall at scale 1, with uv.y running up it (the strip's bark is its first fifth). */
-function pine() {
- const pos = [], uv = [], nrm = [], idx = [];
- const vert = (x, y, z, nx, ny, nz, v) => { pos.push(x, y, z); uv.push(0.5, v); nrm.push(nx, ny, nz); return pos.length / 3 - 1; };
- const SIDES = 10, H = 90;
- const rings = [[0, 4.2], [20, 3.4], [60, 1.8]].map(([y, r]) => Array.from({ length: SIDES + 1 }, (_, k) => {
- const a = (k / SIDES) * Math.PI * 2;
- return vert(Math.sin(a) * r, y, Math.cos(a) * r, Math.sin(a), 0.1, Math.cos(a), (y / H) * 0.19);
- }));
- for (let i = 0; i < rings.length - 1; i++) for (let k = 0; k < SIDES; k++) {
- const a = rings[i][k], b = rings[i][k + 1], c = rings[i + 1][k], d = rings[i + 1][k + 1];
- idx.push(a, c, b, b, c, d);
- }
- for (const [low, high, radius] of [[16, 30, 26], [30, 44, 21], [44, 58, 16.5], [58, 72, 12], [70, 90, 7.5]]) {
- const slope = radius / (high - low), len = Math.hypot(1, slope);
- const ring = (y, r, v) => Array.from({ length: SIDES + 1 }, (_, k) => {
- const a = (k / SIDES) * Math.PI * 2;
- return vert(Math.sin(a) * r, y, Math.cos(a) * r, Math.sin(a) / len, slope / len, Math.cos(a) / len, v);
- });
- const skirt = ring(low, radius, 0.22 + (low / H) * 0.75), tip = ring(high, 0, 0.22 + (high / H) * 0.77);
- for (let k = 0; k < SIDES; k++) idx.push(skirt[k], tip[k], skirt[k + 1]);
- const centre = vert(0, low, 0, 0, -1, 0, 0.22);
- const under = Array.from({ length: SIDES + 1 }, (_, k) => {
- const a = (k / SIDES) * Math.PI * 2;
- return vert(Math.sin(a) * radius, low, Math.cos(a) * radius, 0, -1, 0, 0.22);
- });
- for (let k = 0; k < SIDES; k++) idx.push(centre, under[k], under[k + 1]);
- }
- const { channels, vertexStride } = packChannels([
- { semantic: MeshChannel.Position, components: 3, type: MeshChannelType.Float32 },
- { semantic: MeshChannel.TexCoord0, components: 2, type: MeshChannelType.Float32 },
- { semantic: MeshChannel.Color, components: 4, type: MeshChannelType.UNorm8 },
- { semantic: MeshChannel.Normal, components: 3, type: MeshChannelType.Float32 },
- ]);
- const count = pos.length / 3;
- const vertices = new Uint8Array(count * vertexStride);
- const view = new DataView(vertices.buffer);
- const min = [Infinity, Infinity, Infinity], max = [-Infinity, -Infinity, -Infinity];
- for (let i = 0; i < count; i++) {
- const at = i * vertexStride;
- for (let k = 0; k < 3; k++) {
- view.setFloat32(at + channels[0].offset + k * 4, pos[i * 3 + k], true);
- view.setFloat32(at + channels[3].offset + k * 4, nrm[i * 3 + k], true);
- min[k] = Math.min(min[k], pos[i * 3 + k]);
- max[k] = Math.max(max[k], pos[i * 3 + k]);
- }
- view.setFloat32(at + channels[1].offset, uv[i * 2], true);
- view.setFloat32(at + channels[1].offset + 4, uv[i * 2 + 1], true);
- view.setUint32(at + channels[2].offset, 0xffffffff, true);
- }
- write('assets/models/pine.esmesh', Buffer.from(encodeMesh({ channels, vertexStride, vertexCount: count, vertices, indices: new Uint32Array(idx), aabbMin: min, aabbMax: max })));
- meta('assets/models/pine.esmesh', 'mesh');
+ }, { tile: 1400, roughness: 0.75, relief: 6, heightBlend: 0.9 });
}
// ── materials ──────────────────────────────────────────────────────────────────────────────────────────────────────────
@@ -449,7 +382,6 @@ function material(name, shader, properties) {
}
function materials() {
- const white = { r: 1, g: 1, b: 1, a: 1 };
// The ground's look: its layers (the Terrain's `layers`) are the textures, this how they meet and wear.
material('ground', 'builtin:terrain-layers', {
u_macroVariation: 0.45, u_sharpness: 1.4, u_blendNoise: 0.6, u_heightBlend: 0.8, u_antiTile: 0.7,
@@ -460,15 +392,12 @@ function materials() {
u_fallbackDepth: 400, u_causticScale: 220, u_roughness: 0.04 };
material('water', 'builtin:water', water);
material('crate', 'builtin:model', { u_metallic: 0, u_roughness: 0.8 });
- const grass = (base, tip, wind) => ({ u_baseColor: base, u_tipColor: tip, u_windStrength: wind, u_windSpeed: 1.2, u_windDirection: 30,
- u_gustScale: 0.0015, u_flutter: 0.35, u_translucency: 0.5 });
- material('meadow', 'builtin:foliage', grass({ r: 0.1, g: 0.2, b: 0.05, a: 1 }, { r: 0.5, g: 0.66, b: 0.22, a: 1 }, 6));
- material('flowers', 'builtin:foliage', grass({ r: 0.12, g: 0.22, b: 0.06, a: 1 }, { r: 0.98, g: 0.84, b: 0.3, a: 1 }, 6));
- material('reeds', 'builtin:foliage', grass({ r: 0.16, g: 0.2, b: 0.08, a: 1 }, { r: 0.62, g: 0.58, b: 0.32, a: 1 }, 10));
- material('pine', 'builtin:foliage', {
- u_albedo: 'assets/textures/pine.png', u_useTexture: 1, u_baseColor: white, u_tipColor: white,
- u_windStrength: 9, u_windSpeed: 0.9, u_windDirection: 30, u_gustScale: 0.0006, u_flutter: 0.1, u_translucency: 0.15, u_roughness: 0.9,
- });
+}
+
+/** The world rules the plants are laid out by, as a project file: the biomes, recipes, layers and the plants they name. */
+function plantsFile() {
+ write('assets/worlds/plants.esworld', `${JSON.stringify(plantRules({ project: PROJECT, lakeLevel: WORLD.lake.level, snow: WORLD.snow }), null, 1)}\n`);
+ meta('assets/worlds/plants.esworld', 'world-rules');
}
// ── the scene ──────────────────────────────────────────────────────────────────────────────────────────────────────────
@@ -561,22 +490,11 @@ function scene() {
{ type: 'Weather', data: { preset: Math.max(0, presets.indexOf(process.env.TW_WEATHER ?? 'clear')), target: -1, progress: 0, duration: 8,
sequence: process.env.TW_WEATHER ? '' : 'clear,overcast,rain,storm,rain,clear', hold: 25, drive: 255 } },
]);
- // The plants: a meadow over the valley, flowers scattered in it, reeds where the ground is low by the lake and the rivers.
- const plants = (name, material, extra) => add(name, [
- { type: 'Transform', data: { position: { x: 1000, y: 0, z: 0 } } },
- { type: 'Foliage', data: { material, sizeX: 18000, sizeZ: 16000, cellSize: 1000, seed: 3, minScale: 0.7, maxScale: 1.4, minUp: 0.85,
- lodDistance: 1800, drawDistance: 4500, ...extra } },
- ]);
- plants('Meadow', 'assets/materials/meadow.esmaterial', { count: 2200, heightMin: WORLD.lake.level + 160, heightMax: WORLD.snow - 600, bladeHeight: 55, bladeWidth: 6 });
- plants('Flowers', 'assets/materials/flowers.esmaterial', { count: 160, seed: 11, heightMin: WORLD.lake.level + 200, heightMax: 2200, bladeHeight: 45, bladeWidth: 9 });
- plants('Reeds', 'assets/materials/reeds.esmaterial', { count: 1600, seed: 5, minUp: 0.75, heightMin: WORLD.lake.level - 40, heightMax: WORLD.lake.level + 140,
- bladeHeight: 150, bladeWidth: 4, waterDepth: 60 });
- add('Pines', [
- { type: 'Transform', data: { position: { x: 0, y: 0, z: -3000 } } },
- { type: 'Foliage', data: {
- mesh: 'assets/models/pine.esmesh', material: 'assets/materials/pine.esmaterial', sizeX: WORLD.size, sizeZ: 20000, cellSize: 1200, count: 2, seed: 8,
- minScale: 8, maxScale: 13, minUp: 0.8, heightMin: WORLD.lake.level + 900, heightMax: WORLD.snow - 150, lodDistance: 7000, drawDistance: 60000,
- cardU0: 0.2, cardV0: 0.22, cardU1: 0.8, cardV1: 0.95, cardTent: 1 } },
+ // The plants: woods on the hills, willows and reeds by the lake, stones, shrubs, grass and flowers over the meadows. The rules are a project file
+ // (written by plants.mjs, edited in the editor), and the WorldGen lays the world out from them as the eye moves.
+ add('Plants', [
+ { type: 'Transform', data: {} },
+ { type: 'WorldGen', data: { rules: 'assets/worlds/plants.esworld', version: 1, world: 'terrain-water', seed: 7, paintGround: false } },
]);
const crates = [...WORLD.crates.lake.map(([x, z]) => [x, z, WORLD.lake.level]), ...WORLD.crates.sea.map(([x, z]) => [x, z, WORLD.sea])];
crates.forEach(([x, z, level], i) => {
@@ -592,7 +510,7 @@ function scene() {
points: [[-1, -1], [1, -1], [-1, 1], [1, 1]].map(([a, b]) => ({ x: a * half * 0.8, y: -half * 0.5, z: b * half * 0.8 })) } },
]);
});
- // For looking at one thing at a time: TW_DROP=Lake,Pines leaves those out.
+ // For looking at one thing at a time: TW_DROP=Lake,Plants leaves those out.
const drop = (process.env.TW_DROP ?? '').split(',');
const kept = entities.filter((e) => !drop.includes(e.name)).map((e, id) => ({ ...e, id }));
write('assets/scenes/main.esscene', `${JSON.stringify({ version: 4, name: 'Terrain & Water', entities: kept }, null, 1)}\n`);
@@ -602,7 +520,7 @@ function scene() {
heightmap();
splatmap();
textures();
-pine();
materials();
+plantsFile();
scene();
console.log('terrain-water: written');
diff --git a/examples/terrain-water/tools/plants.mjs b/examples/terrain-water/tools/plants.mjs
new file mode 100644
index 000000000..789f55a4e
--- /dev/null
+++ b/examples/terrain-water/tools/plants.mjs
@@ -0,0 +1,222 @@
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
+/**
+ * @file plants.mjs — the rules the trees, shrubs, stones, grass, flowers and reeds of the Terrain & Water project are laid out by.
+ *
+ * The plants are the lakewood set (assets/plants), made in metres and set here in this world's centimetres. The rules are the engine's world rules
+ * (the generated-world page): biomes that are weights over fields, recipes that are a group round an anchor, layers that are passes which keep clear
+ * of one another, and the plants the recipes name, each its parts, a cheaper mesh, a far version and the colourings the art gives it. This script
+ * writes them as `assets/worlds/plants.esworld`; the scene's `WorldGen` lays the world out from the file as the eye moves, and the editor edits it.
+ *
+ * The fields the biomes read are the ground's (`height`, `up`, `shoreDistance`, `waterDepth`), the seeded noise (`moisture`, `rock`, and patches of
+ * our own: `turf`, `bloom`, `reeds`) and the terrain's paint (`paint.grass`, `paint.rock`, a field for each of its layers). Nothing is a line: a biome's
+ * edge is a band over which its weight rises, so a meadow thins toward the water and a wood gives way to a meadow, and a steep place holds no trees
+ * because the wood's weight falls with the ground's `up`, not because a number in a function said so.
+ */
+import { readFileSync, existsSync } from 'node:fs';
+import path from 'node:path';
+
+/** The plants are in metres, the world in centimetres. */
+const M = 100;
+
+/** The renderers of a prefab's parts, in order. */
+function partsOf(project, file) {
+ const full = path.join(project, file);
+ if (!existsSync(full)) return [];
+ return JSON.parse(readFileSync(full, 'utf8')).entities
+ .flatMap((e) => e.components.filter((c) => c.type === 'MeshRenderer').map((c) => c.data));
+}
+
+const asPart = (d, lod1Mesh = '') => ({
+ mesh: d.mesh, lod1Mesh, material: d.material ?? '', texture: d.texture ?? '',
+ tint: [d.color?.r ?? 1, d.color?.g ?? 1, d.color?.b ?? 1, d.color?.a ?? 1], opaque: d.opaque !== false,
+});
+
+/**
+ * The art's colour variation (color-variation.json): linear multipliers on a plant's colour, three to a group, which a place takes one of by a slow noise,
+ * so a wood has warm and cool stands and not a speckle. Flowers are absolute colours and stay as made.
+ */
+const TINTS = {
+ oak: [[0.94, 1, 0.9], [1, 1, 1], [1.05, 0.98, 0.87]],
+ birch: [[0.94, 1, 0.93], [1, 1, 1], [1.04, 1.04, 0.9]],
+ willow: [[0.9, 1, 1.03], [1, 1, 1], [1.05, 1, 0.94]],
+ shrub: [[0.94, 1, 0.92], [1, 1, 1], [1.08, 1.03, 0.9]],
+ grass: [[0.9, 1, 0.85], [1, 1, 1], [1.12, 1.02, 0.8]],
+ reed: [[0.9, 1, 0.9], [1, 1, 1], [1.1, 1.02, 0.83]],
+};
+
+/** The kinds of plant: the prefab each is made of, how far it is drawn (metres: the cheaper mesh from `lod`, nothing past `draw`, the far version out to `far`). */
+const KINDS = {
+ oak: { prefab: 'tree-oak', lod: 60, draw: 160, far: 2000, tints: TINTS.oak },
+ birch: { prefab: 'tree-birch', lod: 60, draw: 160, far: 2000, tints: TINTS.birch },
+ willow: { prefab: 'tree-willow', lod: 60, draw: 160, far: 2000, tints: TINTS.willow },
+ hazel: { prefab: 'shrub-hazel', lod: 40, draw: 120, tints: TINTS.shrub },
+ coppice: { prefab: 'shrub-woodland-coppice', lod: 40, draw: 120, tints: TINTS.shrub },
+ 'granite-crown': { prefab: 'granite-crown', lod: 90, draw: 330, sink: 8 },
+ 'granite-bank': { prefab: 'granite-bank', lod: 90, draw: 330, sink: 8 },
+ 'granite-split': { prefab: 'granite-split', lod: 90, draw: 330, sink: 8 },
+ 'grass-fine': { prefab: 'grass-fine', lod: 30, draw: 90, tints: TINTS.grass },
+ 'grass-meadow': { prefab: 'grass-meadow', lod: 30, draw: 90, tints: TINTS.grass },
+ 'flower-ivory': { prefab: 'flower-ivory', lod: 40, draw: 90 },
+ 'flower-amber': { prefab: 'flower-amber', lod: 40, draw: 90 },
+ 'flower-blue': { prefab: 'flower-blue', lod: 40, draw: 90 },
+ reed: { prefab: 'reed-lakeside', lod: 40, draw: 90, tints: TINTS.reed },
+};
+
+/** The `plants` table of the rules: each kind's parts read from its prefab, with the cheaper mesh and the far cards beside it. */
+function plants(project) {
+ const out = {};
+ for (const [name, k] of Object.entries(KINDS)) {
+ const base = `assets/plants/models/${k.prefab}`;
+ const parts = partsOf(project, `${base}/${k.prefab}.esprefab`), near = partsOf(project, `${base}/lod1/${k.prefab}.esprefab`);
+ const cards = partsOf(project, `${base}/far/${k.prefab}.esprefab`);
+ const cheaper = near.length === parts.length;
+ out[name] = {
+ parts: parts.map((d, j) => asPart(d, cheaper ? near[j].mesh : '')),
+ lodDistance: cheaper ? k.lod * M : 0, drawDistance: k.draw * M,
+ far: cards.map((d) => asPart(d)), farDistance: cards.length ? (k.far ?? 0) * M : 0,
+ ...(k.tints ? { tints: k.tints, tintScale: 1300 } : {}),
+ ...(k.sink ? { sink: k.sink } : {}),
+ // The art is in metres and this world in centimetres.
+ unit: M,
+ };
+ }
+ return out;
+}
+
+/**
+ * The rules, as `registerWorldRules` takes them (and as an `.esworld` file holds them). Distances are centimetres; `footprint` is what a trunk or a clump
+ * takes of the ground and `canopy` how far it spreads. A biome is a kind of place, and says what stands in it in every layer: a candidate takes a
+ * biome by weight, then the recipe that biome has in the layer, so how thick a layer is here is the biome's `density` for it.
+ */
+export function plantRules({ project, lakeLevel, snow }) {
+ const tree = (plant) => ({ id: plant, plant, footprint: 50, canopy: 500, minUp: 0.8 });
+ const shrub = (plant, count) => ({ id: plant, plant, count, ring: [250, 800], scale: [0.7, 1.2], footprint: 80, canopy: 150, minUp: 0.8 });
+ const grass = (plant, count, ring, scale = [1, 1.9], extra = {}) => ({ id: `${plant}.${ring[0]}`, plant, count, ring, scale, footprint: 20, minUp: 0.8, ...extra });
+ const grove = (anchor, other) => ({
+ id: `grove-${anchor}`, version: 1, tags: ['tree'],
+ anchor: { ...tree(anchor), id: 'elder', scale: [1.0, 1.35] },
+ members: [
+ { ...tree(anchor), id: 'kin', count: [1, 3], ring: [300, 750], scale: [0.7, 1.25] },
+ { ...tree(other), id: 'other', count: [1, 3], ring: [300, 750], scale: [0.7, 1.25] },
+ shrub('hazel', [1, 3]), shrub('coppice', [1, 2]),
+ grass('grass-fine', [3, 7], [100, 900], [1, 1.9], { chance: 0.8 }), grass('grass-meadow', [2, 5], [100, 900], [1, 1.9], { chance: 0.8 }),
+ ],
+ });
+ const lone = (anchor) => ({
+ id: `lone-${anchor}`, version: 1, tags: ['tree'], anchor: { ...tree(anchor), id: 'elder', scale: [0.9, 1.3], minUp: 0.92 },
+ members: [shrub('hazel', [0, 2]), shrub('coppice', [0, 1])],
+ });
+ const rock = (id) => ({
+ id: `rocks-${id}`, version: 1, tags: ['stone'], anchor: { id, plant: `granite-${id}`, scale: [0.8, 1.6], footprint: 120, canopy: 160, minUp: 0.6 },
+ members: [{ id: 'small', plant: 'granite-split', count: [1, 4], ring: [120, 420], scale: [0.35, 0.7], footprint: 40, minUp: 0.6 }],
+ });
+ const drift = (colour) => ({
+ id: `drift-${colour}`, version: 1, tags: ['flower'], anchor: { id: 'bloom', plant: `flower-${colour}`, scale: [1, 1.4], footprint: 10, minUp: 0.85 },
+ members: [
+ { id: 'more', plant: `flower-${colour}`, count: [5, 14], ring: [40, 220], scale: [0.8, 1.4], footprint: 12, minUp: 0.85 },
+ grass('grass-fine', [2, 5], [40, 200], [1, 1.6], { footprint: 12 }),
+ ],
+ });
+ return {
+ id: 'terrain-water:plants', versions: [1],
+ // The slow noise the rules read by name: damp ground, rocky ground, and the patches the meadow's cover, flowers and reeds come in.
+ noise: {
+ moisture: { scale: 4200, octaves: 3 }, rock: { scale: 700, octaves: 3 },
+ turf: { scale: 1400, octaves: 2 }, bloom: { scale: 1100, octaves: 2 }, reeds: { scale: 900, octaves: 2 },
+ },
+ plants: plants(project),
+ biomes: [
+ // The wood: damp ground away from the water, gentle, in the band the trees grow in. Steeper, higher or drier ground lowers its weight and it gives way to
+ // meadow by itself; under the trees there is grass and the odd drift of flowers.
+ { id: 'wood', transition: 300,
+ conditions: [
+ { field: 'moisture', min: 0.3, blend: 0.15 }, { field: 'shoreDistance', min: 600, blend: 500 }, { field: 'up', min: 0.78, blend: 0.12 },
+ { field: 'height', min: 760, max: snow - 300, blend: 250 }, { field: 'paint.grass', min: 0.1, blend: 0.2 },
+ ],
+ recipes: [
+ { recipe: 'grove-oak', layer: 'groves', density: 0.6 }, { recipe: 'grove-birch', layer: 'groves', density: 0.5 },
+ { recipe: 'tufts', layer: 'cover', density: 0.4 }, { recipe: 'drift-ivory', layer: 'drifts', density: 0.1 },
+ ] },
+ // The meadow rises from the water's edge over a band, so its grass and flowers thin out toward it and do not stop at a line.
+ { id: 'meadow', transition: 200,
+ conditions: [
+ { field: 'shoreDistance', min: 120, blend: 900 }, { field: 'up', min: 0.9, blend: 0.06 },
+ { field: 'height', min: 780, max: snow - 700, blend: 250 }, { field: 'paint.grass', min: 0.35, blend: 0.25 },
+ ],
+ recipes: [
+ { recipe: 'lone-oak', layer: 'groves', density: 0.08 }, { recipe: 'lone-birch', layer: 'groves', density: 0.06 },
+ { recipe: 'tufts', layer: 'cover', density: 0.35 },
+ { recipe: 'drift-ivory', layer: 'drifts', density: 0.1 }, { recipe: 'drift-amber', layer: 'drifts', density: 0.1 }, { recipe: 'drift-blue', layer: 'drifts', density: 0.1 },
+ ] },
+ // Turf and blooms are the meadow's patches: the same ground where a slow noise is high, thick with tufts or with flowers, so the cover comes in
+ // drifts with bare ground between them.
+ { id: 'turf', transition: 300,
+ conditions: [
+ { field: 'shoreDistance', min: 120, blend: 900 }, { field: 'up', min: 0.9, blend: 0.06 }, { field: 'height', min: 780, max: snow - 700, blend: 250 },
+ { field: 'paint.grass', min: 0.35, blend: 0.25 }, { field: 'turf', min: 0.35, blend: 0.15 },
+ ],
+ recipes: [{ recipe: 'tufts', layer: 'cover', density: 1 }] },
+ { id: 'blooms', transition: 300,
+ conditions: [
+ { field: 'shoreDistance', min: 300, blend: 900 }, { field: 'up', min: 0.92, blend: 0.05 }, { field: 'height', min: 780, max: 2600, blend: 300 },
+ { field: 'paint.grass', min: 0.45, blend: 0.25 }, { field: 'bloom', min: 0.42, blend: 0.13 },
+ ],
+ recipes: [
+ { recipe: 'drift-ivory', layer: 'drifts', density: 0.33 }, { recipe: 'drift-amber', layer: 'drifts', density: 0.33 }, { recipe: 'drift-blue', layer: 'drifts', density: 0.33 },
+ { recipe: 'tufts', layer: 'cover', density: 0.5 },
+ ] },
+ // The bank, above the water: willows, a few together, with grass under them.
+ { id: 'bank', transition: 200,
+ conditions: [
+ { field: 'shoreDistance', min: 100, max: 1800, blend: 450 }, { field: 'up', min: 0.9, blend: 0.08 },
+ { field: 'height', min: lakeLevel, max: lakeLevel + 500, blend: 120 },
+ ],
+ recipes: [{ recipe: 'willows', layer: 'banks', density: 0.8 }, { recipe: 'tufts', layer: 'cover', density: 0.25 }] },
+ // The shallows: reeds in strips, standing in the water and on the wet bank, thinning out on both sides.
+ { id: 'shallows', transition: 250,
+ conditions: [
+ { field: 'shoreDistance', min: -250, max: 350, blend: 220 }, { field: 'reeds', min: 0.3, blend: 0.2 },
+ { field: 'height', min: lakeLevel - 70, max: lakeLevel + 120, blend: 40 },
+ ],
+ recipes: [{ recipe: 'reed-strip', layer: 'reeds', density: 0.9 }] },
+ // Stones: where the paint is rock and, more thinly, where the slow rock noise is high.
+ { id: 'rocky', transition: 200,
+ conditions: [{ field: 'paint.rock', min: 0.15, blend: 0.2 }, { field: 'height', min: 700, max: snow, blend: 200 }],
+ recipes: [{ recipe: 'rocks-crown', layer: 'stones', density: 0.5 }, { recipe: 'rocks-bank', layer: 'stones', density: 0.4 }, { recipe: 'rocks-split', layer: 'stones', density: 0.3 }] },
+ { id: 'scatter', transition: 400,
+ conditions: [{ field: 'rock', min: 0.62, blend: 0.08 }, { field: 'up', min: 0.8, blend: 0.1 }, { field: 'shoreDistance', min: 100, blend: 300 }, { field: 'height', min: 700, max: snow, blend: 200 }],
+ recipes: [{ recipe: 'rocks-split', layer: 'stones', density: 0.5 }, { recipe: 'rocks-bank', layer: 'stones', density: 0.3 }] },
+ ],
+ recipes: [
+ grove('oak', 'birch'), grove('birch', 'oak'), lone('oak'), lone('birch'),
+ {
+ id: 'willows', version: 1, tags: ['tree'], anchor: { id: 'willow', plant: 'willow', scale: [0.9, 1.2], footprint: 60, canopy: 500, minUp: 0.8 },
+ members: [
+ { id: 'kin', plant: 'willow', count: [0, 2], ring: [450, 800], scale: [0.7, 1], footprint: 60, canopy: 450, minUp: 0.8, chance: 0.5 },
+ grass('grass-meadow', [3, 7], [150, 700], [1, 1.6]),
+ ],
+ },
+ rock('crown'), rock('bank'), rock('split'),
+ {
+ id: 'tufts', version: 1, tags: ['grass'], anchor: { id: 'tuft', plant: 'grass-fine', scale: [1.1, 1.9], footprint: 15, minUp: 0.8 },
+ members: [grass('grass-meadow', [3, 8], [25, 120], [0.9, 1.7], { footprint: 12 }), grass('grass-fine', [0, 3], [25, 120], [0.9, 1.5], { footprint: 12 })],
+ },
+ drift('ivory'), drift('amber'), drift('blue'),
+ {
+ id: 'reed-strip', version: 1, tags: ['reed'], anchor: { id: 'reed', plant: 'reed', scale: [0.9, 1.4], footprint: 25, waterDepth: 70, minUp: 0.5 },
+ members: [{ id: 'more', plant: 'reed', count: [2, 6], ring: [30, 160], scale: [0.8, 1.4], footprint: 20, waterDepth: 70, minUp: 0.5 }],
+ },
+ ],
+ // Big things first; each keeps clear of what the layers before it stand on. The ground cover and the reeds are passes later ones may overlap. A layer
+ // is grown out to `drawDistance` (what its plants draw as themselves); their far versions are laid out as far as they go, on their own.
+ layers: [
+ { id: 'groves', spacing: 750, chunkSize: 3200, drawDistance: 17000 },
+ { id: 'banks', spacing: 420, chunkSize: 3200, drawDistance: 17000 },
+ { id: 'stones', spacing: 1500, chunkSize: 3200, drawDistance: 34000 },
+ { id: 'cover', spacing: 190, chunkSize: 3200, drawDistance: 9500, occupies: false },
+ { id: 'drifts', spacing: 600, chunkSize: 3200, drawDistance: 9500, occupies: false },
+ { id: 'reeds', spacing: 130, chunkSize: 3200, drawDistance: 9500, occupies: false },
+ ],
+ };
+}