@margoengine/scenes 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/NOTICE +4 -4
- package/README.md +620 -387
- package/dist/{dune-coast-info-e8eDZXBu.js → dune-coast-info-D9yQIv8G.js} +13 -3
- package/dist/dune-coast.d.ts +20 -1
- package/dist/dune-coast.js +374 -187
- package/dist/errors-fc4i1pSL.js +7 -0
- package/dist/fauld-blast.d.ts +119 -21
- package/dist/fauld-blast.js +957 -206
- package/dist/fauld-countryside.d.ts +1 -1
- package/dist/fauld-countryside.js +4 -4
- package/dist/fauld-crater.d.ts +1 -1
- package/dist/fauld-crater.js +4 -4
- package/dist/fauld-dig.d.ts +89 -0
- package/dist/fauld-dustfall-fines-grid-MA6XPrq6.js +14 -0
- package/dist/fauld-dustfall-fines-grid.d.ts +11 -0
- package/dist/fauld-dustfall-grid-Bb4X8b-u.js +14 -0
- package/dist/fauld-dustfall-grid.d.ts +11 -0
- package/dist/fauld-explosion.d.ts +135 -0
- package/dist/fauld-grains.d.ts +27 -0
- package/dist/fauld-mud.d.ts +104 -0
- package/dist/fauld-surge.d.ts +71 -0
- package/dist/fauld-tunnels.d.ts +76 -3
- package/dist/fauld-tunnels.js +518 -193
- package/dist/fauld-world-CNNSonJF.js +863 -0
- package/dist/fauld-world.d.ts +86 -3
- package/dist/index.js +2 -2
- package/dist/{library-mesh-BRk4Ycnn.js → library-mesh-CjTG-mVZ.js} +97 -74
- package/dist/library-parts.d.ts +11 -1
- package/dist/library.js +1 -1
- package/dist/look-family.d.ts +16 -1
- package/dist/look-family.js +35 -12
- package/dist/shared/settings.d.ts +89 -89
- package/dist/{timber-valley-info-BB6GvcsL.js → timber-valley-info-vVI2nwDs.js} +11 -0
- package/dist/timber-valley.d.ts +69 -3
- package/dist/timber-valley.js +198 -136
- package/package.json +106 -104
- package/dist/fauld-world-85dg03jo.js +0 -582
|
@@ -46,9 +46,9 @@ var e = {
|
|
|
46
46
|
},
|
|
47
47
|
sand: {
|
|
48
48
|
default: [
|
|
49
|
-
.
|
|
50
|
-
.
|
|
51
|
-
.
|
|
49
|
+
.5,
|
|
50
|
+
.42,
|
|
51
|
+
.29
|
|
52
52
|
],
|
|
53
53
|
about: "dry sand albedo, linear RGB"
|
|
54
54
|
},
|
|
@@ -155,6 +155,16 @@ var e = {
|
|
|
155
155
|
unit: "m",
|
|
156
156
|
about: "ambient occlusion reach (GTAO), 0 for none"
|
|
157
157
|
},
|
|
158
|
+
footprints: {
|
|
159
|
+
default: 1,
|
|
160
|
+
range: [0, 1],
|
|
161
|
+
about: "depth of the footprints trodden round the camp, 0 for none"
|
|
162
|
+
},
|
|
163
|
+
scour: {
|
|
164
|
+
default: 1,
|
|
165
|
+
range: [0, 1],
|
|
166
|
+
about: "sand the wind has shaped round the sheds and grass, 0 for none"
|
|
167
|
+
},
|
|
158
168
|
blownSand: {
|
|
159
169
|
default: 0,
|
|
160
170
|
range: [0, 1],
|
package/dist/dune-coast.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type EngineKernel, type Vec3 } from '@margoengine/core';
|
|
2
|
+
import { TerrainDeformation } from '@margoengine/terrain/deform';
|
|
2
3
|
import { PresetScene } from '@margoengine/sky/scenes';
|
|
3
4
|
import { Water } from '@margoengine/water';
|
|
4
5
|
import { GrassScatter } from '@margoengine/scatter/grass';
|
|
@@ -33,7 +34,10 @@ export interface DuneCoastSettings {
|
|
|
33
34
|
readonly wind?: number;
|
|
34
35
|
/** Compass direction the wind blows FROM, degrees (0 north, 90 east). Default 0. */
|
|
35
36
|
readonly windFrom?: number;
|
|
36
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Dry sand albedo, linear RGB. Default [0.5, 0.42, 0.29], @margoengine/terrain's `DRY_SAND` (luminance 0.43, inside dry
|
|
39
|
+
* sand's measured 0.35 to 0.45, Oke 1987 table 1.1).
|
|
40
|
+
*/
|
|
37
41
|
readonly sand?: Vec3;
|
|
38
42
|
/** Share of the ground in dune grass patches, most on the hummocks, 0 (none) to 1. Default 0.5 (see `grassCover`). */
|
|
39
43
|
readonly grass?: number;
|
|
@@ -83,6 +87,19 @@ export interface DuneCoastSettings {
|
|
|
83
87
|
* once registered: `scene.parts.occlusion?.add(model)`.
|
|
84
88
|
*/
|
|
85
89
|
readonly occlusion?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Footprints trodden into the sand with the camp: between the sheds, to and fro between the camp and the launch rail
|
|
92
|
+
* and along the rail (`TerrainDeformation` of @margoengine/terrain/deform), 0 (none) to 1 their depth, 4.5 cm at 1.
|
|
93
|
+
* Needs `camp`. They show within 45 m of the camera. Default 1.
|
|
94
|
+
*/
|
|
95
|
+
readonly footprints?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Sand the wind has shaped round the camp, 0 (none) to 1 (`windScour` of @margoengine/terrain/scour): with `camp`, a
|
|
98
|
+
* scour moat along the sheds' windward walls and flanks, a deposit horseshoe in front and two tails past them; with
|
|
99
|
+
* `grass`, shadow dunes in the lee of grass clumps round the camp and the rail. None at wind speeds of 6.6 m/s or
|
|
100
|
+
* less. The ground mesh is split finer where they lie. Default 1.
|
|
101
|
+
*/
|
|
102
|
+
readonly scour?: number;
|
|
86
103
|
/** Real ground heights in place of the built landform. */
|
|
87
104
|
readonly heights?: DuneCoastHeights;
|
|
88
105
|
/**
|
|
@@ -133,6 +150,8 @@ export interface DuneCoastScene extends Disposable {
|
|
|
133
150
|
readonly grass?: GrassScatter;
|
|
134
151
|
/** The ambient occlusion pass, first in `preset.post`; absent when `occlusion` is 0. */
|
|
135
152
|
readonly occlusion?: GTAO;
|
|
153
|
+
/** The trodden footprints, absent without `camp` or with `footprints` 0; `walk` lays more. */
|
|
154
|
+
readonly footprints?: TerrainDeformation;
|
|
136
155
|
/** The wind-blown sand, when `blownSand` is above 0, once `ready` has settled. */
|
|
137
156
|
readonly blownSand?: BlownSand;
|
|
138
157
|
};
|