genshin-engine 4.3.1 → 4.3.3
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/dist/index.d.ts +1 -881
- package/dist/index.js +277 -553
- package/dist/{terrainWorker-DZ04cA3m.js → terrainWorker-Bgj3rmZs.js} +30 -60
- package/dist/{terrainWorker-CLOYYKT1.d.ts → terrainWorker-BjxpqdfH.d.ts} +0 -60
- package/dist/terrainWorker.d.ts +1 -1
- package/dist/terrainWorker.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as CliffFeature, C as GroundLayerField, D as GroundBand, E as GroundLayers, O as GaussianHills, S as GroundPathSegment, T as GroundLayer, _ as TerrainOptions, a as createTerrainShapeHeight, b as PlateauFeature, c as computeTerrainTile, d as TerrainTileOptions, f as TerrainShape, g as TerrainResidualClearing, h as TerrainResidualFade, i as getTerrainTileColumn, j as TerrainFeatureKind, k as GaussianHill, l as createSeededRandom, m as TerrainResidual, n as getTerrainTileRow, o as createGroundPaintColor, p as TerrainTile, r as getTerrainTileLevel, s as createGroundLayerWeights, t as computeScatterPoints, u as ScatterOptions, v as TerrainFeature, w as GroundLayerColors, x as GroundPaint, y as RidgeFeature } from "./terrainWorker-
|
|
1
|
+
import { A as CliffFeature, C as GroundLayerField, D as GroundBand, E as GroundLayers, O as GaussianHills, S as GroundPathSegment, T as GroundLayer, _ as TerrainOptions, a as createTerrainShapeHeight, b as PlateauFeature, c as computeTerrainTile, d as TerrainTileOptions, f as TerrainShape, g as TerrainResidualClearing, h as TerrainResidualFade, i as getTerrainTileColumn, j as TerrainFeatureKind, k as GaussianHill, l as createSeededRandom, m as TerrainResidual, n as getTerrainTileRow, o as createGroundPaintColor, p as TerrainTile, r as getTerrainTileLevel, s as createGroundLayerWeights, t as computeScatterPoints, u as ScatterOptions, v as TerrainFeature, w as GroundLayerColors, x as GroundPaint, y as RidgeFeature } from "./terrainWorker-BjxpqdfH.js";
|
|
2
2
|
import { Box3, BufferAttribute, BufferGeometry, Camera, CanvasTexture, Color, ColorRepresentation, Data3DTexture, DataTexture, DirectionalLight, Frustum, HemisphereLight, InstancedBufferGeometry, InstancedMesh, Material, Matrix3, Matrix4, Mesh, Object3D, OrthographicCamera, PerspectiveCamera, Quaternion, Scene, Skeleton, SkinnedMesh, Sprite, Texture, ToneMapping, Vector2, Vector3, Vector3Like, Vector3Tuple, Vector4Tuple } from "three";
|
|
3
3
|
import { IndirectStorageBufferAttribute, LightingModel, LightingModelDirectInput, Material as Material$1, MeshBasicNodeMaterial, MeshToonNodeMaterial, MeshToonNodeMaterialParameters, Node, NodeBuilder, NodeFrame, NodeMaterial, PassNode, RenderPipeline, RenderTarget, Renderer, StorageBufferAttribute, Texture as Texture$1, TextureNode, ToonOutlinePassNode, UniformArrayNode, UniformNode, WebGPURenderer } from "three/webgpu";
|
|
4
4
|
import { CSMShadowNode, CSMShadowNodeData } from "three/examples/jsm/csm/CSMShadowNode.js";
|
|
@@ -7,7 +7,6 @@ import GTAONode from "three/examples/jsm/tsl/display/GTAONode.js";
|
|
|
7
7
|
import BloomNode from "three/examples/jsm/tsl/display/BloomNode.js";
|
|
8
8
|
import GodraysNode from "three/examples/jsm/tsl/display/GodraysNode.js";
|
|
9
9
|
import { Inspector } from "three/examples/jsm/inspector/Inspector.js";
|
|
10
|
-
//#region src/models/atmosphere/SkyUniforms.d.ts
|
|
11
10
|
export interface SkyUniforms {
|
|
12
11
|
cloudCoverage: UniformNode<"float", number>;
|
|
13
12
|
cloudDrift: UniformNode<"vec2", Vector2>;
|
|
@@ -34,11 +33,7 @@ export interface SkyUniforms {
|
|
|
34
33
|
zenithBackColor: UniformNode<"color", Color>;
|
|
35
34
|
zenithColor: UniformNode<"color", Color>;
|
|
36
35
|
}
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/atmosphere/applyLightningFlash.d.ts
|
|
39
36
|
export declare const applyLightningFlash: (flash: number, flashColor: Color, skyUniforms: SkyUniforms, hemisphere: HemisphereLight) => void;
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/models/atmosphere/PrecipitationSettings.d.ts
|
|
42
37
|
export interface PrecipitationSettings {
|
|
43
38
|
fallSpeed: number;
|
|
44
39
|
length: number;
|
|
@@ -47,8 +42,6 @@ export interface PrecipitationSettings {
|
|
|
47
42
|
width: number;
|
|
48
43
|
windDrift: number;
|
|
49
44
|
}
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/models/atmosphere/PrecipitationUniforms.d.ts
|
|
52
45
|
export interface PrecipitationUniforms {
|
|
53
46
|
density: UniformNode<"float", number>;
|
|
54
47
|
eye: UniformNode<"vec3", Vector3>;
|
|
@@ -60,11 +53,7 @@ export interface PrecipitationUniforms {
|
|
|
60
53
|
width: UniformNode<"float", number>;
|
|
61
54
|
windDrift: UniformNode<"float", number>;
|
|
62
55
|
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/atmosphere/applyPrecipitationSettings.d.ts
|
|
65
56
|
export declare const applyPrecipitationSettings: ({ fallSpeed, length, opacity, sway, width, windDrift }: PrecipitationSettings, precipitationUniforms: PrecipitationUniforms) => void;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/models/atmosphere/BaseSkyState.d.ts
|
|
68
57
|
export interface BaseSkyState {
|
|
69
58
|
cloudLitColor: Color;
|
|
70
59
|
cloudShadeColor: Color;
|
|
@@ -77,8 +66,6 @@ export interface BaseSkyState {
|
|
|
77
66
|
starIntensity: number;
|
|
78
67
|
zenithColor: Color;
|
|
79
68
|
}
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/models/atmosphere/SkyShape.d.ts
|
|
82
69
|
export interface SkyShape {
|
|
83
70
|
frontBackBlend: number;
|
|
84
71
|
haloHeight: number;
|
|
@@ -86,14 +73,10 @@ export interface SkyShape {
|
|
|
86
73
|
moonSize: number;
|
|
87
74
|
sunHaloSize: number;
|
|
88
75
|
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/models/post/WhiteBalance.d.ts
|
|
91
76
|
export interface WhiteBalance {
|
|
92
77
|
temperature: number;
|
|
93
78
|
tint: number;
|
|
94
79
|
}
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/models/atmosphere/SkyState.d.ts
|
|
97
80
|
export interface SkyState extends BaseSkyState {
|
|
98
81
|
cloudLitBackColor?: Color;
|
|
99
82
|
cloudShadeBackColor?: Color;
|
|
@@ -112,8 +95,6 @@ export interface SkyState extends BaseSkyState {
|
|
|
112
95
|
whiteBalance?: WhiteBalance;
|
|
113
96
|
zenithBackColor?: Color;
|
|
114
97
|
}
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/models/nodes/LightUniforms.d.ts
|
|
117
98
|
export interface LightUniforms {
|
|
118
99
|
lightColor: UniformNode<"color", Color>;
|
|
119
100
|
rimColor: UniformNode<"color", Color>;
|
|
@@ -121,8 +102,6 @@ export interface LightUniforms {
|
|
|
121
102
|
sunDirection: UniformNode<"vec3", Vector3>;
|
|
122
103
|
wetness: UniformNode<"float", number>;
|
|
123
104
|
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/models/post/FogUniforms.d.ts
|
|
126
105
|
export interface FogUniforms {
|
|
127
106
|
baseHeight: UniformNode<"float", number>;
|
|
128
107
|
color: UniformNode<"color", Color>;
|
|
@@ -135,8 +114,6 @@ export interface FogUniforms {
|
|
|
135
114
|
scatterStrength: UniformNode<"float", number>;
|
|
136
115
|
startDistance: UniformNode<"float", number>;
|
|
137
116
|
}
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/models/post/PostUniforms.d.ts
|
|
140
117
|
export interface PostUniforms {
|
|
141
118
|
godraysColor: UniformNode<"color", Color>;
|
|
142
119
|
gradeIntensity: UniformNode<"float", number>;
|
|
@@ -145,8 +122,6 @@ export interface PostUniforms {
|
|
|
145
122
|
outlineThickness: UniformNode<"float", number>;
|
|
146
123
|
whiteBalance: UniformNode<"mat3", Matrix3>;
|
|
147
124
|
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region src/models/atmosphere/SkyTargets.d.ts
|
|
150
125
|
export interface SkyTargets {
|
|
151
126
|
fogUniforms: FogUniforms;
|
|
152
127
|
godraysLight?: DirectionalLight;
|
|
@@ -157,18 +132,12 @@ export interface SkyTargets {
|
|
|
157
132
|
postUniforms: PostUniforms;
|
|
158
133
|
skyUniforms: SkyUniforms;
|
|
159
134
|
}
|
|
160
|
-
//#endregion
|
|
161
|
-
//#region src/atmosphere/applySkyState.d.ts
|
|
162
135
|
export declare const applySkyState: (skyState: SkyState, { fogUniforms, godraysLight, hemisphere, light, lightDistance, lightUniforms, postUniforms, skyUniforms }: SkyTargets) => void;
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/models/atmosphere/PrecipitationKind.d.ts
|
|
165
136
|
export declare enum PrecipitationKind {
|
|
166
137
|
Rain = "Rain",
|
|
167
138
|
Sand = "Sand",
|
|
168
139
|
Snow = "Snow"
|
|
169
140
|
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region src/models/atmosphere/WeatherState.d.ts
|
|
172
141
|
export interface WeatherState {
|
|
173
142
|
cloudCoverage: number;
|
|
174
143
|
fogColor: number;
|
|
@@ -179,25 +148,17 @@ export interface WeatherState {
|
|
|
179
148
|
precipitationKind: PrecipitationKind;
|
|
180
149
|
wetness: number;
|
|
181
150
|
}
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region src/models/atmosphere/WeatherTargets.d.ts
|
|
184
151
|
export interface WeatherTargets {
|
|
185
152
|
fogUniforms: FogUniforms;
|
|
186
153
|
lightUniforms: LightUniforms;
|
|
187
154
|
precipitationUniforms: PrecipitationUniforms;
|
|
188
155
|
skyUniforms: SkyUniforms;
|
|
189
156
|
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/atmosphere/applyWeatherState.d.ts
|
|
192
157
|
export declare const applyWeatherState: ({ cloudCoverage, fogDensity, precipitationDensity, precipitationKind, wetness }: WeatherState, { fogUniforms, lightUniforms, precipitationUniforms, skyUniforms }: WeatherTargets, baseCloudCoverage: number, baseFogDensity: number) => void;
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region src/models/atmosphere/WeatherPrecipitation.d.ts
|
|
195
158
|
export interface WeatherPrecipitation {
|
|
196
159
|
density: number;
|
|
197
160
|
kind: PrecipitationKind;
|
|
198
161
|
}
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region src/models/atmosphere/WeatherSettings.d.ts
|
|
201
162
|
export interface WeatherSettings {
|
|
202
163
|
cloudCoverage: number;
|
|
203
164
|
fogColor?: number;
|
|
@@ -206,22 +167,14 @@ export interface WeatherSettings {
|
|
|
206
167
|
precipitation?: WeatherPrecipitation;
|
|
207
168
|
wetness: number;
|
|
208
169
|
}
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/atmosphere/blendWeatherState.d.ts
|
|
211
170
|
export declare const blendWeatherState: (from: Readonly<WeatherState>, { cloudCoverage, fogColor, fogDensity, lightningRate, precipitation, wetness }: WeatherSettings, amount: number, weatherState: WeatherState) => void;
|
|
212
|
-
//#endregion
|
|
213
|
-
//#region src/atmosphere/checkSunTurned.d.ts
|
|
214
171
|
export declare const checkSunTurned: (drawnDirection: Vector3, direction: Vector3) => boolean;
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region src/models/atmosphere/LightningBolt.d.ts
|
|
217
172
|
export interface LightningBolt {
|
|
218
173
|
directions: Float32Array;
|
|
219
174
|
indices: Uint32Array;
|
|
220
175
|
positions: Float32Array;
|
|
221
176
|
sides: Float32Array;
|
|
222
177
|
}
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/models/atmosphere/LightningBoltOptions.d.ts
|
|
225
178
|
export interface LightningBoltOptions {
|
|
226
179
|
branchCount: number;
|
|
227
180
|
height: number;
|
|
@@ -230,29 +183,17 @@ export interface LightningBoltOptions {
|
|
|
230
183
|
segmentCount: number;
|
|
231
184
|
width: number;
|
|
232
185
|
}
|
|
233
|
-
//#endregion
|
|
234
|
-
//#region src/atmosphere/computeLightningBolt.d.ts
|
|
235
186
|
export declare const computeLightningBolt: ({ branchCount, height, roughness, seed, segmentCount, width }: LightningBoltOptions) => LightningBolt;
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/atmosphere/computeLightningFlash.d.ts
|
|
238
187
|
export declare const computeLightningFlash: (elapsed: number) => number;
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region src/atmosphere/computeSunDirection.d.ts
|
|
241
188
|
export declare const computeSunDirection: (minutes: number, tilt: number, sunDirection: Vector3) => Vector3;
|
|
242
|
-
//#endregion
|
|
243
|
-
//#region src/models/atmosphere/LightningFlashPulse.d.ts
|
|
244
189
|
export interface LightningFlashPulse {
|
|
245
190
|
seconds: number;
|
|
246
191
|
strength: number;
|
|
247
192
|
}
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region src/models/atmosphere/SkyGradient.d.ts
|
|
250
193
|
export interface SkyGradient {
|
|
251
194
|
green: readonly number[];
|
|
252
195
|
red: readonly number[];
|
|
253
196
|
}
|
|
254
|
-
//#endregion
|
|
255
|
-
//#region src/models/atmosphere/WeatherKind.d.ts
|
|
256
197
|
export declare enum WeatherKind {
|
|
257
198
|
Clear = "Clear",
|
|
258
199
|
Cloudy = "Cloudy",
|
|
@@ -263,8 +204,6 @@ export declare enum WeatherKind {
|
|
|
263
204
|
Snowstorm = "Snowstorm",
|
|
264
205
|
Thunderstorm = "Thunderstorm"
|
|
265
206
|
}
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region src/atmosphere/constants.d.ts
|
|
268
207
|
export declare const SUN_REDRAW_COSINE: number;
|
|
269
208
|
export declare const DEFAULT_SKY_SHAPE: Readonly<SkyShape>;
|
|
270
209
|
export declare const DEFAULT_SKY_GRADIENT: SkyGradient;
|
|
@@ -292,41 +231,27 @@ export declare const SPLASH_LIFETIME = .35;
|
|
|
292
231
|
export declare const SPLASH_SIZE = .4;
|
|
293
232
|
export declare const SPLASH_OPACITY = .5;
|
|
294
233
|
export declare const SPLASH_LIFT = .03;
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region src/models/atmosphere/CloudSprite.d.ts
|
|
297
234
|
export interface CloudSprite {
|
|
298
235
|
lit: [number, number][][];
|
|
299
236
|
outline: [number, number][][];
|
|
300
237
|
}
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region src/atmosphere/createCloudAtlasTexture.d.ts
|
|
303
238
|
export declare const createCloudAtlasTexture: (sprites: readonly CloudSprite[], cellSize: number) => CanvasTexture<OffscreenCanvas>;
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/models/atmosphere/CloudBandSprite.d.ts
|
|
306
239
|
export interface CloudBandSprite {
|
|
307
240
|
cover: UniformNode<"float", number>;
|
|
308
241
|
dispose: () => void;
|
|
309
242
|
places: [number, number, number][];
|
|
310
243
|
sprite: Sprite;
|
|
311
244
|
}
|
|
312
|
-
//#endregion
|
|
313
|
-
//#region src/models/atmosphere/CloudBandSpriteOptions.d.ts
|
|
314
245
|
export interface CloudBandSpriteOptions {
|
|
315
246
|
aspect: number;
|
|
316
247
|
spriteCount: number;
|
|
317
248
|
}
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region src/models/atmosphere/CloudPlacement.d.ts
|
|
320
249
|
export interface CloudPlacement {
|
|
321
250
|
position: [number, number, number];
|
|
322
251
|
spriteIndex: number;
|
|
323
252
|
width: number;
|
|
324
253
|
}
|
|
325
|
-
//#endregion
|
|
326
|
-
//#region src/atmosphere/createCloudBandSprite.d.ts
|
|
327
254
|
export declare const createCloudBandSprite: (atlas: Texture, clouds: readonly CloudPlacement[], { aspect, spriteCount }: CloudBandSpriteOptions, skyUniforms: SkyUniforms) => CloudBandSprite;
|
|
328
|
-
//#endregion
|
|
329
|
-
//#region src/models/atmosphere/CloudLayerDome.d.ts
|
|
330
255
|
export interface CloudLayerDome {
|
|
331
256
|
center: readonly number[];
|
|
332
257
|
elevations: readonly number[];
|
|
@@ -337,11 +262,7 @@ export interface CloudLayerDome {
|
|
|
337
262
|
wisps: readonly number[];
|
|
338
263
|
wispsTurn: number;
|
|
339
264
|
}
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region src/atmosphere/createCloudLayerProfileTexture.d.ts
|
|
342
265
|
export declare const createCloudLayerProfileTexture: ({ elevations, far, near, normalElevations, wisps }: Pick<CloudLayerDome, "elevations" | "far" | "near" | "normalElevations" | "wisps">) => DataTexture;
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region src/models/noise/SpectralNoiseChannel.d.ts
|
|
345
266
|
export interface SpectralNoiseChannel {
|
|
346
267
|
amplitudes: number[];
|
|
347
268
|
correlation?: {
|
|
@@ -351,18 +272,12 @@ export interface SpectralNoiseChannel {
|
|
|
351
272
|
mean: number;
|
|
352
273
|
quantiles?: number[][];
|
|
353
274
|
}
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region src/models/noise/SpectralNoiseProfile.d.ts
|
|
356
275
|
export interface SpectralNoiseProfile {
|
|
357
276
|
channels: SpectralNoiseChannel[];
|
|
358
277
|
height: number;
|
|
359
278
|
width: number;
|
|
360
279
|
}
|
|
361
|
-
//#endregion
|
|
362
|
-
//#region src/atmosphere/createCloudLayerTexture.d.ts
|
|
363
280
|
export declare const createCloudLayerTexture: ({ height, width }: Pick<SpectralNoiseProfile, "height" | "width">) => DataTexture;
|
|
364
|
-
//#endregion
|
|
365
|
-
//#region src/models/atmosphere/CloudLayerTextureProfiles.d.ts
|
|
366
281
|
export interface CloudLayerTextureProfiles {
|
|
367
282
|
curl: SpectralNoiseProfile;
|
|
368
283
|
density: SpectralNoiseProfile;
|
|
@@ -372,16 +287,12 @@ export interface CloudLayerTextureProfiles {
|
|
|
372
287
|
};
|
|
373
288
|
wisps: SpectralNoiseProfile;
|
|
374
289
|
}
|
|
375
|
-
//#endregion
|
|
376
|
-
//#region src/atmosphere/createCloudLayerTextures.d.ts
|
|
377
290
|
export declare const createCloudLayerTextures: ({ curl, density, normal, wisps }: CloudLayerTextureProfiles) => {
|
|
378
291
|
curl: DataTexture;
|
|
379
292
|
density: DataTexture;
|
|
380
293
|
normal: DataTexture;
|
|
381
294
|
wisps: DataTexture;
|
|
382
295
|
};
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/models/atmosphere/CloudLayerUniforms.d.ts
|
|
385
296
|
export interface CloudLayerUniforms {
|
|
386
297
|
center: UniformNode<"vec2", Vector2>;
|
|
387
298
|
curl: TextureNode;
|
|
@@ -409,59 +320,31 @@ export interface CloudLayerUniforms {
|
|
|
409
320
|
wispsOpacity: UniformNode<"float", number>;
|
|
410
321
|
wispsTurn: UniformNode<"float", number>;
|
|
411
322
|
}
|
|
412
|
-
//#endregion
|
|
413
|
-
//#region src/atmosphere/createCloudLayerUniforms.d.ts
|
|
414
323
|
export declare const createCloudLayerUniforms: ({ center, turn, wispsTurn, ...profiles }: CloudLayerDome, textures: Record<"curl" | "density" | "normal" | "wisps", Texture>) => CloudLayerUniforms;
|
|
415
|
-
//#endregion
|
|
416
|
-
//#region src/atmosphere/createLightningBoltGeometry.d.ts
|
|
417
324
|
export declare const createLightningBoltGeometry: ({ directions, indices, positions, sides }: LightningBolt) => BufferGeometry;
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/atmosphere/createPrecipitationGeometry.d.ts
|
|
420
325
|
export declare const createPrecipitationGeometry: (particleCount: number) => InstancedBufferGeometry;
|
|
421
|
-
//#endregion
|
|
422
|
-
//#region src/atmosphere/createPrecipitationUniforms.d.ts
|
|
423
326
|
export declare const createPrecipitationUniforms: () => PrecipitationUniforms;
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region src/atmosphere/createSkyGradientTexture.d.ts
|
|
426
327
|
export declare const createSkyGradientTexture: ({ green, red }: SkyGradient) => DataTexture;
|
|
427
|
-
//#endregion
|
|
428
|
-
//#region src/atmosphere/createSkyState.d.ts
|
|
429
328
|
export declare const createSkyState: () => SkyState;
|
|
430
|
-
//#endregion
|
|
431
|
-
//#region src/atmosphere/createSkyUniforms.d.ts
|
|
432
329
|
export declare const createSkyUniforms: () => SkyUniforms;
|
|
433
|
-
//#endregion
|
|
434
|
-
//#region src/models/nodes/AnchoredCascadeShadowNode.d.ts
|
|
435
330
|
export declare class AnchoredCascadeShadowNode extends CSMShadowNode {
|
|
436
331
|
#private;
|
|
437
332
|
anchor: Vector3;
|
|
438
333
|
constructor(light: DirectionalLight, data: CSMShadowNodeData);
|
|
439
334
|
override updateBefore(frame: NodeFrame): undefined;
|
|
440
335
|
}
|
|
441
|
-
//#endregion
|
|
442
|
-
//#region src/models/atmosphere/SunLight.d.ts
|
|
443
336
|
export interface SunLight {
|
|
444
337
|
cascadedShadowNode: AnchoredCascadeShadowNode;
|
|
445
338
|
light: DirectionalLight;
|
|
446
339
|
}
|
|
447
|
-
//#endregion
|
|
448
|
-
//#region src/models/atmosphere/SunLightOptions.d.ts
|
|
449
340
|
export interface SunLightOptions {
|
|
450
341
|
cascadeCount: number;
|
|
451
342
|
maxFar: number;
|
|
452
343
|
shadowMapSize: number;
|
|
453
344
|
}
|
|
454
|
-
//#endregion
|
|
455
|
-
//#region src/atmosphere/createSunLight.d.ts
|
|
456
345
|
export declare const createSunLight: ({ cascadeCount, maxFar, shadowMapSize }: SunLightOptions) => SunLight;
|
|
457
|
-
//#endregion
|
|
458
|
-
//#region src/atmosphere/getCloudAtlasColumns.d.ts
|
|
459
346
|
export declare const getCloudAtlasColumns: (spriteCount: number) => number;
|
|
460
|
-
//#endregion
|
|
461
|
-
//#region src/atmosphere/orderByViewDepth.d.ts
|
|
462
347
|
export declare const orderByViewDepth: (places: readonly (readonly number[])[], { elements }: Matrix4, depths: Float64Array, order: Uint32Array) => boolean;
|
|
463
|
-
//#endregion
|
|
464
|
-
//#region src/models/atmosphere/CloudBandOptions.d.ts
|
|
465
348
|
export interface CloudBandOptions {
|
|
466
349
|
count: number;
|
|
467
350
|
distanceRange: [number, number];
|
|
@@ -469,49 +352,31 @@ export interface CloudBandOptions {
|
|
|
469
352
|
seed: number;
|
|
470
353
|
widthRange: [number, number];
|
|
471
354
|
}
|
|
472
|
-
//#endregion
|
|
473
|
-
//#region src/atmosphere/placeCloudBand.d.ts
|
|
474
355
|
export declare const placeCloudBand: ({ count, distanceRange: [near, far], heightRange: [low, high], seed, widthRange: [narrow, wide] }: CloudBandOptions, spriteCount: number) => CloudPlacement[];
|
|
475
|
-
//#endregion
|
|
476
|
-
//#region src/models/atmosphere/SkyKeyframe.d.ts
|
|
477
356
|
export interface SkyKeyframe extends BaseSkyState {
|
|
478
357
|
minutes: number;
|
|
479
358
|
}
|
|
480
|
-
//#endregion
|
|
481
|
-
//#region src/atmosphere/sampleSkyState.d.ts
|
|
482
359
|
export declare const sampleSkyState: (skyKeyframes: readonly SkyKeyframe[], minutes: number, tilt: number, skyState: SkyState) => SkyState;
|
|
483
|
-
//#endregion
|
|
484
|
-
//#region src/atmosphere/synthesizeCloudLayerTextures.d.ts
|
|
485
360
|
export declare const synthesizeCloudLayerTextures: ({ curl, density, normal, wisps }: CloudLayerTextureProfiles, textures: Record<"curl" | "density" | "normal" | "wisps", DataTexture>) => Promise<void>;
|
|
486
|
-
//#endregion
|
|
487
|
-
//#region src/atmosphere/writeCloudLayerTexture.d.ts
|
|
488
361
|
export declare const writeCloudLayerTexture: (texture: DataTexture, readTexel: (index: number) => readonly number[]) => void;
|
|
489
|
-
//#endregion
|
|
490
|
-
//#region src/models/audio/MusicNote.d.ts
|
|
491
362
|
export interface MusicNote {
|
|
492
363
|
duration: number;
|
|
493
364
|
pitch: number;
|
|
494
365
|
start: number;
|
|
495
366
|
velocity: number;
|
|
496
367
|
}
|
|
497
|
-
//#endregion
|
|
498
|
-
//#region src/models/audio/MusicSampleRange.d.ts
|
|
499
368
|
export interface MusicSampleRange {
|
|
500
369
|
highKey: number;
|
|
501
370
|
highVelocity: number;
|
|
502
371
|
lowKey: number;
|
|
503
372
|
lowVelocity: number;
|
|
504
373
|
}
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region src/models/audio/MusicRecording.d.ts
|
|
507
374
|
export interface MusicRecording extends MusicSampleRange {
|
|
508
375
|
file: string;
|
|
509
376
|
gain: number;
|
|
510
377
|
keyCenter: number;
|
|
511
378
|
tune: number;
|
|
512
379
|
}
|
|
513
|
-
//#endregion
|
|
514
|
-
//#region src/models/audio/Instrument.d.ts
|
|
515
380
|
export interface Instrument {
|
|
516
381
|
attack: number;
|
|
517
382
|
decay: number;
|
|
@@ -524,62 +389,40 @@ export interface Instrument {
|
|
|
524
389
|
sustain: number;
|
|
525
390
|
tuning: number;
|
|
526
391
|
}
|
|
527
|
-
//#endregion
|
|
528
|
-
//#region src/models/audio/MusicVoice.d.ts
|
|
529
392
|
export interface MusicVoice {
|
|
530
393
|
instrument: Instrument;
|
|
531
394
|
notes: MusicNote[];
|
|
532
395
|
}
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region src/models/audio/ScheduledMusicNote.d.ts
|
|
535
396
|
export interface ScheduledMusicNote {
|
|
536
397
|
note: MusicNote;
|
|
537
398
|
time: number;
|
|
538
399
|
voice: MusicVoice;
|
|
539
400
|
}
|
|
540
|
-
//#endregion
|
|
541
|
-
//#region src/models/audio/MusicSegment.d.ts
|
|
542
401
|
export interface MusicSegment {
|
|
543
402
|
duration: number;
|
|
544
403
|
expression: number[];
|
|
545
404
|
voices: MusicVoice[];
|
|
546
405
|
volume: number;
|
|
547
406
|
}
|
|
548
|
-
//#endregion
|
|
549
|
-
//#region src/models/audio/ScheduledMusicSegment.d.ts
|
|
550
407
|
export interface ScheduledMusicSegment {
|
|
551
408
|
segment: MusicSegment;
|
|
552
409
|
start: number;
|
|
553
410
|
}
|
|
554
|
-
//#endregion
|
|
555
|
-
//#region src/audio/collectMusicNotes.d.ts
|
|
556
411
|
export declare const collectMusicNotes: ({ segment, start }: ScheduledMusicSegment, from: number, to: number) => ScheduledMusicNote[];
|
|
557
|
-
//#endregion
|
|
558
|
-
//#region src/models/audio/Music.d.ts
|
|
559
412
|
export interface Music {
|
|
560
413
|
isLooping: boolean;
|
|
561
414
|
order: number[];
|
|
562
415
|
segments: MusicSegment[];
|
|
563
416
|
}
|
|
564
|
-
//#endregion
|
|
565
|
-
//#region src/audio/collectMusicSegments.d.ts
|
|
566
417
|
export declare const collectMusicSegments: ({ isLooping, order, segments }: Music, from: number, to: number) => ScheduledMusicSegment[];
|
|
567
|
-
//#endregion
|
|
568
|
-
//#region src/audio/computeNoiseSamples.d.ts
|
|
569
418
|
export declare const computeNoiseSamples: (noiseBands: readonly number[], sampleRate: number) => Float32Array;
|
|
570
|
-
//#endregion
|
|
571
|
-
//#region src/models/audio/SoundEffect.d.ts
|
|
572
419
|
export interface SoundEffect {
|
|
573
420
|
frameSeconds: number;
|
|
574
421
|
leftLevels: number[][];
|
|
575
422
|
rightLevels: number[][];
|
|
576
423
|
sharedLevels: number[][];
|
|
577
424
|
}
|
|
578
|
-
//#endregion
|
|
579
|
-
//#region src/audio/computeSoundEffectSamples.d.ts
|
|
580
425
|
export declare const computeSoundEffectSamples: ({ frameSeconds, leftLevels, rightLevels, sharedLevels }: SoundEffect, sampleRate: number, seed?: number) => [Float32Array, Float32Array];
|
|
581
|
-
//#endregion
|
|
582
|
-
//#region src/audio/constants.d.ts
|
|
583
426
|
export declare const MUSIC_LOOKAHEAD_SECONDS = 2;
|
|
584
427
|
export declare const MUSIC_SCHEDULE_INTERVAL_MS = 500;
|
|
585
428
|
export declare const RELEASE_TIME_CONSTANTS = 7;
|
|
@@ -591,61 +434,29 @@ export declare const A4_FREQUENCY = 440;
|
|
|
591
434
|
export declare const MIDI_VELOCITY_MAX = 127;
|
|
592
435
|
export declare const SOUND_EFFECT_BAND_EDGES: number[];
|
|
593
436
|
export declare const SOUND_EFFECT_FRAME_LENGTH = 2048;
|
|
594
|
-
//#endregion
|
|
595
|
-
//#region src/audio/createInstrumentWave.d.ts
|
|
596
437
|
export declare const createInstrumentWave: (context: BaseAudioContext, harmonics: number[]) => PeriodicWave;
|
|
597
|
-
//#endregion
|
|
598
|
-
//#region src/models/audio/MusicPlayer.d.ts
|
|
599
438
|
export interface MusicPlayer {
|
|
600
439
|
start: () => void;
|
|
601
440
|
stop: () => void;
|
|
602
441
|
}
|
|
603
|
-
//#endregion
|
|
604
|
-
//#region src/audio/createMusicPlayer.d.ts
|
|
605
442
|
export declare const createMusicPlayer: (context: AudioContext, music: Music, recordingBufferMap: ReadonlyMap<string, AudioBuffer>, destination?: AudioNode) => MusicPlayer;
|
|
606
|
-
//#endregion
|
|
607
|
-
//#region src/audio/createNoiseBuffer.d.ts
|
|
608
443
|
export declare const createNoiseBuffer: (context: BaseAudioContext, noiseBands: number[]) => AudioBuffer | undefined;
|
|
609
|
-
//#endregion
|
|
610
|
-
//#region src/audio/createSoundEffectBuffer.d.ts
|
|
611
444
|
export declare const createSoundEffectBuffer: (context: BaseAudioContext, soundEffect: SoundEffect) => AudioBuffer;
|
|
612
|
-
//#endregion
|
|
613
|
-
//#region src/audio/getMusicRecordingGain.d.ts
|
|
614
445
|
export declare const getMusicRecordingGain: ({ gain }: Pick<MusicRecording, "gain">, velocity: number) => number;
|
|
615
|
-
//#endregion
|
|
616
|
-
//#region src/audio/getMusicRecordingRate.d.ts
|
|
617
446
|
export declare const getMusicRecordingRate: ({ keyCenter, tune }: Pick<MusicRecording, "keyCenter" | "tune">, pitch: number, tuning: number) => number;
|
|
618
|
-
//#endregion
|
|
619
|
-
//#region src/audio/getSoundEffectBandBins.d.ts
|
|
620
447
|
export declare const getSoundEffectBandBins: (sampleRate: number) => (readonly [number, number])[];
|
|
621
|
-
//#endregion
|
|
622
|
-
//#region src/audio/renderMusicSegment.d.ts
|
|
623
448
|
export declare const renderMusicSegment: (music: Music, segmentIndex: number, sampleRate: number, recordingBufferMap: ReadonlyMap<string, AudioBuffer>) => Promise<AudioBuffer>;
|
|
624
|
-
//#endregion
|
|
625
|
-
//#region src/audio/scheduleMusicExpression.d.ts
|
|
626
449
|
export declare const scheduleMusicExpression: (gain: AudioParam, expression: number[], start: number) => void;
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region src/audio/scheduleMusicNote.d.ts
|
|
629
450
|
export declare const scheduleMusicNote: (context: BaseAudioContext, destination: AudioNode, wave: PeriodicWave, noiseBuffer: AudioBuffer | undefined, { attack, decay, level, release, sustain, tuning }: Instrument, { duration, pitch, velocity }: MusicNote, time: number) => void;
|
|
630
|
-
//#endregion
|
|
631
|
-
//#region src/audio/scheduleMusicRecording.d.ts
|
|
632
451
|
export declare const scheduleMusicRecording: (context: BaseAudioContext, destination: AudioNode, recordingBufferMap: ReadonlyMap<string, AudioBuffer>, { recordingLevel, recordings, release, tuning }: Instrument, { duration, pitch, velocity }: MusicNote, time: number) => void;
|
|
633
|
-
//#endregion
|
|
634
|
-
//#region src/audio/selectMusicSample.d.ts
|
|
635
452
|
export declare const selectMusicSample: <T extends MusicSampleRange>(samples: T[], pitch: number, velocity: number) => T | undefined;
|
|
636
|
-
//#endregion
|
|
637
|
-
//#region src/audio/transformFourier.d.ts
|
|
638
453
|
export declare const transformFourier: (real: Float64Array, imaginary: Float64Array) => void;
|
|
639
|
-
//#endregion
|
|
640
|
-
//#region src/models/camera/FollowCameraSettings.d.ts
|
|
641
454
|
export interface FollowCameraSettings {
|
|
642
455
|
defaultDistance: number;
|
|
643
456
|
horizontalSensitivity: number;
|
|
644
457
|
slopePitch: boolean;
|
|
645
458
|
verticalSensitivity: number;
|
|
646
459
|
}
|
|
647
|
-
//#endregion
|
|
648
|
-
//#region src/camera/constants.d.ts
|
|
649
460
|
export declare const FREE_CAMERA_BASE_SPEED = 8;
|
|
650
461
|
export declare const FREE_CAMERA_SPEED_PER_HEIGHT = .5;
|
|
651
462
|
export declare const FREE_CAMERA_CLEARANCE = 1.5;
|
|
@@ -663,8 +474,6 @@ export declare const FOLLOW_CAMERA_EASE_OUT_SPEED = 4;
|
|
|
663
474
|
export declare const FOLLOW_CAMERA_SLOPE_PITCH_SPEED = 4;
|
|
664
475
|
export declare const FOLLOW_CAMERA_CLEARANCE = .2;
|
|
665
476
|
export declare const FOLLOW_CAMERA_ARM_STEP = .25;
|
|
666
|
-
//#endregion
|
|
667
|
-
//#region src/models/input/InputAction.d.ts
|
|
668
477
|
export declare enum InputAction {
|
|
669
478
|
Aim = "Aim",
|
|
670
479
|
Cancel = "Cancel",
|
|
@@ -707,8 +516,6 @@ export declare enum InputAction {
|
|
|
707
516
|
SwitchWalkRun = "SwitchWalkRun"
|
|
708
517
|
}
|
|
709
518
|
export declare const InputActions: readonly InputAction[];
|
|
710
|
-
//#endregion
|
|
711
|
-
//#region src/models/input/InputState.d.ts
|
|
712
519
|
export interface InputState {
|
|
713
520
|
heldActions: ReadonlySet<InputAction>;
|
|
714
521
|
lookPitch: number;
|
|
@@ -719,8 +526,6 @@ export interface InputState {
|
|
|
719
526
|
pressedActions: ReadonlySet<InputAction>;
|
|
720
527
|
zoomSteps: number;
|
|
721
528
|
}
|
|
722
|
-
//#endregion
|
|
723
|
-
//#region src/models/camera/FollowCamera.d.ts
|
|
724
529
|
export interface FollowCamera {
|
|
725
530
|
follow: (pivot: Vector3, origin: Vector3, frameSeconds: number) => void;
|
|
726
531
|
look: (input: InputState, facing: number) => void;
|
|
@@ -728,120 +533,78 @@ export interface FollowCamera {
|
|
|
728
533
|
returnToDefaultDistance: () => void;
|
|
729
534
|
readonly yaw: number;
|
|
730
535
|
}
|
|
731
|
-
//#endregion
|
|
732
|
-
//#region src/models/collision/GroundSample.d.ts
|
|
733
536
|
export interface GroundSample {
|
|
734
537
|
height: number;
|
|
735
538
|
normal: Vector3;
|
|
736
539
|
}
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/models/collision/GroundQuery.d.ts
|
|
739
540
|
export interface GroundQuery {
|
|
740
541
|
getGround: (x: number, z: number) => GroundSample;
|
|
741
542
|
getWaterLevel: () => number;
|
|
742
543
|
}
|
|
743
|
-
//#endregion
|
|
744
|
-
//#region src/models/collision/CapsulePush.d.ts
|
|
745
544
|
export interface CapsulePush {
|
|
746
545
|
depth: number;
|
|
747
546
|
normal: Vector3;
|
|
748
547
|
}
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region src/models/collision/LandmarkCollider.d.ts
|
|
751
548
|
export interface LandmarkCollider {
|
|
752
549
|
castSphere: (origin: Vector3, direction: Vector3, distance: number, radius: number) => number;
|
|
753
550
|
pushCapsule: (capsule: Capsule) => CapsulePush | undefined;
|
|
754
551
|
syncLandmarks: (root: Object3D) => void;
|
|
755
552
|
}
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/models/camera/FollowCameraOptions.d.ts
|
|
758
553
|
export interface FollowCameraOptions {
|
|
759
554
|
camera: PerspectiveCamera;
|
|
760
555
|
ground: GroundQuery;
|
|
761
556
|
landmarkCollider: LandmarkCollider;
|
|
762
557
|
settings: FollowCameraSettings;
|
|
763
558
|
}
|
|
764
|
-
//#endregion
|
|
765
|
-
//#region src/camera/createFollowCamera.d.ts
|
|
766
559
|
export declare const createFollowCamera: ({ camera, ground, landmarkCollider, settings }: FollowCameraOptions) => FollowCamera;
|
|
767
|
-
//#endregion
|
|
768
|
-
//#region src/models/camera/FreeCamera.d.ts
|
|
769
560
|
export interface FreeCamera {
|
|
770
561
|
look: (input: InputState) => void;
|
|
771
562
|
step: (input: InputState, stepSeconds: number) => void;
|
|
772
563
|
}
|
|
773
|
-
//#endregion
|
|
774
|
-
//#region src/models/camera/FreeCameraOptions.d.ts
|
|
775
564
|
export interface FreeCameraOptions {
|
|
776
565
|
camera: PerspectiveCamera;
|
|
777
566
|
ground: GroundQuery;
|
|
778
567
|
}
|
|
779
|
-
//#endregion
|
|
780
|
-
//#region src/camera/createFreeCamera.d.ts
|
|
781
568
|
export declare const createFreeCamera: ({ camera, ground }: FreeCameraOptions) => FreeCamera;
|
|
782
|
-
//#endregion
|
|
783
|
-
//#region src/models/character/PmxSphereMode.d.ts
|
|
784
569
|
export declare enum PmxSphereMode {
|
|
785
570
|
Disabled = 0,
|
|
786
571
|
Multiply = 1,
|
|
787
572
|
Add = 2,
|
|
788
573
|
AdditionalUv = 3
|
|
789
574
|
}
|
|
790
|
-
//#endregion
|
|
791
|
-
//#region src/character/checkIsPmxSphereDrawn.d.ts
|
|
792
575
|
export declare const checkIsPmxSphereDrawn: (sphereMode: PmxSphereMode) => sphereMode is PmxSphereMode.Add | PmxSphereMode.Multiply;
|
|
793
|
-
//#endregion
|
|
794
|
-
//#region src/character/checkTransparentTexels.d.ts
|
|
795
576
|
export declare const checkTransparentTexels: (image: ImageBitmap) => boolean;
|
|
796
|
-
//#endregion
|
|
797
|
-
//#region src/character/constants.d.ts
|
|
798
577
|
export declare const SHARED_TOON_RAMP_SHADES: readonly number[];
|
|
799
|
-
//#endregion
|
|
800
|
-
//#region src/models/character/CharacterMaterialKind.d.ts
|
|
801
578
|
export declare enum CharacterMaterialKind {
|
|
802
579
|
Body = 0,
|
|
803
580
|
Face = 1,
|
|
804
581
|
Hair = 2
|
|
805
582
|
}
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region src/models/character/FaceDraw.d.ts
|
|
808
583
|
export interface FaceDraw {
|
|
809
584
|
flip: UniformNode<"float", number>;
|
|
810
585
|
flipFactor: number;
|
|
811
586
|
rotateOffset: number;
|
|
812
587
|
threshold: UniformNode<"float", number>;
|
|
813
588
|
}
|
|
814
|
-
//#endregion
|
|
815
|
-
//#region src/models/character/ShadingRegionColours.d.ts
|
|
816
589
|
export type ShadingRegionColours = Record<"five" | "four" | "one" | "three" | "two", Vector3Tuple>;
|
|
817
|
-
//#endregion
|
|
818
|
-
//#region src/models/character/OutlineRegions.d.ts
|
|
819
590
|
export interface OutlineRegions {
|
|
820
591
|
colors: ShadingRegionColours;
|
|
821
592
|
intensities: Record<keyof ShadingRegionColours, number>;
|
|
822
593
|
}
|
|
823
|
-
//#endregion
|
|
824
|
-
//#region src/models/character/RampLayout.d.ts
|
|
825
594
|
export declare enum RampLayout {
|
|
826
595
|
Horizontal = 0,
|
|
827
596
|
Vertical = 1
|
|
828
597
|
}
|
|
829
|
-
//#endregion
|
|
830
|
-
//#region src/models/character/ShadingRegionToggles.d.ts
|
|
831
598
|
export interface ShadingRegionToggles {
|
|
832
599
|
five: boolean;
|
|
833
600
|
four: boolean;
|
|
834
601
|
three: boolean;
|
|
835
602
|
two: boolean;
|
|
836
603
|
}
|
|
837
|
-
//#endregion
|
|
838
|
-
//#region src/models/nodes/OutlineWidthKnots.d.ts
|
|
839
604
|
export interface OutlineWidthKnots {
|
|
840
605
|
depths: Vector3Tuple;
|
|
841
606
|
scales: Vector3Tuple;
|
|
842
607
|
}
|
|
843
|
-
//#endregion
|
|
844
|
-
//#region src/models/character/CharacterShadingInputs.d.ts
|
|
845
608
|
export interface CharacterShadingInputs {
|
|
846
609
|
brightness: number;
|
|
847
610
|
color: Vector3Tuple;
|
|
@@ -890,8 +653,6 @@ export interface CharacterShadingInputs {
|
|
|
890
653
|
vertexAo: number;
|
|
891
654
|
vertexRampWidth: number;
|
|
892
655
|
}
|
|
893
|
-
//#endregion
|
|
894
|
-
//#region src/models/character/PmxMaterial.d.ts
|
|
895
656
|
export interface PmxMaterial {
|
|
896
657
|
ambientColor: Vector3Tuple;
|
|
897
658
|
diffuseColor: Vector4Tuple;
|
|
@@ -909,8 +670,6 @@ export interface PmxMaterial {
|
|
|
909
670
|
textureIndex: number;
|
|
910
671
|
toonIndex: number;
|
|
911
672
|
}
|
|
912
|
-
//#endregion
|
|
913
|
-
//#region src/models/character/CharacterMaterialOptions.d.ts
|
|
914
673
|
export interface CharacterMaterialOptions {
|
|
915
674
|
isTextureTransparent?: boolean;
|
|
916
675
|
lightUniforms: LightUniforms;
|
|
@@ -921,8 +680,6 @@ export interface CharacterMaterialOptions {
|
|
|
921
680
|
texture?: Texture;
|
|
922
681
|
toonTexture?: Texture;
|
|
923
682
|
}
|
|
924
|
-
//#endregion
|
|
925
|
-
//#region src/models/nodes/ToonEdge.d.ts
|
|
926
683
|
export interface ToonEdge {
|
|
927
684
|
color: Node<"vec4"> | Vector4Tuple;
|
|
928
685
|
isVertexWeighted?: boolean;
|
|
@@ -933,8 +690,6 @@ export interface ToonEdge {
|
|
|
933
690
|
size: number;
|
|
934
691
|
widthKnots: OutlineWidthKnots;
|
|
935
692
|
}
|
|
936
|
-
//#endregion
|
|
937
|
-
//#region src/models/nodes/ToonNodeMaterial.d.ts
|
|
938
693
|
export declare class ToonNodeMaterial extends MeshToonNodeMaterial {
|
|
939
694
|
edge?: ToonEdge;
|
|
940
695
|
emissiveNode: Node | null;
|
|
@@ -944,24 +699,16 @@ export declare class ToonNodeMaterial extends MeshToonNodeMaterial {
|
|
|
944
699
|
sphereMap?: Texture$1;
|
|
945
700
|
constructor(parameters: MeshToonNodeMaterialParameters, isOutlined: boolean, edge?: ToonEdge);
|
|
946
701
|
}
|
|
947
|
-
//#endregion
|
|
948
|
-
//#region src/character/createCharacterMaterial.d.ts
|
|
949
702
|
export declare const createCharacterMaterial: ({ isTextureTransparent, lightUniforms, pmxMaterial: { diffuseColor: [red, green, blue, opacity], edgeColor, edgeSize, isDoubleSided, isOutlined, isToonShared, specularColor, specularity, sphereMode, toonIndex }, rampTexture, shadingInputs: gameShadingInputs, sphereTexture, texture: diffuseTexture, toonTexture }: CharacterMaterialOptions) => ToonNodeMaterial;
|
|
950
|
-
//#endregion
|
|
951
|
-
//#region src/character/createCharacterShadingInputs.d.ts
|
|
952
703
|
type CharacterShadingOverrides = Partial<CharacterShadingInputs> & {
|
|
953
704
|
rampTexture: Texture;
|
|
954
705
|
};
|
|
955
706
|
export declare const createCharacterShadingInputs: (overrides: CharacterShadingOverrides) => CharacterShadingInputs;
|
|
956
|
-
//#endregion
|
|
957
|
-
//#region src/models/character/PmxBone.d.ts
|
|
958
707
|
export interface PmxBone {
|
|
959
708
|
name: string;
|
|
960
709
|
parentIndex: number;
|
|
961
710
|
position: Vector3Tuple;
|
|
962
711
|
}
|
|
963
|
-
//#endregion
|
|
964
|
-
//#region src/models/character/PmxJointKind.d.ts
|
|
965
712
|
export declare enum PmxJointKind {
|
|
966
713
|
SpringSixDegreesOfFreedom = 0,
|
|
967
714
|
SixDegreesOfFreedom = 1,
|
|
@@ -970,8 +717,6 @@ export declare enum PmxJointKind {
|
|
|
970
717
|
Slider = 4,
|
|
971
718
|
Hinge = 5
|
|
972
719
|
}
|
|
973
|
-
//#endregion
|
|
974
|
-
//#region src/models/character/PmxJoint.d.ts
|
|
975
720
|
export interface PmxJoint {
|
|
976
721
|
firstRigidBodyIndex: number;
|
|
977
722
|
kind: PmxJointKind;
|
|
@@ -986,8 +731,6 @@ export interface PmxJoint {
|
|
|
986
731
|
translationMinimum: Vector3Tuple;
|
|
987
732
|
translationSpring: Vector3Tuple;
|
|
988
733
|
}
|
|
989
|
-
//#endregion
|
|
990
|
-
//#region src/models/character/PmxMorphKind.d.ts
|
|
991
734
|
export declare enum PmxMorphKind {
|
|
992
735
|
Group = 0,
|
|
993
736
|
Vertex = 1,
|
|
@@ -1001,30 +744,22 @@ export declare enum PmxMorphKind {
|
|
|
1001
744
|
Flip = 9,
|
|
1002
745
|
Impulse = 10
|
|
1003
746
|
}
|
|
1004
|
-
//#endregion
|
|
1005
|
-
//#region src/models/character/PmxMorph.d.ts
|
|
1006
747
|
export interface PmxMorph {
|
|
1007
748
|
indices: Uint32Array;
|
|
1008
749
|
kind: PmxMorphKind;
|
|
1009
750
|
name: string;
|
|
1010
751
|
values: Float32Array;
|
|
1011
752
|
}
|
|
1012
|
-
//#endregion
|
|
1013
|
-
//#region src/models/character/PmxPhysicsMode.d.ts
|
|
1014
753
|
export declare enum PmxPhysicsMode {
|
|
1015
754
|
FollowBone = 0,
|
|
1016
755
|
Physics = 1,
|
|
1017
756
|
PhysicsWithBone = 2
|
|
1018
757
|
}
|
|
1019
|
-
//#endregion
|
|
1020
|
-
//#region src/models/character/PmxRigidBodyShape.d.ts
|
|
1021
758
|
export declare enum PmxRigidBodyShape {
|
|
1022
759
|
Sphere = 0,
|
|
1023
760
|
Box = 1,
|
|
1024
761
|
Capsule = 2
|
|
1025
762
|
}
|
|
1026
|
-
//#endregion
|
|
1027
|
-
//#region src/models/character/PmxRigidBody.d.ts
|
|
1028
763
|
export interface PmxRigidBody {
|
|
1029
764
|
angularDamping: number;
|
|
1030
765
|
boneIndex: number;
|
|
@@ -1041,8 +776,6 @@ export interface PmxRigidBody {
|
|
|
1041
776
|
shape: PmxRigidBodyShape;
|
|
1042
777
|
size: Vector3Tuple;
|
|
1043
778
|
}
|
|
1044
|
-
//#endregion
|
|
1045
|
-
//#region src/models/character/PmxVertices.d.ts
|
|
1046
779
|
export interface PmxVertices {
|
|
1047
780
|
normals: Float32Array;
|
|
1048
781
|
positions: Float32Array;
|
|
@@ -1051,8 +784,6 @@ export interface PmxVertices {
|
|
|
1051
784
|
subUvs: Float32Array;
|
|
1052
785
|
uvs: Float32Array;
|
|
1053
786
|
}
|
|
1054
|
-
//#endregion
|
|
1055
|
-
//#region src/models/character/PmxModel.d.ts
|
|
1056
787
|
export interface PmxModel {
|
|
1057
788
|
bones: PmxBone[];
|
|
1058
789
|
indices: Uint32Array;
|
|
@@ -1064,27 +795,13 @@ export interface PmxModel {
|
|
|
1064
795
|
textures: string[];
|
|
1065
796
|
vertices: PmxVertices;
|
|
1066
797
|
}
|
|
1067
|
-
//#endregion
|
|
1068
|
-
//#region src/character/createPmxGeometry.d.ts
|
|
1069
798
|
export declare const createPmxGeometry: ({ indices, materials, vertices: { normals, positions, skinIndices, skinWeights, subUvs, uvs } }: Pick<PmxModel, "indices" | "materials" | "vertices">) => BufferGeometry;
|
|
1070
|
-
//#endregion
|
|
1071
|
-
//#region src/character/createPmxMesh.d.ts
|
|
1072
799
|
export declare const createPmxMesh: <TMaterial extends Material>(pmxModel: PmxModel, materials: TMaterial[], unitMetres: number) => SkinnedMesh<BufferGeometry, TMaterial[]>;
|
|
1073
|
-
//#endregion
|
|
1074
|
-
//#region src/character/createPmxSkeleton.d.ts
|
|
1075
800
|
export declare const createPmxSkeleton: (pmxBones: readonly PmxBone[]) => Skeleton;
|
|
1076
|
-
//#endregion
|
|
1077
|
-
//#region src/character/createPmxTexture.d.ts
|
|
1078
801
|
export declare const createPmxTexture: (blob: Blob) => Promise<Texture>;
|
|
1079
802
|
export declare const createPmxToonTexture: (blob: Blob) => Promise<Texture>;
|
|
1080
|
-
//#endregion
|
|
1081
|
-
//#region src/character/getSharedToonRamp.d.ts
|
|
1082
803
|
export declare const getSharedToonRamp: (toonIndex: number) => DataTexture | undefined;
|
|
1083
|
-
//#endregion
|
|
1084
|
-
//#region src/character/parsePmx.d.ts
|
|
1085
804
|
export declare const parsePmx: (buffer: ArrayBuffer) => PmxModel;
|
|
1086
|
-
//#endregion
|
|
1087
|
-
//#region src/models/character/PmxReader.d.ts
|
|
1088
805
|
export declare class PmxReader {
|
|
1089
806
|
#private;
|
|
1090
807
|
readonly additionalVectorCount: number;
|
|
@@ -1112,29 +829,13 @@ export declare class PmxReader {
|
|
|
1112
829
|
readVertexIndex(): number;
|
|
1113
830
|
skip(byteCount: number): void;
|
|
1114
831
|
}
|
|
1115
|
-
//#endregion
|
|
1116
|
-
//#region src/character/parsePmxBones.d.ts
|
|
1117
832
|
export declare const parsePmxBones: (reader: PmxReader) => PmxBone[];
|
|
1118
|
-
//#endregion
|
|
1119
|
-
//#region src/character/parsePmxJoints.d.ts
|
|
1120
833
|
export declare const parsePmxJoints: (reader: PmxReader) => PmxJoint[];
|
|
1121
|
-
//#endregion
|
|
1122
|
-
//#region src/character/parsePmxMaterials.d.ts
|
|
1123
834
|
export declare const parsePmxMaterials: (reader: PmxReader) => PmxMaterial[];
|
|
1124
|
-
//#endregion
|
|
1125
|
-
//#region src/character/parsePmxMorphs.d.ts
|
|
1126
835
|
export declare const parsePmxMorphs: (reader: PmxReader) => PmxMorph[];
|
|
1127
|
-
//#endregion
|
|
1128
|
-
//#region src/character/parsePmxRigidBodies.d.ts
|
|
1129
836
|
export declare const parsePmxRigidBodies: (reader: PmxReader) => PmxRigidBody[];
|
|
1130
|
-
//#endregion
|
|
1131
|
-
//#region src/character/parsePmxVertices.d.ts
|
|
1132
837
|
export declare const parsePmxVertices: (reader: PmxReader) => PmxVertices;
|
|
1133
|
-
//#endregion
|
|
1134
|
-
//#region src/character/pose/advanceStridePhase.d.ts
|
|
1135
838
|
export declare const advanceStridePhase: (stridePhase: number, speed: number, strideMetres: number, delta: number) => number;
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region src/models/locomotion/LocomotionState.d.ts
|
|
1138
839
|
export declare enum LocomotionState {
|
|
1139
840
|
Climb = "Climb",
|
|
1140
841
|
ClimbJump = "ClimbJump",
|
|
@@ -1151,15 +852,11 @@ export declare enum LocomotionState {
|
|
|
1151
852
|
SwimDash = "SwimDash",
|
|
1152
853
|
Walk = "Walk"
|
|
1153
854
|
}
|
|
1154
|
-
//#endregion
|
|
1155
|
-
//#region src/models/character/CharacterPoseInput.d.ts
|
|
1156
855
|
export interface CharacterPoseInput {
|
|
1157
856
|
elapsed: number;
|
|
1158
857
|
state: LocomotionState;
|
|
1159
858
|
stridePhase: number;
|
|
1160
859
|
}
|
|
1161
|
-
//#endregion
|
|
1162
|
-
//#region src/models/character/MmdBoneName.d.ts
|
|
1163
860
|
export declare enum MmdBoneName {
|
|
1164
861
|
Center = "センター",
|
|
1165
862
|
Head = "頭",
|
|
@@ -1182,14 +879,8 @@ export declare enum MmdBoneName {
|
|
|
1182
879
|
Upper = "上半身",
|
|
1183
880
|
Upper2 = "上半身2"
|
|
1184
881
|
}
|
|
1185
|
-
//#endregion
|
|
1186
|
-
//#region src/models/character/CharacterPoseRotations.d.ts
|
|
1187
882
|
export type CharacterPoseRotations = Record<MmdBoneName, Quaternion>;
|
|
1188
|
-
//#endregion
|
|
1189
|
-
//#region src/character/pose/computeCharacterPose.d.ts
|
|
1190
883
|
export declare const computeCharacterPose: ({ elapsed, state, stridePhase }: CharacterPoseInput, rotations: CharacterPoseRotations) => void;
|
|
1191
|
-
//#endregion
|
|
1192
|
-
//#region src/character/pose/constants.d.ts
|
|
1193
884
|
export declare const POSE_BREATH_SECONDS = 4;
|
|
1194
885
|
export declare const POSE_CHEST_BREATH_RADIANS = .02;
|
|
1195
886
|
export declare const POSE_SHOULDER_BREATH_RADIANS = .02;
|
|
@@ -1217,14 +908,8 @@ export interface PoseAirStance {
|
|
|
1217
908
|
}
|
|
1218
909
|
export declare const POSE_AIR_STANCES: Partial<Record<LocomotionState, PoseAirStance>>;
|
|
1219
910
|
export declare const MMD_BONE_NAME_MAP: Record<MmdBoneName, string>;
|
|
1220
|
-
//#endregion
|
|
1221
|
-
//#region src/character/pose/createCharacterPoseRotations.d.ts
|
|
1222
911
|
export declare const createCharacterPoseRotations: () => CharacterPoseRotations;
|
|
1223
|
-
//#endregion
|
|
1224
|
-
//#region src/models/character/CharacterBoneNameMap.d.ts
|
|
1225
912
|
export type CharacterBoneNameMap = Partial<Record<MmdBoneName, string>>;
|
|
1226
|
-
//#endregion
|
|
1227
|
-
//#region src/models/locomotion/Locomotion.d.ts
|
|
1228
913
|
export interface Locomotion {
|
|
1229
914
|
capsuleHeight: number;
|
|
1230
915
|
capsuleRadius: number;
|
|
@@ -1250,14 +935,10 @@ export interface Locomotion {
|
|
|
1250
935
|
swimSpeed: number;
|
|
1251
936
|
walkSpeed: number;
|
|
1252
937
|
}
|
|
1253
|
-
//#endregion
|
|
1254
|
-
//#region src/models/locomotion/LocomotionPhase.d.ts
|
|
1255
938
|
export interface LocomotionPhase {
|
|
1256
939
|
state: LocomotionState;
|
|
1257
940
|
stateSeconds: number;
|
|
1258
941
|
}
|
|
1259
|
-
//#endregion
|
|
1260
|
-
//#region src/character/pose/createCharacterPoser.d.ts
|
|
1261
942
|
export interface CharacterPoser {
|
|
1262
943
|
update: (update: CharacterPoseUpdate) => void;
|
|
1263
944
|
}
|
|
@@ -1267,11 +948,7 @@ interface CharacterPoseUpdate {
|
|
|
1267
948
|
phase: LocomotionPhase;
|
|
1268
949
|
}
|
|
1269
950
|
export declare const createCharacterPoser: (skinnedMesh: SkinnedMesh, boneNameMap?: CharacterBoneNameMap) => CharacterPoser;
|
|
1270
|
-
//#endregion
|
|
1271
|
-
//#region src/character/pose/findSkinnedMesh.d.ts
|
|
1272
951
|
export declare const findSkinnedMesh: (object: Object3D) => SkinnedMesh | undefined;
|
|
1273
|
-
//#endregion
|
|
1274
|
-
//#region src/character/shading/constants.d.ts
|
|
1275
952
|
export declare const REGION_FLOORS: {
|
|
1276
953
|
readonly five: 0.6;
|
|
1277
954
|
readonly four: 0.2;
|
|
@@ -1300,32 +977,14 @@ export declare const MINIMUM_FACE_THRESHOLD = 1e-4;
|
|
|
1300
977
|
export declare const MAXIMUM_FACE_THRESHOLD = .9999;
|
|
1301
978
|
export declare const MAXIMUM_WINDOW_FLOOR = .9989;
|
|
1302
979
|
export declare const FLAT_LIGHT_MAP: Readonly<[number, number, number, number]>;
|
|
1303
|
-
//#endregion
|
|
1304
|
-
//#region src/character/shading/createCharacterShadingNode.d.ts
|
|
1305
980
|
export declare const createCharacterShadingNode: (inputs: CharacterShadingInputs, { lightColor, sunDirection }: Pick<LightUniforms, "lightColor" | "sunDirection">) => Node<"vec3">;
|
|
1306
|
-
//#endregion
|
|
1307
|
-
//#region src/character/shading/createFaceShadeNode.d.ts
|
|
1308
981
|
export declare const createFaceShadeNode: (faceMap: Texture | undefined, softness: number, { flip, threshold }: FaceDraw) => Node<"float">;
|
|
1309
|
-
//#endregion
|
|
1310
|
-
//#region src/character/shading/createOutlineColorNode.d.ts
|
|
1311
982
|
export declare const createOutlineColorNode: ({ color, contrastScale, desaturateScale, lightMapTexture, mainTexture, regionTints, regionToggles }: CharacterShadingInputs, { colors, intensities }: OutlineRegions) => Node<"vec3">;
|
|
1312
|
-
//#endregion
|
|
1313
|
-
//#region src/character/shading/createOutlineScaleNode.d.ts
|
|
1314
983
|
export declare const createOutlineScaleNode: (depths: Vector3Tuple, scales: Vector3Tuple) => Node<"float">;
|
|
1315
|
-
//#endregion
|
|
1316
|
-
//#region src/character/shading/createRampColumnNode.d.ts
|
|
1317
984
|
export declare const createRampColumnNode: (threshold: Node<"float">, lightArea: number, rampWidth: Node<"float">) => Node<"float">;
|
|
1318
|
-
//#endregion
|
|
1319
|
-
//#region src/character/shading/createRampUvNode.d.ts
|
|
1320
985
|
export declare const createRampUvNode: (layout: RampLayout, column: Node<"float">, row: Node<"float">) => Node<"vec2">;
|
|
1321
|
-
//#endregion
|
|
1322
|
-
//#region src/character/shading/createShadingRegionNode.d.ts
|
|
1323
986
|
export declare const createShadingRegionNode: (alpha: Node<"float">, toggles: ShadingRegionToggles) => Node<"float">;
|
|
1324
|
-
//#endregion
|
|
1325
|
-
//#region src/character/shading/createToneNode.d.ts
|
|
1326
987
|
export declare const createToneNode: (colour: Node<"vec3">, desaturateScale: number, contrastScale: number) => Node<"vec3">;
|
|
1327
|
-
//#endregion
|
|
1328
|
-
//#region src/models/character/ToonThresholdNodeInputs.d.ts
|
|
1329
988
|
export interface ToonThresholdNodeInputs {
|
|
1330
989
|
isLightMapAo: boolean;
|
|
1331
990
|
isVertexAo: boolean;
|
|
@@ -1333,42 +992,20 @@ export interface ToonThresholdNodeInputs {
|
|
|
1333
992
|
sunTerm: Node<"float">;
|
|
1334
993
|
vertexAo: number;
|
|
1335
994
|
}
|
|
1336
|
-
//#endregion
|
|
1337
|
-
//#region src/character/shading/createToonThresholdNode.d.ts
|
|
1338
995
|
export declare const createToonThresholdNode: ({ isLightMapAo, isVertexAo, lightMapGreen, sunTerm, vertexAo }: ToonThresholdNodeInputs) => Node<"float">;
|
|
1339
|
-
//#endregion
|
|
1340
|
-
//#region src/character/shading/getDesaturatedColour.d.ts
|
|
1341
996
|
export declare const getDesaturatedColour: (colour: Vector3, desaturateScale: number) => Vector3;
|
|
1342
|
-
//#endregion
|
|
1343
|
-
//#region src/character/shading/getOutlineDepth.d.ts
|
|
1344
997
|
export declare const getOutlineDepth: (viewZ: number, projectionYScale: number) => number;
|
|
1345
|
-
//#endregion
|
|
1346
|
-
//#region src/character/shading/getOutlineScale.d.ts
|
|
1347
998
|
export declare const getOutlineScale: (depth: number, knotDepths: Vector3, knotScales: Vector3) => number;
|
|
1348
|
-
//#endregion
|
|
1349
|
-
//#region src/character/shading/getRampColumn.d.ts
|
|
1350
999
|
export declare const getRampColumn: (threshold: number, lightArea: number, rampWidth: number) => number;
|
|
1351
|
-
//#endregion
|
|
1352
|
-
//#region src/character/shading/getRampRow.d.ts
|
|
1353
1000
|
export declare const getRampRow: (region: number, isCoolShadow: boolean) => number;
|
|
1354
|
-
//#endregion
|
|
1355
|
-
//#region src/models/character/RampWidthInputs.d.ts
|
|
1356
1001
|
export interface RampWidthInputs {
|
|
1357
1002
|
isVertexRampWidth: boolean;
|
|
1358
1003
|
rampWidth: number;
|
|
1359
1004
|
vertexRampWidth: number;
|
|
1360
1005
|
}
|
|
1361
|
-
//#endregion
|
|
1362
|
-
//#region src/character/shading/getRampWidth.d.ts
|
|
1363
1006
|
export declare const getRampWidth: ({ isVertexRampWidth, rampWidth, vertexRampWidth }: RampWidthInputs) => number;
|
|
1364
|
-
//#endregion
|
|
1365
|
-
//#region src/character/shading/getShadingRegion.d.ts
|
|
1366
1007
|
export declare const getShadingRegion: (alpha: number, toggles: ShadingRegionToggles) => number;
|
|
1367
|
-
//#endregion
|
|
1368
|
-
//#region src/character/shading/getToneColour.d.ts
|
|
1369
1008
|
export declare const getToneColour: (colour: Vector3, desaturateScale: number, contrastScale: number) => Vector3;
|
|
1370
|
-
//#endregion
|
|
1371
|
-
//#region src/character/shading/getToonThreshold.d.ts
|
|
1372
1009
|
interface ToonThresholdInputs {
|
|
1373
1010
|
isLightMapAo: boolean;
|
|
1374
1011
|
isVertexAo: boolean;
|
|
@@ -1377,41 +1014,21 @@ interface ToonThresholdInputs {
|
|
|
1377
1014
|
vertexAo: number;
|
|
1378
1015
|
}
|
|
1379
1016
|
export declare const getToonThreshold: ({ isLightMapAo, isVertexAo, lightMapGreen, sunTerm, vertexAo }: ToonThresholdInputs) => number;
|
|
1380
|
-
//#endregion
|
|
1381
|
-
//#region src/character/shading/selectRegionNode.d.ts
|
|
1382
1017
|
export declare const selectRegionNode: <TNodeType>(region: Node<"float">, toRegionNode: (regionName: keyof ShadingRegionColours) => Node<TNodeType>) => Node<TNodeType>;
|
|
1383
|
-
//#endregion
|
|
1384
|
-
//#region src/character/shading/updateFaceDraw.d.ts
|
|
1385
1018
|
export declare const createFaceDraw: ({ flipFactor, rotateOffset }?: Partial<Pick<FaceDraw, "flipFactor" | "rotateOffset">>) => FaceDraw;
|
|
1386
1019
|
export declare const updateFaceDraw: (faceDraw: FaceDraw, lightDirection: Vector3, rootRotation: Quaternion) => void;
|
|
1387
|
-
//#endregion
|
|
1388
|
-
//#region src/models/clock/GameClock.d.ts
|
|
1389
1020
|
export interface GameClock {
|
|
1390
1021
|
minutes: number;
|
|
1391
1022
|
minutesPerSecond: number;
|
|
1392
1023
|
}
|
|
1393
|
-
//#endregion
|
|
1394
|
-
//#region src/clock/advanceGameClock.d.ts
|
|
1395
1024
|
export declare const advanceGameClock: (gameClock: GameClock, deltaSeconds: number) => void;
|
|
1396
|
-
//#endregion
|
|
1397
|
-
//#region src/clock/constants.d.ts
|
|
1398
1025
|
export declare const MINUTES_PER_DAY = 1440;
|
|
1399
1026
|
export declare const GAME_MINUTES_PER_SECOND = 1;
|
|
1400
|
-
//#endregion
|
|
1401
|
-
//#region src/collision/constants.d.ts
|
|
1402
1027
|
export declare const GROUND_NORMAL_SPAN = .1;
|
|
1403
1028
|
export declare const SPHERE_CAST_STRIDE_SHARE = .5;
|
|
1404
|
-
//#endregion
|
|
1405
|
-
//#region src/collision/createGroundQuery.d.ts
|
|
1406
1029
|
export declare const createGroundQuery: (getHeight: (x: number, z: number) => number, waterLevel: number) => GroundQuery;
|
|
1407
|
-
//#endregion
|
|
1408
|
-
//#region src/collision/createLandmarkCollider.d.ts
|
|
1409
1030
|
export declare const createLandmarkCollider: () => LandmarkCollider;
|
|
1410
|
-
//#endregion
|
|
1411
|
-
//#region src/constants.d.ts
|
|
1412
1031
|
export declare const MAX_BYTE = 255;
|
|
1413
|
-
//#endregion
|
|
1414
|
-
//#region src/culling/constants.d.ts
|
|
1415
1032
|
export declare const CULLING_FRUSTUM_MARGIN = .1;
|
|
1416
1033
|
export declare const CULLING_INDIRECT_ARGUMENT_COUNT = 5;
|
|
1417
1034
|
export declare const CULLING_INDEX_COUNT_INDEX = 0;
|
|
@@ -1419,42 +1036,24 @@ export declare const CULLING_INSTANCE_COUNT_INDEX = 1;
|
|
|
1419
1036
|
export declare const CULLING_MIN_SIZE = 1e-4;
|
|
1420
1037
|
export declare const CULLING_MATRIX_COLUMN_COUNT = 4;
|
|
1421
1038
|
export declare const CULLING_MATRIX_ELEMENT_COUNT: number;
|
|
1422
|
-
//#endregion
|
|
1423
|
-
//#region src/culling/createFrustumVisibility.d.ts
|
|
1424
1039
|
export declare const createFrustumVisibility: (clipFromModel: UniformNode<"mat4", Matrix4>, point: Node<"vec3">) => Node<"float">;
|
|
1425
|
-
//#endregion
|
|
1426
|
-
//#region src/models/culling/InstanceCulling.d.ts
|
|
1427
1040
|
export interface InstanceCulling {
|
|
1428
1041
|
cull: (renderer: Renderer) => void;
|
|
1429
1042
|
dispose: () => void;
|
|
1430
1043
|
indirect: IndirectStorageBufferAttribute;
|
|
1431
1044
|
survivor: Node<"float">;
|
|
1432
1045
|
}
|
|
1433
|
-
//#endregion
|
|
1434
|
-
//#region src/culling/createInstanceCulling.d.ts
|
|
1435
1046
|
interface InstanceCullingOptions {
|
|
1436
1047
|
count: number;
|
|
1437
1048
|
indexCount: number;
|
|
1438
1049
|
isVisible: (instance: Node<"float">) => Node<"float">;
|
|
1439
1050
|
}
|
|
1440
1051
|
export declare const createInstanceCulling: ({ count, indexCount, isVisible }: InstanceCullingOptions) => InstanceCulling;
|
|
1441
|
-
//#endregion
|
|
1442
|
-
//#region src/culling/createInstanceMatrixBuffer.d.ts
|
|
1443
1052
|
export declare const createInstanceMatrixBuffer: (matrices: Matrix4[]) => StorageBufferAttribute;
|
|
1444
|
-
//#endregion
|
|
1445
|
-
//#region src/culling/createInstanceMatrixNode.d.ts
|
|
1446
1053
|
export declare const createInstanceMatrixNode: (attribute: StorageBufferAttribute, instance: Node<"float">) => Node<"mat4">;
|
|
1447
|
-
//#endregion
|
|
1448
|
-
//#region src/culling/createInstancedGeometry.d.ts
|
|
1449
1054
|
export declare const createInstancedGeometry: (geometry: BufferGeometry, instanceCount: number) => InstancedBufferGeometry;
|
|
1450
|
-
//#endregion
|
|
1451
|
-
//#region src/culling/createSurvivorIndices.d.ts
|
|
1452
1055
|
export declare const createSurvivorIndices: (count: number) => Uint32Array;
|
|
1453
|
-
//#endregion
|
|
1454
|
-
//#region src/input/InputActionBindingMap.d.ts
|
|
1455
1056
|
export declare const InputActionBindingMap: Readonly<Record<InputAction, readonly (readonly string[])[]>>;
|
|
1456
|
-
//#endregion
|
|
1457
|
-
//#region src/models/input/GamepadButton.d.ts
|
|
1458
1057
|
export declare enum GamepadButton {
|
|
1459
1058
|
Back = "GamepadBack",
|
|
1460
1059
|
DirectionalPadDown = "GamepadDirectionalPadDown",
|
|
@@ -1473,15 +1072,11 @@ export declare enum GamepadButton {
|
|
|
1473
1072
|
RightTrigger = "GamepadRightTrigger",
|
|
1474
1073
|
Start = "GamepadStart"
|
|
1475
1074
|
}
|
|
1476
|
-
//#endregion
|
|
1477
|
-
//#region src/models/input/MouseButton.d.ts
|
|
1478
1075
|
export declare enum MouseButton {
|
|
1479
1076
|
Auxiliary = "MouseAuxiliary",
|
|
1480
1077
|
Primary = "MousePrimary",
|
|
1481
1078
|
Secondary = "MouseSecondary"
|
|
1482
1079
|
}
|
|
1483
|
-
//#endregion
|
|
1484
|
-
//#region src/input/constants.d.ts
|
|
1485
1080
|
export declare const KEY_CODE_FORWARD = "KeyW";
|
|
1486
1081
|
export declare const KEY_CODE_BACKWARD = "KeyS";
|
|
1487
1082
|
export declare const KEY_CODE_LEFT = "KeyA";
|
|
@@ -1496,8 +1091,6 @@ export declare const MOUSE_LOOK_RADIANS_PER_PIXEL = .002;
|
|
|
1496
1091
|
export declare const MOUSE_LOOK_MAX_PIXELS_PER_EVENT: number;
|
|
1497
1092
|
export declare const GAMEPAD_LOOK_RADIANS_PER_SECOND = 2.5;
|
|
1498
1093
|
export declare const GAMEPAD_STICK_DEADZONE = .15;
|
|
1499
|
-
//#endregion
|
|
1500
|
-
//#region src/models/input/Input.d.ts
|
|
1501
1094
|
export interface Input {
|
|
1502
1095
|
dispose: () => void;
|
|
1503
1096
|
press: (code: string) => void;
|
|
@@ -1506,16 +1099,12 @@ export interface Input {
|
|
|
1506
1099
|
setTouchStick: (x: number, y: number) => void;
|
|
1507
1100
|
turn: (lookYaw: number, lookPitch: number) => void;
|
|
1508
1101
|
}
|
|
1509
|
-
//#endregion
|
|
1510
|
-
//#region src/models/input/InputGamepad.d.ts
|
|
1511
1102
|
export interface InputGamepad {
|
|
1512
1103
|
axes: readonly number[];
|
|
1513
1104
|
buttons: readonly {
|
|
1514
1105
|
pressed: boolean;
|
|
1515
1106
|
}[];
|
|
1516
1107
|
}
|
|
1517
|
-
//#endregion
|
|
1518
|
-
//#region src/models/input/InputTarget.d.ts
|
|
1519
1108
|
export interface InputTarget extends Pick<Window, "addEventListener"> {
|
|
1520
1109
|
document: {
|
|
1521
1110
|
activeElement: null | {
|
|
@@ -1527,20 +1116,12 @@ export interface InputTarget extends Pick<Window, "addEventListener"> {
|
|
|
1527
1116
|
getGamepads: () => (InputGamepad | null)[];
|
|
1528
1117
|
};
|
|
1529
1118
|
}
|
|
1530
|
-
//#endregion
|
|
1531
|
-
//#region src/input/createInput.d.ts
|
|
1532
1119
|
export declare const createInput: (target: InputTarget) => Input;
|
|
1533
|
-
//#endregion
|
|
1534
|
-
//#region src/kits/architecture/createBoxesGeometry.d.ts
|
|
1535
1120
|
export declare const createBoxesGeometry: (boxes: readonly (readonly number[])[]) => BufferGeometry;
|
|
1536
|
-
//#endregion
|
|
1537
|
-
//#region src/models/kits/architecture/RoofKind.d.ts
|
|
1538
1121
|
export declare enum RoofKind {
|
|
1539
1122
|
Conical = "Conical",
|
|
1540
1123
|
Flat = "Flat"
|
|
1541
1124
|
}
|
|
1542
|
-
//#endregion
|
|
1543
|
-
//#region src/models/kits/architecture/BuildingOptions.d.ts
|
|
1544
1125
|
export interface BuildingOptions {
|
|
1545
1126
|
depth: number;
|
|
1546
1127
|
platformHeight: number;
|
|
@@ -1550,96 +1131,60 @@ export interface BuildingOptions {
|
|
|
1550
1131
|
wallThickness: number;
|
|
1551
1132
|
width: number;
|
|
1552
1133
|
}
|
|
1553
|
-
//#endregion
|
|
1554
|
-
//#region src/kits/architecture/createBuildingGeometry.d.ts
|
|
1555
1134
|
export declare const createBuildingGeometry: ({ depth, platformHeight, roofHeight, roofKind, wallHeight, wallThickness, width }: BuildingOptions) => BufferGeometry;
|
|
1556
|
-
//#endregion
|
|
1557
|
-
//#region src/models/kits/architecture/LatheSection.d.ts
|
|
1558
1135
|
export interface LatheSection {
|
|
1559
1136
|
bottomRadius: number;
|
|
1560
1137
|
height: number;
|
|
1561
1138
|
topRadius: number;
|
|
1562
1139
|
}
|
|
1563
|
-
//#endregion
|
|
1564
|
-
//#region src/models/kits/architecture/LatheStackOptions.d.ts
|
|
1565
1140
|
export interface LatheStackOptions {
|
|
1566
1141
|
isFaceted: boolean;
|
|
1567
1142
|
radialSegments: number;
|
|
1568
1143
|
sections: LatheSection[];
|
|
1569
1144
|
}
|
|
1570
|
-
//#endregion
|
|
1571
|
-
//#region src/kits/architecture/createLatheStackGeometry.d.ts
|
|
1572
1145
|
export declare const createLatheStackGeometry: ({ isFaceted, radialSegments, sections }: LatheStackOptions) => BufferGeometry;
|
|
1573
|
-
//#endregion
|
|
1574
|
-
//#region src/models/kits/architecture/PavingStoneShape.d.ts
|
|
1575
1146
|
export interface PavingStoneShape {
|
|
1576
1147
|
bottom: number;
|
|
1577
1148
|
radii: readonly number[];
|
|
1578
1149
|
top: number;
|
|
1579
1150
|
}
|
|
1580
|
-
//#endregion
|
|
1581
|
-
//#region src/models/kits/architecture/PavingStone.d.ts
|
|
1582
1151
|
export interface PavingStone {
|
|
1583
1152
|
position: readonly number[];
|
|
1584
1153
|
quaternion: readonly number[];
|
|
1585
1154
|
scale: readonly number[];
|
|
1586
1155
|
shape: PavingStoneShape;
|
|
1587
1156
|
}
|
|
1588
|
-
//#endregion
|
|
1589
|
-
//#region src/kits/architecture/createPavingGeometry.d.ts
|
|
1590
1157
|
export declare const createPavingGeometry: (stones: readonly PavingStone[]) => BufferGeometry;
|
|
1591
|
-
//#endregion
|
|
1592
|
-
//#region src/kits/architecture/createPavingStoneGeometry.d.ts
|
|
1593
1158
|
export declare const createPavingStoneGeometry: ({ bottom, radii, top }: PavingStoneShape) => BufferGeometry;
|
|
1594
|
-
//#endregion
|
|
1595
|
-
//#region src/models/kits/tree/LeafCards.d.ts
|
|
1596
1159
|
export interface LeafCards {
|
|
1597
1160
|
indices: Uint32Array;
|
|
1598
1161
|
normals: Float32Array;
|
|
1599
1162
|
positions: Float32Array;
|
|
1600
1163
|
uvs: Float32Array;
|
|
1601
1164
|
}
|
|
1602
|
-
//#endregion
|
|
1603
|
-
//#region src/kits/createIndexedGeometry.d.ts
|
|
1604
1165
|
export declare const createIndexedGeometry: ({ indices, normals, positions, uvs }: LeafCards) => BufferGeometry;
|
|
1605
|
-
//#endregion
|
|
1606
|
-
//#region src/kits/mergeGeometryParts.d.ts
|
|
1607
1166
|
export declare const mergeGeometryParts: (parts: BufferGeometry[]) => BufferGeometry;
|
|
1608
|
-
//#endregion
|
|
1609
|
-
//#region src/models/kits/statue/StatueSection.d.ts
|
|
1610
1167
|
export interface StatueSection {
|
|
1611
1168
|
centre: readonly number[];
|
|
1612
1169
|
colors: readonly number[];
|
|
1613
1170
|
height: number;
|
|
1614
1171
|
radii: readonly number[];
|
|
1615
1172
|
}
|
|
1616
|
-
//#endregion
|
|
1617
|
-
//#region src/models/kits/statue/StatueSurface.d.ts
|
|
1618
1173
|
export interface StatueSurface {
|
|
1619
1174
|
colors: Float32Array;
|
|
1620
1175
|
indices: Uint32Array;
|
|
1621
1176
|
positions: Float32Array;
|
|
1622
1177
|
}
|
|
1623
|
-
//#endregion
|
|
1624
|
-
//#region src/kits/statue/computeStatueSurface.d.ts
|
|
1625
1178
|
export declare const computeStatueSurface: (sections: readonly StatueSection[]) => StatueSurface;
|
|
1626
|
-
//#endregion
|
|
1627
|
-
//#region src/models/kits/statue/StatueStack.d.ts
|
|
1628
1179
|
export interface StatueStack {
|
|
1629
1180
|
position: readonly number[];
|
|
1630
1181
|
rotation: readonly number[];
|
|
1631
1182
|
sections: StatueSection[];
|
|
1632
1183
|
}
|
|
1633
|
-
//#endregion
|
|
1634
|
-
//#region src/models/kits/statue/StatuePart.d.ts
|
|
1635
1184
|
export interface StatuePart extends StatueStack {
|
|
1636
1185
|
part: string;
|
|
1637
1186
|
}
|
|
1638
|
-
//#endregion
|
|
1639
|
-
//#region src/kits/statue/createStatueGeometries.d.ts
|
|
1640
1187
|
export declare const createStatueGeometries: (parts: readonly StatuePart[]) => Record<string, BufferGeometry>;
|
|
1641
|
-
//#endregion
|
|
1642
|
-
//#region src/models/kits/tree/TreeCluster.d.ts
|
|
1643
1188
|
export interface TreeCluster {
|
|
1644
1189
|
leafArea: number;
|
|
1645
1190
|
radius: number;
|
|
@@ -1647,27 +1192,19 @@ export interface TreeCluster {
|
|
|
1647
1192
|
y: number;
|
|
1648
1193
|
z: number;
|
|
1649
1194
|
}
|
|
1650
|
-
//#endregion
|
|
1651
|
-
//#region src/models/kits/tree/TreeNormalField.d.ts
|
|
1652
1195
|
export interface TreeNormalField {
|
|
1653
1196
|
cellSize: number;
|
|
1654
1197
|
normals: readonly number[];
|
|
1655
1198
|
origin: readonly number[];
|
|
1656
1199
|
size: readonly number[];
|
|
1657
1200
|
}
|
|
1658
|
-
//#endregion
|
|
1659
|
-
//#region src/models/kits/tree/TreeTubePoint.d.ts
|
|
1660
1201
|
export interface TreeTubePoint {
|
|
1661
1202
|
radius: number;
|
|
1662
1203
|
x: number;
|
|
1663
1204
|
y: number;
|
|
1664
1205
|
z: number;
|
|
1665
1206
|
}
|
|
1666
|
-
//#endregion
|
|
1667
|
-
//#region src/models/kits/tree/TreeTube.d.ts
|
|
1668
1207
|
export type TreeTube = readonly [TreeTubePoint, TreeTubePoint, ...TreeTubePoint[]];
|
|
1669
|
-
//#endregion
|
|
1670
|
-
//#region src/models/kits/tree/TreeOptions.d.ts
|
|
1671
1208
|
export interface TreeOptions {
|
|
1672
1209
|
cardSize: number;
|
|
1673
1210
|
clusters: readonly TreeCluster[];
|
|
@@ -1677,37 +1214,21 @@ export interface TreeOptions {
|
|
|
1677
1214
|
roots: readonly TreeTube[];
|
|
1678
1215
|
seed: number;
|
|
1679
1216
|
}
|
|
1680
|
-
//#endregion
|
|
1681
|
-
//#region src/kits/tree/computeLeafCards.d.ts
|
|
1682
1217
|
export declare const computeLeafCards: (clusters: readonly TreeCluster[], { cardSize, leafAreaScale, normalField, seed }: Pick<TreeOptions, "cardSize" | "leafAreaScale" | "normalField" | "seed">) => LeafCards;
|
|
1683
|
-
//#endregion
|
|
1684
|
-
//#region src/models/kits/tree/TreeTubes.d.ts
|
|
1685
1218
|
export interface TreeTubes {
|
|
1686
1219
|
indices: Uint32Array;
|
|
1687
1220
|
normals: Float32Array;
|
|
1688
1221
|
positions: Float32Array;
|
|
1689
1222
|
uvs: Float32Array;
|
|
1690
1223
|
}
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region src/kits/tree/computeTreeTubes.d.ts
|
|
1693
1224
|
export declare const computeTreeTubes: (tubes: readonly TreeTube[]) => TreeTubes;
|
|
1694
|
-
//#endregion
|
|
1695
|
-
//#region src/models/kits/tree/TreeGeometry.d.ts
|
|
1696
1225
|
export interface TreeGeometry {
|
|
1697
1226
|
branchGeometry: BufferGeometry;
|
|
1698
1227
|
leafGeometry: BufferGeometry;
|
|
1699
1228
|
}
|
|
1700
|
-
//#endregion
|
|
1701
|
-
//#region src/kits/tree/createTreeGeometry.d.ts
|
|
1702
1229
|
export declare const createTreeGeometry: ({ limbs, roots, ...treeOptions }: TreeOptions) => TreeGeometry;
|
|
1703
|
-
//#endregion
|
|
1704
|
-
//#region src/kits/tree/sampleTreeNormalField.d.ts
|
|
1705
1230
|
export declare const sampleTreeNormalField: ({ cellSize, normals, origin, size }: TreeNormalField, position: [number, number, number]) => [number, number, number] | undefined;
|
|
1706
|
-
//#endregion
|
|
1707
|
-
//#region src/kits/writeQuadIndices.d.ts
|
|
1708
1231
|
export declare const writeQuadIndices: (indices: Uint32Array, indexStart: number, vertexStart: number) => void;
|
|
1709
|
-
//#endregion
|
|
1710
|
-
//#region src/models/locomotion/LocomotionContact.d.ts
|
|
1711
1232
|
export interface LocomotionContact {
|
|
1712
1233
|
isFacingWall: boolean;
|
|
1713
1234
|
isGrounded: boolean;
|
|
@@ -1715,8 +1236,6 @@ export interface LocomotionContact {
|
|
|
1715
1236
|
isInDeepWater: boolean;
|
|
1716
1237
|
isRising: boolean;
|
|
1717
1238
|
}
|
|
1718
|
-
//#endregion
|
|
1719
|
-
//#region src/models/locomotion/LocomotionInput.d.ts
|
|
1720
1239
|
export interface LocomotionInput {
|
|
1721
1240
|
isSprintHeld: boolean;
|
|
1722
1241
|
isWalking: boolean;
|
|
@@ -1724,11 +1243,7 @@ export interface LocomotionInput {
|
|
|
1724
1243
|
moveRight: number;
|
|
1725
1244
|
pressedActions: ReadonlySet<InputAction>;
|
|
1726
1245
|
}
|
|
1727
|
-
//#endregion
|
|
1728
|
-
//#region src/locomotion/computeLocomotionState.d.ts
|
|
1729
1246
|
export declare const computeLocomotionState: (phase: LocomotionPhase, input: LocomotionInput, contact: LocomotionContact, stamina: number, locomotion: Locomotion) => LocomotionState;
|
|
1730
|
-
//#endregion
|
|
1731
|
-
//#region src/locomotion/constants.d.ts
|
|
1732
1247
|
export declare const STAMINA_MAX = 100;
|
|
1733
1248
|
export declare const STAMINA_REFILL_PER_SECOND = 25;
|
|
1734
1249
|
export declare const STAMINA_REFILL_DELAY_SECONDS = 1.5;
|
|
@@ -1754,8 +1269,6 @@ export declare const WALL_PRESS_SPEED = 1;
|
|
|
1754
1269
|
export declare const WALL_PROBE_DISTANCE = .1;
|
|
1755
1270
|
export declare const STEEP_SLIDE_SPEED = 4;
|
|
1756
1271
|
export declare const CLIMB_REGRAB_SECONDS = .5;
|
|
1757
|
-
//#endregion
|
|
1758
|
-
//#region src/models/locomotion/Stamina.d.ts
|
|
1759
1272
|
export interface Stamina {
|
|
1760
1273
|
checkCanSpend: (amount: number) => boolean;
|
|
1761
1274
|
maximum: number;
|
|
@@ -1765,8 +1278,6 @@ export interface Stamina {
|
|
|
1765
1278
|
step: (phase: LocomotionPhase, isEntered: boolean, isMoving: boolean, stepSeconds: number) => void;
|
|
1766
1279
|
value: number;
|
|
1767
1280
|
}
|
|
1768
|
-
//#endregion
|
|
1769
|
-
//#region src/models/locomotion/CharacterController.d.ts
|
|
1770
1281
|
export interface CharacterController {
|
|
1771
1282
|
face: (facing: number) => void;
|
|
1772
1283
|
readonly facing: number;
|
|
@@ -1779,8 +1290,6 @@ export interface CharacterController {
|
|
|
1779
1290
|
readonly stamina: Stamina;
|
|
1780
1291
|
step: (input: InputState, cameraYaw: number, locomotion: Locomotion, stepSeconds: number) => void;
|
|
1781
1292
|
}
|
|
1782
|
-
//#endregion
|
|
1783
|
-
//#region src/models/locomotion/CharacterControllerOptions.d.ts
|
|
1784
1293
|
export type CharacterControllerOptions = ({
|
|
1785
1294
|
getStaminaConsumptionMultiplier?: () => number;
|
|
1786
1295
|
stamina?: never;
|
|
@@ -1794,31 +1303,17 @@ export type CharacterControllerOptions = ({
|
|
|
1794
1303
|
landmarkCollider: LandmarkCollider;
|
|
1795
1304
|
position: Vector3;
|
|
1796
1305
|
};
|
|
1797
|
-
//#endregion
|
|
1798
|
-
//#region src/locomotion/createCharacterController.d.ts
|
|
1799
1306
|
export declare const createCharacterController: (options: CharacterControllerOptions) => CharacterController;
|
|
1800
|
-
//#endregion
|
|
1801
|
-
//#region src/locomotion/createStamina.d.ts
|
|
1802
1307
|
export declare const createStamina: (maximum: number, getStaminaConsumptionMultiplier?: () => number) => Stamina;
|
|
1803
|
-
//#endregion
|
|
1804
|
-
//#region src/materials/addSmoothLoop.d.ts
|
|
1805
1308
|
export declare const addSmoothLoop: (path: Path2D, points: readonly (readonly [number, number])[]) => void;
|
|
1806
|
-
//#endregion
|
|
1807
|
-
//#region src/models/materials/RampOptions.d.ts
|
|
1808
1309
|
export interface RampOptions {
|
|
1809
1310
|
resolution: number;
|
|
1810
1311
|
shade: number;
|
|
1811
1312
|
softness: number;
|
|
1812
1313
|
terminator: number;
|
|
1813
1314
|
}
|
|
1814
|
-
//#endregion
|
|
1815
|
-
//#region src/materials/computeRampValues.d.ts
|
|
1816
1315
|
export declare const computeRampValues: ({ resolution, shade, softness, terminator }: RampOptions) => Uint8Array;
|
|
1817
|
-
//#endregion
|
|
1818
|
-
//#region src/materials/createRampTexture.d.ts
|
|
1819
1316
|
export declare const createRampTexture: (rampOptions: RampOptions) => DataTexture;
|
|
1820
|
-
//#endregion
|
|
1821
|
-
//#region src/models/character/PmxBoneFlag.d.ts
|
|
1822
1317
|
export declare enum PmxBoneFlag {
|
|
1823
1318
|
IndexedTail = 1,
|
|
1824
1319
|
InverseKinematics = 32,
|
|
@@ -1828,20 +1323,14 @@ export declare enum PmxBoneFlag {
|
|
|
1828
1323
|
LocalAxes = 2048,
|
|
1829
1324
|
ExternalParent = 8192
|
|
1830
1325
|
}
|
|
1831
|
-
//#endregion
|
|
1832
|
-
//#region src/models/character/PmxMaterialFlag.d.ts
|
|
1833
1326
|
export declare enum PmxMaterialFlag {
|
|
1834
1327
|
DoubleSided = 1,
|
|
1835
1328
|
Outlined = 16
|
|
1836
1329
|
}
|
|
1837
|
-
//#endregion
|
|
1838
|
-
//#region src/models/character/PmxTextEncoding.d.ts
|
|
1839
1330
|
export declare enum PmxTextEncoding {
|
|
1840
1331
|
Utf16LittleEndian = 0,
|
|
1841
1332
|
Utf8 = 1
|
|
1842
1333
|
}
|
|
1843
|
-
//#endregion
|
|
1844
|
-
//#region src/models/character/PmxWeightDeform.d.ts
|
|
1845
1334
|
export declare enum PmxWeightDeform {
|
|
1846
1335
|
OneBone = 0,
|
|
1847
1336
|
TwoBones = 1,
|
|
@@ -1849,8 +1338,6 @@ export declare enum PmxWeightDeform {
|
|
|
1849
1338
|
Spherical = 3,
|
|
1850
1339
|
DualQuaternion = 4
|
|
1851
1340
|
}
|
|
1852
|
-
//#endregion
|
|
1853
|
-
//#region src/models/culling/PlantCullingOptions.d.ts
|
|
1854
1341
|
export interface PlantCullingOptions {
|
|
1855
1342
|
attribute: StorageBufferAttribute;
|
|
1856
1343
|
bounds: {
|
|
@@ -1863,8 +1350,6 @@ export interface PlantCullingOptions {
|
|
|
1863
1350
|
eye: UniformNode<"vec3", Vector3>;
|
|
1864
1351
|
indexCount: number;
|
|
1865
1352
|
}
|
|
1866
|
-
//#endregion
|
|
1867
|
-
//#region src/models/vegetation/Impostor.d.ts
|
|
1868
1353
|
export interface Impostor {
|
|
1869
1354
|
albedoTarget: RenderTarget;
|
|
1870
1355
|
bottom: number;
|
|
@@ -1872,8 +1357,6 @@ export interface Impostor {
|
|
|
1872
1357
|
normalTarget: RenderTarget;
|
|
1873
1358
|
width: number;
|
|
1874
1359
|
}
|
|
1875
|
-
//#endregion
|
|
1876
|
-
//#region src/models/nodes/ImpostorMaterialOptions.d.ts
|
|
1877
1360
|
export interface ImpostorMaterialOptions {
|
|
1878
1361
|
fade: Node<"float">;
|
|
1879
1362
|
impostor: Impostor;
|
|
@@ -1881,16 +1364,12 @@ export interface ImpostorMaterialOptions {
|
|
|
1881
1364
|
lightUniforms: LightUniforms;
|
|
1882
1365
|
rampTexture: DataTexture;
|
|
1883
1366
|
}
|
|
1884
|
-
//#endregion
|
|
1885
|
-
//#region src/models/nodes/ObjectSurface.d.ts
|
|
1886
1367
|
export declare class ObjectSurface {
|
|
1887
1368
|
amplitudes: number[];
|
|
1888
1369
|
color: Color;
|
|
1889
1370
|
texelsPerMetre: number;
|
|
1890
1371
|
constructor(color: Color, amplitudes: number[], texelsPerMetre: number);
|
|
1891
1372
|
}
|
|
1892
|
-
//#endregion
|
|
1893
|
-
//#region src/models/wind/WindUniforms.d.ts
|
|
1894
1373
|
export interface WindUniforms {
|
|
1895
1374
|
direction: UniformNode<"vec2", Vector2>;
|
|
1896
1375
|
gustSpeed: UniformNode<"float", number>;
|
|
@@ -1898,15 +1377,11 @@ export interface WindUniforms {
|
|
|
1898
1377
|
gustWidth: UniformNode<"float", number>;
|
|
1899
1378
|
strength: UniformNode<"float", number>;
|
|
1900
1379
|
}
|
|
1901
|
-
//#endregion
|
|
1902
|
-
//#region src/models/nodes/PrecipitationMaterialOptions.d.ts
|
|
1903
1380
|
export interface PrecipitationMaterialOptions {
|
|
1904
1381
|
lightUniforms: LightUniforms;
|
|
1905
1382
|
precipitationUniforms: PrecipitationUniforms;
|
|
1906
1383
|
windUniforms: WindUniforms;
|
|
1907
1384
|
}
|
|
1908
|
-
//#endregion
|
|
1909
|
-
//#region src/models/nodes/SharedToonOutlinePassNode.d.ts
|
|
1910
1385
|
export declare class SharedToonOutlinePassNode extends ToonOutlinePassNode {
|
|
1911
1386
|
#private;
|
|
1912
1387
|
alphaNode: Node<"float">;
|
|
@@ -1916,8 +1391,6 @@ export declare class SharedToonOutlinePassNode extends ToonOutlinePassNode {
|
|
|
1916
1391
|
override compileAsync(renderer: Renderer): Promise<void>;
|
|
1917
1392
|
override updateBefore(frame: NodeFrame): boolean | undefined;
|
|
1918
1393
|
}
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region src/models/vegetation/GroundCapture.d.ts
|
|
1921
1394
|
export interface GroundCapture {
|
|
1922
1395
|
camera: OrthographicCamera;
|
|
1923
1396
|
center: UniformNode<"vec2", Vector2>;
|
|
@@ -1925,8 +1398,6 @@ export interface GroundCapture {
|
|
|
1925
1398
|
renderTarget: RenderTarget;
|
|
1926
1399
|
size: number;
|
|
1927
1400
|
}
|
|
1928
|
-
//#endregion
|
|
1929
|
-
//#region src/models/water/WaterUniforms.d.ts
|
|
1930
1401
|
export interface WaterUniforms {
|
|
1931
1402
|
causticStrength: UniformNode<"float", number>;
|
|
1932
1403
|
deepColor: UniformNode<"color", Color>;
|
|
@@ -1938,16 +1409,12 @@ export interface WaterUniforms {
|
|
|
1938
1409
|
underwaterFogColor: UniformNode<"color", Color>;
|
|
1939
1410
|
underwaterFogDensity: UniformNode<"float", number>;
|
|
1940
1411
|
}
|
|
1941
|
-
//#endregion
|
|
1942
|
-
//#region src/models/nodes/SplashMaterialOptions.d.ts
|
|
1943
1412
|
export interface SplashMaterialOptions {
|
|
1944
1413
|
groundCapture: GroundCapture;
|
|
1945
1414
|
lightUniforms: LightUniforms;
|
|
1946
1415
|
precipitationUniforms: PrecipitationUniforms;
|
|
1947
1416
|
waterUniforms: WaterUniforms;
|
|
1948
1417
|
}
|
|
1949
|
-
//#endregion
|
|
1950
|
-
//#region src/models/nodes/StoneLight.d.ts
|
|
1951
1418
|
export interface StoneLight {
|
|
1952
1419
|
harmonics: (readonly number[])[];
|
|
1953
1420
|
hazeColor: readonly number[];
|
|
@@ -1956,8 +1423,6 @@ export interface StoneLight {
|
|
|
1956
1423
|
heightFade: readonly number[];
|
|
1957
1424
|
ramp: (readonly number[])[];
|
|
1958
1425
|
}
|
|
1959
|
-
//#endregion
|
|
1960
|
-
//#region src/models/nodes/StoneLightUniforms.d.ts
|
|
1961
1426
|
export interface StoneLightUniforms {
|
|
1962
1427
|
harmonics: UniformArrayNode<"vec3">;
|
|
1963
1428
|
hazeColor: UniformNode<"color", Color>;
|
|
@@ -1967,8 +1432,6 @@ export interface StoneLightUniforms {
|
|
|
1967
1432
|
ramp: DataTexture;
|
|
1968
1433
|
sunRadiance: UniformNode<"color", Color>;
|
|
1969
1434
|
}
|
|
1970
|
-
//#endregion
|
|
1971
|
-
//#region src/models/nodes/StoneLightingModel.d.ts
|
|
1972
1435
|
export declare class StoneLightingModel extends LightingModel {
|
|
1973
1436
|
readonly stoneLight: StoneLightUniforms;
|
|
1974
1437
|
constructor(stoneLight: StoneLightUniforms);
|
|
@@ -1976,8 +1439,6 @@ export declare class StoneLightingModel extends LightingModel {
|
|
|
1976
1439
|
override direct({ lightColor, lightDirection, reflectedLight }: LightingModelDirectInput): void;
|
|
1977
1440
|
override indirect(builder: NodeBuilder): void;
|
|
1978
1441
|
}
|
|
1979
|
-
//#endregion
|
|
1980
|
-
//#region src/models/nodes/StoneMaterialOptions.d.ts
|
|
1981
1442
|
export interface StoneMaterialOptions {
|
|
1982
1443
|
albedo: string;
|
|
1983
1444
|
glowRange: number;
|
|
@@ -1987,23 +1448,17 @@ export interface StoneMaterialOptions {
|
|
|
1987
1448
|
smoothness: number;
|
|
1988
1449
|
specularColor: readonly number[];
|
|
1989
1450
|
}
|
|
1990
|
-
//#endregion
|
|
1991
|
-
//#region src/models/nodes/StoneNodeMaterial.d.ts
|
|
1992
1451
|
export declare class StoneNodeMaterial extends NodeMaterial {
|
|
1993
1452
|
emissiveNode: Node | null;
|
|
1994
1453
|
readonly stoneLight: StoneLightUniforms;
|
|
1995
1454
|
constructor(stoneLight: StoneLightUniforms);
|
|
1996
1455
|
override setupLightingModel(): StoneLightingModel;
|
|
1997
1456
|
}
|
|
1998
|
-
//#endregion
|
|
1999
|
-
//#region src/models/nodes/SurfaceDetail.d.ts
|
|
2000
1457
|
export interface SurfaceDetail {
|
|
2001
1458
|
bands: number[];
|
|
2002
1459
|
metresPerTexel: number;
|
|
2003
1460
|
variance: number;
|
|
2004
1461
|
}
|
|
2005
|
-
//#endregion
|
|
2006
|
-
//#region src/models/nodes/ToonMaterialOptions.d.ts
|
|
2007
1462
|
export interface ToonMaterialOptions {
|
|
2008
1463
|
color?: ColorRepresentation;
|
|
2009
1464
|
detail?: SurfaceDetail;
|
|
@@ -2014,15 +1469,9 @@ export interface ToonMaterialOptions {
|
|
|
2014
1469
|
lightUniforms: LightUniforms;
|
|
2015
1470
|
rampTexture: DataTexture;
|
|
2016
1471
|
}
|
|
2017
|
-
//#endregion
|
|
2018
|
-
//#region src/models/nodes/createOutlineMaterial.d.ts
|
|
2019
1472
|
export declare const createOutlineMaterial: (colorNode: Node<"vec4">, thicknessNode: Node<"float">, instanceMatrix?: Node<"mat4">) => NodeMaterial;
|
|
2020
1473
|
export declare const createGameOutlineMaterial: (colorNode: Node<"vec4">, widthNode: Node<"float">, offsetNode: Node<"float">) => NodeMaterial;
|
|
2021
|
-
//#endregion
|
|
2022
|
-
//#region src/models/nodes/getGameOutlineOffset.d.ts
|
|
2023
1474
|
export declare const getGameOutlineOffset: (viewPosition: Vector3, blue: number, blockBChannel: number, size: number) => Vector3;
|
|
2024
|
-
//#endregion
|
|
2025
|
-
//#region src/models/post/GradeOptions.d.ts
|
|
2026
1475
|
export interface GradeOptions {
|
|
2027
1476
|
contrast: number;
|
|
2028
1477
|
highlightTint: readonly [number, number, number];
|
|
@@ -2030,8 +1479,6 @@ export interface GradeOptions {
|
|
|
2030
1479
|
shadowTint: readonly [number, number, number];
|
|
2031
1480
|
size: number;
|
|
2032
1481
|
}
|
|
2033
|
-
//#endregion
|
|
2034
|
-
//#region src/models/post/PostPipeline.d.ts
|
|
2035
1482
|
export interface PostPipeline {
|
|
2036
1483
|
bloomNode?: BloomNode;
|
|
2037
1484
|
compileAsync: () => Promise<void>;
|
|
@@ -2039,21 +1486,15 @@ export interface PostPipeline {
|
|
|
2039
1486
|
godraysNode?: GodraysNode;
|
|
2040
1487
|
renderPipeline: RenderPipeline;
|
|
2041
1488
|
}
|
|
2042
|
-
//#endregion
|
|
2043
|
-
//#region src/models/post/SightUniforms.d.ts
|
|
2044
1489
|
export interface SightUniforms {
|
|
2045
1490
|
origin: UniformNode<"vec2", Vector2>;
|
|
2046
1491
|
radius: UniformNode<"float", number>;
|
|
2047
1492
|
strength: UniformNode<"float", number>;
|
|
2048
1493
|
}
|
|
2049
|
-
//#endregion
|
|
2050
|
-
//#region src/models/renderer/AntialiasingMode.d.ts
|
|
2051
1494
|
export declare enum AntialiasingMode {
|
|
2052
1495
|
Smaa = "Smaa",
|
|
2053
1496
|
Traa = "Traa"
|
|
2054
1497
|
}
|
|
2055
|
-
//#endregion
|
|
2056
|
-
//#region src/models/renderer/QualityTierSettings.d.ts
|
|
2057
1498
|
export interface QualityTierSettings {
|
|
2058
1499
|
antialiasingMode: AntialiasingMode;
|
|
2059
1500
|
cascadeCount: number;
|
|
@@ -2064,8 +1505,6 @@ export interface QualityTierSettings {
|
|
|
2064
1505
|
maxPixelRatio: number;
|
|
2065
1506
|
shadowMapSize: number;
|
|
2066
1507
|
}
|
|
2067
|
-
//#endregion
|
|
2068
|
-
//#region src/models/post/PostPipelineOptions.d.ts
|
|
2069
1508
|
export interface PostPipelineOptions {
|
|
2070
1509
|
camera: Camera;
|
|
2071
1510
|
fogUniforms: FogUniforms;
|
|
@@ -2083,23 +1522,17 @@ export interface PostPipelineOptions {
|
|
|
2083
1522
|
};
|
|
2084
1523
|
stoneLight?: StoneLightUniforms;
|
|
2085
1524
|
}
|
|
2086
|
-
//#endregion
|
|
2087
|
-
//#region src/models/renderer/QualityTier.d.ts
|
|
2088
1525
|
export declare enum QualityTier {
|
|
2089
1526
|
High = "High",
|
|
2090
1527
|
Low = "Low",
|
|
2091
1528
|
Medium = "Medium"
|
|
2092
1529
|
}
|
|
2093
|
-
//#endregion
|
|
2094
|
-
//#region src/models/renderer/ScreenCamera.d.ts
|
|
2095
1530
|
export interface ScreenCamera {
|
|
2096
1531
|
aspect: number;
|
|
2097
1532
|
fov: number;
|
|
2098
1533
|
pitch: number;
|
|
2099
1534
|
yaw: number;
|
|
2100
1535
|
}
|
|
2101
|
-
//#endregion
|
|
2102
|
-
//#region src/models/scene/SceneMaterial.d.ts
|
|
2103
1536
|
export interface SceneMaterial {
|
|
2104
1537
|
colors: Record<string, [number, number, number, number]>;
|
|
2105
1538
|
floats: Record<string, number>;
|
|
@@ -2112,8 +1545,6 @@ export interface SceneMaterial {
|
|
|
2112
1545
|
scale: [number, number];
|
|
2113
1546
|
}>;
|
|
2114
1547
|
}
|
|
2115
|
-
//#endregion
|
|
2116
|
-
//#region src/models/scene/ScenePlacement.d.ts
|
|
2117
1548
|
export interface ScenePlacement {
|
|
2118
1549
|
materials: string[];
|
|
2119
1550
|
mesh: string;
|
|
@@ -2121,26 +1552,18 @@ export interface ScenePlacement {
|
|
|
2121
1552
|
rotation: [number, number, number, number];
|
|
2122
1553
|
scale: [number, number, number];
|
|
2123
1554
|
}
|
|
2124
|
-
//#endregion
|
|
2125
|
-
//#region src/models/scene/SceneLayout.d.ts
|
|
2126
1555
|
export interface SceneLayout {
|
|
2127
1556
|
materials: Record<string, SceneMaterial>;
|
|
2128
1557
|
placements: ScenePlacement[];
|
|
2129
1558
|
}
|
|
2130
|
-
//#endregion
|
|
2131
|
-
//#region src/models/simulation/FixedStepLoop.d.ts
|
|
2132
1559
|
export interface FixedStepLoop {
|
|
2133
1560
|
advance: (deltaSeconds: number) => void;
|
|
2134
1561
|
getStepShare: () => number;
|
|
2135
1562
|
}
|
|
2136
|
-
//#endregion
|
|
2137
|
-
//#region src/models/terrain/TerrainSelection.d.ts
|
|
2138
1563
|
export interface TerrainSelection {
|
|
2139
1564
|
count: number;
|
|
2140
1565
|
keys: Float64Array;
|
|
2141
1566
|
}
|
|
2142
|
-
//#endregion
|
|
2143
|
-
//#region src/models/streaming/TileStreamer.d.ts
|
|
2144
1567
|
export interface TileStreamer<TTile> {
|
|
2145
1568
|
checkIsSettled: (key: number) => boolean;
|
|
2146
1569
|
dispose: () => void;
|
|
@@ -2151,24 +1574,18 @@ export interface TileStreamer<TTile> {
|
|
|
2151
1574
|
refresh: (checkIsChanged: (key: number) => boolean) => void;
|
|
2152
1575
|
update: (wanted: TerrainSelection, drawn: TerrainSelection, surrounding: TerrainSelection) => void;
|
|
2153
1576
|
}
|
|
2154
|
-
//#endregion
|
|
2155
|
-
//#region src/models/streaming/TileStreamerOptions.d.ts
|
|
2156
1577
|
export interface TileStreamerOptions<TTile> {
|
|
2157
1578
|
disposeTile: (tile: TTile) => void;
|
|
2158
1579
|
maxCachedCount: number;
|
|
2159
1580
|
maxPendingCount: number;
|
|
2160
1581
|
requestTile: (key: number) => void;
|
|
2161
1582
|
}
|
|
2162
|
-
//#endregion
|
|
2163
|
-
//#region src/models/terrain/TerrainBounds.d.ts
|
|
2164
1583
|
export interface TerrainBounds {
|
|
2165
1584
|
maxX: number;
|
|
2166
1585
|
maxZ: number;
|
|
2167
1586
|
minX: number;
|
|
2168
1587
|
minZ: number;
|
|
2169
1588
|
}
|
|
2170
|
-
//#endregion
|
|
2171
|
-
//#region src/models/terrain/TerrainRing.d.ts
|
|
2172
1589
|
export interface TerrainRing {
|
|
2173
1590
|
add: (tile: TerrainTile) => void;
|
|
2174
1591
|
dispose: () => void;
|
|
@@ -2176,25 +1593,17 @@ export interface TerrainRing {
|
|
|
2176
1593
|
mesh: Mesh;
|
|
2177
1594
|
remove: (key: number) => void;
|
|
2178
1595
|
}
|
|
2179
|
-
//#endregion
|
|
2180
|
-
//#region src/models/terrain/TerrainTileArrays.d.ts
|
|
2181
1596
|
export type TerrainTileArrays = Pick<TerrainTile, "coarseColors" | "coarseNormals" | "coarsePositions" | "colors" | "normals" | "positions">;
|
|
2182
|
-
//#endregion
|
|
2183
|
-
//#region src/models/vegetation/GrassBlade.d.ts
|
|
2184
1597
|
export interface GrassBlade {
|
|
2185
1598
|
indices: Uint16Array;
|
|
2186
1599
|
positions: Float32Array;
|
|
2187
1600
|
}
|
|
2188
|
-
//#endregion
|
|
2189
|
-
//#region src/models/vegetation/GrassCell.d.ts
|
|
2190
1601
|
export interface GrassCell {
|
|
2191
1602
|
angle: Node<"float">;
|
|
2192
1603
|
captured: Node<"vec4">;
|
|
2193
1604
|
ground: Node<"vec2">;
|
|
2194
1605
|
size: Node<"float">;
|
|
2195
1606
|
}
|
|
2196
|
-
//#endregion
|
|
2197
|
-
//#region src/models/vegetation/GrassRing.d.ts
|
|
2198
1607
|
export interface GrassRing {
|
|
2199
1608
|
cellsPerSide: number;
|
|
2200
1609
|
fadeEnd: number;
|
|
@@ -2203,8 +1612,6 @@ export interface GrassRing {
|
|
|
2203
1612
|
scale: number;
|
|
2204
1613
|
spacing: number;
|
|
2205
1614
|
}
|
|
2206
|
-
//#endregion
|
|
2207
|
-
//#region src/models/vegetation/GrassCellOptions.d.ts
|
|
2208
1615
|
export interface GrassCellOptions {
|
|
2209
1616
|
cameraGround: UniformNode<"vec2", Vector2>;
|
|
2210
1617
|
density: UniformNode<"float", number>;
|
|
@@ -2213,8 +1620,6 @@ export interface GrassCellOptions {
|
|
|
2213
1620
|
ring: GrassRing;
|
|
2214
1621
|
waterUniforms: Pick<WaterUniforms, "level">;
|
|
2215
1622
|
}
|
|
2216
|
-
//#endregion
|
|
2217
|
-
//#region src/models/vegetation/GrassTrail.d.ts
|
|
2218
1623
|
export interface GrassTrail {
|
|
2219
1624
|
bends: Float32Array;
|
|
2220
1625
|
cells: Float64Array;
|
|
@@ -2222,8 +1627,6 @@ export interface GrassTrail {
|
|
|
2222
1627
|
data: Uint8Array;
|
|
2223
1628
|
texture: DataTexture;
|
|
2224
1629
|
}
|
|
2225
|
-
//#endregion
|
|
2226
|
-
//#region src/models/vegetation/GrassCullingOptions.d.ts
|
|
2227
1630
|
export interface GrassCullingOptions {
|
|
2228
1631
|
bladeHeight: number;
|
|
2229
1632
|
cameraGround: UniformNode<"vec2", Vector2>;
|
|
@@ -2236,8 +1639,6 @@ export interface GrassCullingOptions {
|
|
|
2236
1639
|
waterUniforms: Pick<WaterUniforms, "level">;
|
|
2237
1640
|
windUniforms: WindUniforms;
|
|
2238
1641
|
}
|
|
2239
|
-
//#endregion
|
|
2240
|
-
//#region src/models/vegetation/GrassOptions.d.ts
|
|
2241
1642
|
export interface GrassOptions {
|
|
2242
1643
|
bladeHeight: number;
|
|
2243
1644
|
bladeWidth: number;
|
|
@@ -2252,23 +1653,17 @@ export interface GrassOptions {
|
|
|
2252
1653
|
waterUniforms: Pick<WaterUniforms, "level">;
|
|
2253
1654
|
windUniforms: WindUniforms;
|
|
2254
1655
|
}
|
|
2255
|
-
//#endregion
|
|
2256
|
-
//#region src/models/vegetation/ImpostorPart.d.ts
|
|
2257
1656
|
export interface ImpostorPart {
|
|
2258
1657
|
color: ColorRepresentation;
|
|
2259
1658
|
geometry: BufferGeometry;
|
|
2260
1659
|
maskNode?: Node<"bool">;
|
|
2261
1660
|
}
|
|
2262
|
-
//#endregion
|
|
2263
|
-
//#region src/models/water/RiverCoursePoint.d.ts
|
|
2264
1661
|
export interface RiverCoursePoint {
|
|
2265
1662
|
level: number;
|
|
2266
1663
|
width: number;
|
|
2267
1664
|
x: number;
|
|
2268
1665
|
z: number;
|
|
2269
1666
|
}
|
|
2270
|
-
//#endregion
|
|
2271
|
-
//#region src/models/water/UnderwaterFogState.d.ts
|
|
2272
1667
|
export interface UnderwaterFogState {
|
|
2273
1668
|
aboveDensity: number;
|
|
2274
1669
|
aboveHeightFalloff: number;
|
|
@@ -2277,54 +1672,34 @@ export interface UnderwaterFogState {
|
|
|
2277
1672
|
isUnderwater: boolean;
|
|
2278
1673
|
underwaterDensity: number;
|
|
2279
1674
|
}
|
|
2280
|
-
//#endregion
|
|
2281
|
-
//#region src/models/water/WaterFlow.d.ts
|
|
2282
1675
|
export interface WaterFlow {
|
|
2283
1676
|
direction: UniformNode<"vec2", Vector2>;
|
|
2284
1677
|
speed: UniformNode<"float", number>;
|
|
2285
1678
|
}
|
|
2286
|
-
//#endregion
|
|
2287
|
-
//#region src/models/water/WaterfallSheet.d.ts
|
|
2288
1679
|
export interface WaterfallSheet {
|
|
2289
1680
|
across: Vector3;
|
|
2290
1681
|
drop: number;
|
|
2291
1682
|
lip: Vector3;
|
|
2292
1683
|
width: number;
|
|
2293
1684
|
}
|
|
2294
|
-
//#endregion
|
|
2295
|
-
//#region src/models/world/GroundPoint.d.ts
|
|
2296
1685
|
export interface GroundPoint {
|
|
2297
1686
|
x: number;
|
|
2298
1687
|
z: number;
|
|
2299
1688
|
}
|
|
2300
|
-
//#endregion
|
|
2301
|
-
//#region src/nodes/applyStoneLight.d.ts
|
|
2302
1689
|
export declare const applyStoneLight: ({ harmonics, hazeColor, hazeScatterColor, heightDarkening, heightFade, ramp }: StoneLight, { harmonics: harmonicsUniform, hazeColor: hazeColorUniform, hazeScatterColor: hazeScatterColorUniform, heightDarkening: heightDarkeningUniform, heightFade: heightFadeUniform, ramp: rampTexture, sunRadiance }: StoneLightUniforms, light: DirectionalLight) => void;
|
|
2303
|
-
//#endregion
|
|
2304
|
-
//#region src/nodes/computeStoneDarkening.d.ts
|
|
2305
1690
|
export declare const computeStoneDarkening: (height: number, heightDarkening: number) => number;
|
|
2306
|
-
//#endregion
|
|
2307
|
-
//#region src/nodes/computeStoneHarmonics.d.ts
|
|
2308
1691
|
export declare const computeStoneHarmonics: ([x, y, z]: readonly number[], harmonics: number[]) => void;
|
|
2309
|
-
//#endregion
|
|
2310
|
-
//#region src/nodes/computeStoneRampCoordinate.d.ts
|
|
2311
1692
|
export declare const computeStoneRampCoordinate: (facing: number, visibility: number) => number;
|
|
2312
|
-
//#endregion
|
|
2313
|
-
//#region src/nodes/computeSurfaceOctaves.d.ts
|
|
2314
1693
|
interface SurfaceOctave {
|
|
2315
1694
|
amplitude: number;
|
|
2316
1695
|
frequency: number;
|
|
2317
1696
|
}
|
|
2318
1697
|
export declare const computeSurfaceOctaves: ({ bands, metresPerTexel, variance }: SurfaceDetail) => SurfaceOctave[];
|
|
2319
|
-
//#endregion
|
|
2320
|
-
//#region src/nodes/computeWindGust.d.ts
|
|
2321
1698
|
export declare const computeWindGust: (downwind: number, time: number, { gustSpeed, gustStrength, gustWidth }: {
|
|
2322
1699
|
gustSpeed: number;
|
|
2323
1700
|
gustStrength: number;
|
|
2324
1701
|
gustWidth: number;
|
|
2325
1702
|
}) => number;
|
|
2326
|
-
//#endregion
|
|
2327
|
-
//#region src/nodes/constants.d.ts
|
|
2328
1703
|
export declare const LEAST_DIVISOR = 1e-4;
|
|
2329
1704
|
export declare const STONE_SHADOW_EXPONENT = .2;
|
|
2330
1705
|
export declare const STONE_RAMP_KNOT_COUNT = 16;
|
|
@@ -2342,228 +1717,90 @@ export declare const OBJECT_SURFACE_KEY = "surface";
|
|
|
2342
1717
|
export declare const OBJECT_FADE_KEY = "fade";
|
|
2343
1718
|
export declare const LEAF_SHAPE_WIDTH = .8;
|
|
2344
1719
|
export declare const LEAF_SHAPE_KEPT_SHARE: number;
|
|
2345
|
-
//#endregion
|
|
2346
|
-
//#region src/nodes/createCausticsNode.d.ts
|
|
2347
1720
|
export declare const createCausticsNode: ({ lightColor }: Pick<LightUniforms, "lightColor">, { causticStrength, deepDepth, level }: Pick<WaterUniforms, "causticStrength" | "deepDepth" | "level">) => Node<"vec3">;
|
|
2348
|
-
//#endregion
|
|
2349
|
-
//#region src/nodes/createCloudLayerNode.d.ts
|
|
2350
1721
|
export declare const createCloudLayerNode: ({ center, curl, curlAmplitude, curlSpeed, curlTiling, density, direction: cloudDirection, elapsedTime, height: layerHeight, lightDirection, normal, normalYScale, opacity, profile, smoothness, sunBrightness, sunRimLightRadius, tiling, turn, weather, wisps, wispsCoverage, wispsElapsedTime, wispsOpacity, wispsTurn }: CloudLayerUniforms, { cloudCoverage, cloudFrontBackBlend, cloudLitBackColor, cloudLitColor, cloudShadeBackColor, cloudShadeColor, cloudSunBrighten, moonDirection, moonGlowColor, sunDirection, sunHaloColor, sunHaloSize }: SkyUniforms, direction: Node<"vec3">) => Node<"vec4">;
|
|
2351
|
-
//#endregion
|
|
2352
|
-
//#region src/nodes/createDitherFadeNode.d.ts
|
|
2353
1722
|
export declare const createDitherFadeNode: (visibility: Node<"float">) => Node<"bool">;
|
|
2354
|
-
//#endregion
|
|
2355
|
-
//#region src/nodes/createImpostorMaterial.d.ts
|
|
2356
1723
|
export declare const createImpostorMaterial: ({ fade, impostor, instanceMatrix, lightUniforms, rampTexture }: ImpostorMaterialOptions) => ToonNodeMaterial;
|
|
2357
|
-
//#endregion
|
|
2358
|
-
//#region src/nodes/createLeafMaterial.d.ts
|
|
2359
1724
|
export declare const createLeafMaterial: (toonMaterialOptions: ToonMaterialOptions, windUniforms?: WindUniforms, maskNode?: Node<"bool">) => ToonNodeMaterial;
|
|
2360
|
-
//#endregion
|
|
2361
|
-
//#region src/nodes/createLeafShapeNode.d.ts
|
|
2362
1725
|
export declare const createLeafShapeNode: () => Node<"bool">;
|
|
2363
|
-
//#endregion
|
|
2364
|
-
//#region src/nodes/createLightUniforms.d.ts
|
|
2365
1726
|
export declare const createLightUniforms: () => LightUniforms;
|
|
2366
|
-
//#endregion
|
|
2367
|
-
//#region src/nodes/createLightningBoltMaterial.d.ts
|
|
2368
1727
|
export declare const createLightningBoltMaterial: (flash: UniformNode<"float", number>) => MeshBasicNodeMaterial;
|
|
2369
|
-
//#endregion
|
|
2370
|
-
//#region src/nodes/createMaterialDetailNode.d.ts
|
|
2371
1728
|
export declare const createMaterialDetailNode: (detail: SurfaceDetail) => Node<"float">;
|
|
2372
|
-
//#endregion
|
|
2373
|
-
//#region src/nodes/createObjectFadeNode.d.ts
|
|
2374
1729
|
export declare const createObjectFadeNode: () => Node<"float">;
|
|
2375
|
-
//#endregion
|
|
2376
|
-
//#region src/nodes/createObjectSurfaceNode.d.ts
|
|
2377
1730
|
export declare const createObjectSurfaceNode: () => Node<"vec3">;
|
|
2378
|
-
//#endregion
|
|
2379
|
-
//#region src/nodes/createPrecipitationMaterial.d.ts
|
|
2380
1731
|
export declare const createPrecipitationMaterial: ({ lightUniforms, precipitationUniforms, windUniforms }: PrecipitationMaterialOptions) => MeshBasicNodeMaterial;
|
|
2381
|
-
//#endregion
|
|
2382
|
-
//#region src/nodes/createRimNode.d.ts
|
|
2383
1732
|
export declare const createRimNode: ({ rimColor, rimStrength, sunDirection }: LightUniforms) => Node<"vec3">;
|
|
2384
|
-
//#endregion
|
|
2385
|
-
//#region src/nodes/createRiverMaterial.d.ts
|
|
2386
1733
|
export declare const createRiverMaterial: (lightUniforms: LightUniforms, skyUniforms: SkyUniforms, waterUniforms: WaterUniforms) => MeshBasicNodeMaterial;
|
|
2387
|
-
//#endregion
|
|
2388
|
-
//#region src/nodes/createSkyColorNode.d.ts
|
|
2389
1734
|
export declare const createSkyColorNode: ({ frontBackBlend, haloColor, haloHeight, horizonBackColor, horizonBand, horizonColor, sunDirection, sunHaloColor, sunHaloSize, zenithBackColor, zenithColor }: SkyUniforms, gradient: Texture, direction: Node<"vec3">) => Node<"vec3">;
|
|
2390
|
-
//#endregion
|
|
2391
|
-
//#region src/nodes/createSkyNode.d.ts
|
|
2392
1735
|
export declare const createSkyNode: (uniforms: SkyUniforms, gradient: Texture, cloudLayer?: CloudLayerUniforms) => Node<"vec3">;
|
|
2393
|
-
//#endregion
|
|
2394
|
-
//#region src/nodes/createSplashMaterial.d.ts
|
|
2395
1736
|
export declare const createSplashMaterial: ({ groundCapture, lightUniforms, precipitationUniforms, waterUniforms }: SplashMaterialOptions) => MeshBasicNodeMaterial;
|
|
2396
|
-
//#endregion
|
|
2397
|
-
//#region src/nodes/createStoneGlowNode.d.ts
|
|
2398
1737
|
export declare const createStoneGlowNode: ({ glowRange, rimColor, rimPower, rimStrength }: Pick<StoneMaterialOptions, "glowRange" | "rimColor" | "rimPower" | "rimStrength">) => Node<"vec3">;
|
|
2399
|
-
//#endregion
|
|
2400
|
-
//#region src/nodes/createStoneLightUniforms.d.ts
|
|
2401
1738
|
export declare const createStoneLightUniforms: () => StoneLightUniforms;
|
|
2402
|
-
//#endregion
|
|
2403
|
-
//#region src/nodes/createStoneMaterial.d.ts
|
|
2404
1739
|
export declare const createStoneMaterial: (options: StoneMaterialOptions, stoneLight: StoneLightUniforms, glowNode?: Node<"vec3">) => StoneNodeMaterial;
|
|
2405
|
-
//#endregion
|
|
2406
|
-
//#region src/nodes/createSunVisibilityNode.d.ts
|
|
2407
1740
|
export declare const createSunVisibilityNode: (lightColor: Node, sunRadiance: UniformNode<"color", Color>) => Node<"float">;
|
|
2408
|
-
//#endregion
|
|
2409
|
-
//#region src/nodes/createSurfaceDetailNode.d.ts
|
|
2410
1741
|
export declare const createSurfaceDetailNode: (amplitudes: Node<"float">[], texelsPerMetre: Node<"float">) => Node<"float">;
|
|
2411
|
-
//#endregion
|
|
2412
|
-
//#region src/nodes/createToonMaterial.d.ts
|
|
2413
1742
|
export declare const createToonMaterial: ({ color, detail, instanceMatrix, isObjectSurface, isOutlined, isVertexColors, lightUniforms, rampTexture }: ToonMaterialOptions) => ToonNodeMaterial;
|
|
2414
|
-
//#endregion
|
|
2415
|
-
//#region src/nodes/createWaterMaterial.d.ts
|
|
2416
1743
|
export declare const createWaterMaterial: ({ lightColor, sunDirection }: Pick<LightUniforms, "lightColor" | "sunDirection">, { horizonColor, zenithColor }: Pick<SkyUniforms, "horizonColor" | "zenithColor">, { deepColor, deepDepth, foamColor, foamDepth, shallowColor }: WaterUniforms, { direction, speed }: WaterFlow, bendFoam?: Node<"float">) => MeshBasicNodeMaterial;
|
|
2417
|
-
//#endregion
|
|
2418
|
-
//#region src/nodes/createWaterfallMaterial.d.ts
|
|
2419
1744
|
export declare const createWaterfallMaterial: ({ foamColor }: Pick<WaterUniforms, "foamColor">) => MeshBasicNodeMaterial;
|
|
2420
|
-
//#endregion
|
|
2421
|
-
//#region src/nodes/createWetDarkeningNode.d.ts
|
|
2422
1745
|
export declare const createWetDarkeningNode: ({ wetness }: Pick<LightUniforms, "wetness">) => Node<"float">;
|
|
2423
|
-
//#endregion
|
|
2424
|
-
//#region src/nodes/createWetSheenNode.d.ts
|
|
2425
1746
|
export declare const createWetSheenNode: ({ lightColor, sunDirection, wetness }: LightUniforms) => Node<"vec3">;
|
|
2426
|
-
//#endregion
|
|
2427
|
-
//#region src/nodes/createWindNode.d.ts
|
|
2428
1747
|
export declare const createWindNode: ({ direction, gustSpeed, gustStrength, gustWidth, strength }: WindUniforms, groundPosition: Node<"vec2">) => Node<"vec2">;
|
|
2429
|
-
//#endregion
|
|
2430
|
-
//#region src/nodes/getCloudSunColors.d.ts
|
|
2431
1748
|
export declare const getCloudSunColors: ({ cloudFrontBackBlend, cloudLitBackColor, cloudLitColor, cloudShadeBackColor, cloudShadeColor }: Pick<SkyUniforms, "cloudFrontBackBlend" | "cloudLitBackColor" | "cloudLitColor" | "cloudShadeBackColor" | "cloudShadeColor">, sunCosine: Node<"float">) => {
|
|
2432
1749
|
lit: Node<"vec3">;
|
|
2433
1750
|
shade: Node<"vec3">;
|
|
2434
1751
|
};
|
|
2435
|
-
//#endregion
|
|
2436
|
-
//#region src/nodes/sampleGrassTrail.d.ts
|
|
2437
1752
|
export declare const sampleGrassTrail: (grassTrail: GrassTrail, ground: Node<"vec2">) => Node<"vec2">;
|
|
2438
|
-
//#endregion
|
|
2439
|
-
//#region src/nodes/sampleGroundCapture.d.ts
|
|
2440
1753
|
export declare const sampleGroundCapture: (groundCapture: GroundCapture, ground: Node<"vec2">) => {
|
|
2441
1754
|
captured: Node<"vec4">;
|
|
2442
1755
|
isInsideCapture: Node<"float">;
|
|
2443
1756
|
};
|
|
2444
|
-
//#endregion
|
|
2445
|
-
//#region src/nodes/setObjectFade.d.ts
|
|
2446
1757
|
export declare const setObjectFade: (object: Object3D, fade: number) => void;
|
|
2447
|
-
//#endregion
|
|
2448
|
-
//#region src/nodes/setObjectSurface.d.ts
|
|
2449
1758
|
export declare const setObjectSurface: (object: Object3D, color: ColorRepresentation, detail?: SurfaceDetail) => void;
|
|
2450
|
-
//#endregion
|
|
2451
|
-
//#region src/noise/constants.d.ts
|
|
2452
1759
|
export declare const SPECTRAL_RADIAL_BIN_COUNT = 16;
|
|
2453
1760
|
export declare const SPECTRAL_ANGULAR_BIN_COUNT = 8;
|
|
2454
|
-
//#endregion
|
|
2455
|
-
//#region src/noise/createSimplexNoise.d.ts
|
|
2456
1761
|
export declare const createSimplexNoise: (seed: number) => ((x: number, y: number) => number);
|
|
2457
|
-
//#endregion
|
|
2458
|
-
//#region src/noise/getSpectralBin.d.ts
|
|
2459
1762
|
export declare const getSpectralBin: (column: number, row: number, width: number, height: number) => number | undefined;
|
|
2460
|
-
//#endregion
|
|
2461
|
-
//#region src/noise/synthesizeSpectralNoise.d.ts
|
|
2462
1763
|
export declare const synthesizeSpectralNoise: ({ channels, height, width }: SpectralNoiseProfile, random: () => number) => Float32Array[];
|
|
2463
|
-
//#endregion
|
|
2464
|
-
//#region src/noise/transformFourierGrid.d.ts
|
|
2465
1764
|
export declare const transformFourierGrid: (real: Float64Array, imaginary: Float64Array, width: number, height: number) => void;
|
|
2466
|
-
//#endregion
|
|
2467
|
-
//#region src/post/computeGradeLut.d.ts
|
|
2468
1765
|
export declare const computeGradeLut: ({ contrast, highlightTint, saturation, shadowTint, size }: GradeOptions) => Uint8Array;
|
|
2469
|
-
//#endregion
|
|
2470
|
-
//#region src/post/computeWhiteBalance.d.ts
|
|
2471
1766
|
export declare const computeWhiteBalance: ({ temperature, tint }: WhiteBalance, whiteBalance?: Matrix3) => Matrix3;
|
|
2472
|
-
//#endregion
|
|
2473
|
-
//#region src/post/createFogUniforms.d.ts
|
|
2474
1767
|
export declare const createFogUniforms: () => FogUniforms;
|
|
2475
|
-
//#endregion
|
|
2476
|
-
//#region src/post/createGodraysLight.d.ts
|
|
2477
1768
|
export declare const createGodraysLight: (shadowMapSize: number, halfExtent: number) => DirectionalLight;
|
|
2478
|
-
//#endregion
|
|
2479
|
-
//#region src/post/createGradeLutTexture.d.ts
|
|
2480
1769
|
export declare const createGradeLutTexture: (gradeOptions: GradeOptions) => Data3DTexture;
|
|
2481
|
-
//#endregion
|
|
2482
|
-
//#region src/post/createHeightFogNode.d.ts
|
|
2483
1770
|
export declare const createHeightFogNode: (colorNode: Node<"vec4">, depthNode: TextureNode, camera: Camera, { baseHeight, color, density, heightFalloff, maxOpacity, scatterColor, scatterDirection, scatterPower, scatterStrength, startDistance }: FogUniforms, stoneHaze?: Pick<StoneLightUniforms, "hazeColor" | "hazeScatterColor"> & {
|
|
2484
1771
|
maskNode: TextureNode;
|
|
2485
1772
|
}) => Node<"vec4">;
|
|
2486
|
-
//#endregion
|
|
2487
|
-
//#region src/post/createOcclusionNode.d.ts
|
|
2488
1773
|
export declare const createOcclusionNode: (depthNode: TextureNode, camera: Camera, radius: number) => GTAONode;
|
|
2489
|
-
//#endregion
|
|
2490
|
-
//#region src/post/createPostPipeline.d.ts
|
|
2491
1774
|
export declare const createPostPipeline: ({ camera, fogUniforms, godraysLight, gradeLutTexture, isBloomed, occlusionRadius, postUniforms: { godraysColor, gradeIntensity, outlineColor, outlineFadeDistance, outlineThickness, whiteBalance }, qualityTierSettings: { antialiasingMode, godraysStepCount, isBloomEnabled, isOcclusionEnabled }, renderer, scene, sight, stoneLight }: PostPipelineOptions) => PostPipeline;
|
|
2492
|
-
//#endregion
|
|
2493
|
-
//#region src/post/createPostUniforms.d.ts
|
|
2494
1775
|
export declare const createPostUniforms: () => PostUniforms;
|
|
2495
|
-
//#endregion
|
|
2496
|
-
//#region src/post/createSightNode.d.ts
|
|
2497
1776
|
export declare const createSightNode: (colorNode: Node<"vec4">, depthNode: TextureNode, camera: Camera, litPass: PassNode, { origin, radius, strength }: SightUniforms) => Node<"vec4">;
|
|
2498
|
-
//#endregion
|
|
2499
|
-
//#region src/post/createSightUniforms.d.ts
|
|
2500
1777
|
export declare const createSightUniforms: () => SightUniforms;
|
|
2501
|
-
//#endregion
|
|
2502
|
-
//#region src/post/toSceneColor.d.ts
|
|
2503
1778
|
export declare const toSceneColor: (displayColor: Color, sceneColor?: Color) => Color;
|
|
2504
|
-
//#endregion
|
|
2505
|
-
//#region src/post/toneMapGenshin.d.ts
|
|
2506
1779
|
export declare const toneMapGenshin: (sceneColor: readonly [number, number, number], toneMapped?: [number, number, number]) => [number, number, number];
|
|
2507
|
-
//#endregion
|
|
2508
|
-
//#region src/post/toneMapGenshinNode.d.ts
|
|
2509
1780
|
export declare const toneMapGenshinNode: (sceneColor: Node<"vec3">) => Node<"vec3">;
|
|
2510
|
-
//#endregion
|
|
2511
|
-
//#region src/renderer/QualityTierSettingsMap.d.ts
|
|
2512
1781
|
export declare const QualityTierSettingsMap: Readonly<Record<QualityTier, QualityTierSettings>>;
|
|
2513
|
-
//#endregion
|
|
2514
|
-
//#region src/renderer/attachInspector.d.ts
|
|
2515
1782
|
export declare const attachInspector: (renderer: Renderer) => Promise<Inspector>;
|
|
2516
|
-
//#endregion
|
|
2517
|
-
//#region src/renderer/constants.d.ts
|
|
2518
1783
|
export declare const GENSHIN_TONE_MAPPING: ToneMapping;
|
|
2519
1784
|
export declare const GENSHIN_TONE_CONTRAST = .5;
|
|
2520
1785
|
export declare const GENSHIN_TONE_EXPOSURE = 1;
|
|
2521
1786
|
export declare const TONE_CONTRAST_OFFSET = .01;
|
|
2522
1787
|
export declare const TONE_CURVE_LIFT = 1e-4;
|
|
2523
1788
|
export declare const TONE_CURVE_FLOOR: number;
|
|
2524
|
-
//#endregion
|
|
2525
|
-
//#region src/renderer/createGenshinRenderer.d.ts
|
|
2526
1789
|
export declare const createGenshinRenderer: (canvas: HTMLCanvasElement) => WebGPURenderer;
|
|
2527
|
-
//#endregion
|
|
2528
|
-
//#region src/renderer/createInstancedMesh.d.ts
|
|
2529
1790
|
export declare const createInstancedMesh: <TGeometry extends BufferGeometry, TMaterial extends Material | Material[]>(geometry: TGeometry, material: TMaterial, count: number) => InstancedMesh<TGeometry, TMaterial>;
|
|
2530
|
-
//#endregion
|
|
2531
|
-
//#region src/renderer/getScreenDirection.d.ts
|
|
2532
1791
|
export declare const getScreenDirection: ({ aspect, fov, pitch, yaw }: ScreenCamera, [x, y]: [number, number]) => Vector3;
|
|
2533
|
-
//#endregion
|
|
2534
|
-
//#region src/simulation/constants.d.ts
|
|
2535
1792
|
export declare const MAX_STEPS_PER_FRAME = 5;
|
|
2536
|
-
//#endregion
|
|
2537
|
-
//#region src/simulation/createFixedStepLoop.d.ts
|
|
2538
1793
|
export declare const createFixedStepLoop: (stepSeconds: number, step: () => void) => FixedStepLoop;
|
|
2539
|
-
//#endregion
|
|
2540
|
-
//#region src/streaming/constants.d.ts
|
|
2541
1794
|
export declare const MAX_TILE_ATTEMPTS = 3;
|
|
2542
|
-
//#endregion
|
|
2543
|
-
//#region src/streaming/createTileStreamer.d.ts
|
|
2544
1795
|
export declare const createTileStreamer: <TTile>({ disposeTile, maxCachedCount, maxPendingCount, requestTile }: TileStreamerOptions<TTile>) => TileStreamer<TTile>;
|
|
2545
|
-
//#endregion
|
|
2546
|
-
//#region src/terrain/TerrainFeatureKindBlendMap.d.ts
|
|
2547
1796
|
export declare const TerrainFeatureKindBlendMap: { [K in TerrainFeatureKind]: (feature: Extract<TerrainFeature, {
|
|
2548
1797
|
kind: K;
|
|
2549
1798
|
}>, x: number, z: number) => number; };
|
|
2550
|
-
//#endregion
|
|
2551
|
-
//#region src/terrain/blendGridNodes.d.ts
|
|
2552
1799
|
export declare const blendGridNodes: (values: readonly number[], sizeX: number, sizeZ: number, column: number, row: number) => number;
|
|
2553
|
-
//#endregion
|
|
2554
|
-
//#region src/terrain/checkTerrainBoundsOverlap.d.ts
|
|
2555
1800
|
export declare const checkTerrainBoundsOverlap: (first: TerrainBounds, second: TerrainBounds) => boolean;
|
|
2556
|
-
//#endregion
|
|
2557
|
-
//#region src/terrain/checkTerrainDrawsChanged.d.ts
|
|
2558
1801
|
export declare const checkTerrainDrawsChanged: ({ finestTileSize }: Pick<TerrainOptions, "finestTileSize">, previous: TerrainSelection, next: TerrainSelection, center: Vector3Like, halfSize: number) => boolean;
|
|
2559
|
-
//#endregion
|
|
2560
|
-
//#region src/terrain/checkTerrainTileCasts.d.ts
|
|
2561
1802
|
export declare const checkTerrainTileCasts: ({ finestRange }: Pick<TerrainOptions, "finestRange">, key: number, shadowReach: number) => boolean;
|
|
2562
|
-
//#endregion
|
|
2563
|
-
//#region src/terrain/computeTerrainIndices.d.ts
|
|
2564
1803
|
export declare const computeTerrainIndices: (cellsPerSide: number) => Uint16Array | Uint32Array;
|
|
2565
|
-
//#endregion
|
|
2566
|
-
//#region src/terrain/constants.d.ts
|
|
2567
1804
|
export declare const TILE_INDEX_OFFSET: number;
|
|
2568
1805
|
export declare const TILE_INDEX_SPAN: number;
|
|
2569
1806
|
export declare const TERRAIN_LAYER = 1;
|
|
@@ -2571,110 +1808,40 @@ export declare const TERRAIN_RING_INITIAL_TILE_COUNT = 64;
|
|
|
2571
1808
|
export declare const TERRAIN_CELL_SIZE = 64;
|
|
2572
1809
|
export declare const GAUSSIAN_REACH_WIDTHS = 3;
|
|
2573
1810
|
export declare const TERRAIN_HEIGHT_PADDING = 2;
|
|
2574
|
-
//#endregion
|
|
2575
|
-
//#region src/terrain/createGaussianHillsHeight.d.ts
|
|
2576
1811
|
export declare const createGaussianHillsHeight: ({ base, hills }: GaussianHills) => ((x: number, z: number) => number);
|
|
2577
|
-
//#endregion
|
|
2578
|
-
//#region src/terrain/createResidualHeight.d.ts
|
|
2579
1812
|
export declare const createResidualHeight: ({ amplitude, fade, octaves, scale, seed }: TerrainResidual) => ((x: number, z: number) => number);
|
|
2580
|
-
//#endregion
|
|
2581
|
-
//#region src/terrain/createTerrainFeaturesBlend.d.ts
|
|
2582
1813
|
export declare const createTerrainFeaturesBlend: (features: readonly TerrainFeature[]) => ((x: number, z: number) => number);
|
|
2583
|
-
//#endregion
|
|
2584
|
-
//#region src/terrain/createTerrainFeaturesHeight.d.ts
|
|
2585
1814
|
export declare const createTerrainFeaturesHeight: (features: readonly TerrainFeature[]) => ((x: number, z: number) => number);
|
|
2586
|
-
//#endregion
|
|
2587
|
-
//#region src/terrain/createTerrainMaterial.d.ts
|
|
2588
1815
|
export declare const createTerrainMaterial: (terrainOptions: Pick<TerrainOptions, "finestRange" | "finestTileSize" | "maxHeight" | "minHeight">, eye: UniformNode<"vec3", Vector3>, toonMaterialOptions: Pick<ToonMaterialOptions, "lightUniforms" | "rampTexture">, waterUniforms?: WaterUniforms) => ToonNodeMaterial;
|
|
2589
|
-
//#endregion
|
|
2590
|
-
//#region src/terrain/createTerrainRing.d.ts
|
|
2591
1816
|
export declare const createTerrainRing: ({ cellsPerSide, finestTileSize }: Pick<TerrainOptions, "cellsPerSide" | "finestTileSize">, tileIndices: Uint16Array | Uint32Array, material: Material) => TerrainRing;
|
|
2592
|
-
//#endregion
|
|
2593
|
-
//#region src/terrain/createTerrainSelection.d.ts
|
|
2594
1817
|
export declare const createTerrainSelection: (capacity: number) => TerrainSelection;
|
|
2595
|
-
//#endregion
|
|
2596
|
-
//#region src/terrain/createTerrainTileGeometry.d.ts
|
|
2597
1818
|
export declare const createTerrainTileGeometry: ({ coarseColors, coarseNormals, coarsePositions, colors, normals, positions }: TerrainTileArrays, index: BufferAttribute, boundingBox: Box3) => BufferGeometry;
|
|
2598
|
-
//#endregion
|
|
2599
|
-
//#region src/terrain/fileByCell.d.ts
|
|
2600
1819
|
export declare const fileByCell: <T>(items: readonly T[], getBounds: (item: T) => TerrainBounds) => ((x: number, z: number) => readonly T[]);
|
|
2601
|
-
//#endregion
|
|
2602
|
-
//#region src/terrain/getCliffBlend.d.ts
|
|
2603
1820
|
export declare const getCliffBlend: (feature: CliffFeature, x: number, z: number) => number;
|
|
2604
|
-
//#endregion
|
|
2605
|
-
//#region src/terrain/getGaussianHillBlend.d.ts
|
|
2606
1821
|
export declare const getGaussianHillBlend: ({ width, x: hillX, z: hillZ }: Pick<GaussianHill, "width" | "x" | "z">, x: number, z: number) => number;
|
|
2607
|
-
//#endregion
|
|
2608
|
-
//#region src/terrain/getParentTerrainTileKey.d.ts
|
|
2609
1822
|
export declare const getParentTerrainTileKey: (key: number) => number;
|
|
2610
|
-
//#endregion
|
|
2611
|
-
//#region src/terrain/getPlateauBlend.d.ts
|
|
2612
1823
|
export declare const getPlateauBlend: (feature: PlateauFeature, x: number, z: number) => number;
|
|
2613
|
-
//#endregion
|
|
2614
|
-
//#region src/terrain/getRidgeBlend.d.ts
|
|
2615
1824
|
export declare const getRidgeBlend: (feature: RidgeFeature, x: number, z: number) => number;
|
|
2616
|
-
//#endregion
|
|
2617
|
-
//#region src/terrain/getSegmentBounds.d.ts
|
|
2618
1825
|
export declare const getSegmentBounds: (startX: number, startZ: number, endX: number, endZ: number, reach: number) => TerrainBounds;
|
|
2619
|
-
//#endregion
|
|
2620
|
-
//#region src/terrain/getTerrainFeatureBounds.d.ts
|
|
2621
1826
|
export declare const getTerrainFeatureBounds: (feature: TerrainFeature) => TerrainBounds;
|
|
2622
|
-
//#endregion
|
|
2623
|
-
//#region src/terrain/getTerrainMorphStart.d.ts
|
|
2624
1827
|
export declare const getTerrainMorphStart: ({ finestRange, finestTileSize }: Pick<TerrainOptions, "finestRange" | "finestTileSize">) => number;
|
|
2625
|
-
//#endregion
|
|
2626
|
-
//#region src/terrain/getTerrainOverlayBounds.d.ts
|
|
2627
1828
|
export declare const getTerrainOverlayBounds: (shape: TerrainShape) => TerrainBounds;
|
|
2628
|
-
//#endregion
|
|
2629
|
-
//#region src/terrain/getTerrainShapeLevel.d.ts
|
|
2630
1829
|
export declare const getTerrainShapeLevel: ({ base, hills }: GaussianHills, baseUnder: number) => PlateauFeature | undefined;
|
|
2631
|
-
//#endregion
|
|
2632
|
-
//#region src/terrain/getTerrainTileBounds.d.ts
|
|
2633
1830
|
export declare const getTerrainTileBounds: (key: number, finestTileSize: number, cellsPerSide: number) => TerrainBounds;
|
|
2634
|
-
//#endregion
|
|
2635
|
-
//#region src/terrain/getTerrainTileKey.d.ts
|
|
2636
1831
|
export declare const getTerrainTileKey: (level: number, column: number, row: number) => number;
|
|
2637
|
-
//#endregion
|
|
2638
|
-
//#region src/terrain/measureSegment.d.ts
|
|
2639
1832
|
export declare const measureSegment: ({ endX, endZ, startX, startZ }: Pick<RidgeFeature, "endX" | "endZ" | "startX" | "startZ">, x: number, z: number) => Float64Array;
|
|
2640
|
-
//#endregion
|
|
2641
|
-
//#region src/terrain/resolveTerrainDraws.d.ts
|
|
2642
1833
|
export declare const resolveTerrainDraws: ({ levelCount }: Pick<TerrainOptions, "levelCount">, wanted: TerrainSelection, checkTileLoaded: (key: number) => boolean, draws: TerrainSelection) => TerrainSelection;
|
|
2643
|
-
//#endregion
|
|
2644
|
-
//#region src/terrain/sampleGroundLayerField.d.ts
|
|
2645
1834
|
export declare const sampleGroundLayerField: ({ cellSize, layers, origin, size }: GroundLayerField, x: number, z: number, weights: Record<GroundLayer, number>) => void;
|
|
2646
|
-
//#endregion
|
|
2647
|
-
//#region src/terrain/sampleTerrainResidualFade.d.ts
|
|
2648
1835
|
export declare const sampleTerrainResidualFade: ({ cellSize, clearings, origin, size, weights }: TerrainResidualFade, x: number, z: number) => number;
|
|
2649
|
-
//#endregion
|
|
2650
|
-
//#region src/terrain/selectTerrainTiles.d.ts
|
|
2651
1836
|
export declare const selectTerrainTiles: (terrainOptions: TerrainOptions, eye: Vector3Like, frustum: Frustum | undefined, selection: TerrainSelection) => TerrainSelection;
|
|
2652
|
-
//#endregion
|
|
2653
|
-
//#region src/terrain/writeTerrainRingIndices.d.ts
|
|
2654
1837
|
export declare const writeTerrainRingIndices: (ringIndices: Uint32Array, tileIndices: Uint16Array | Uint32Array, drawnOrdinals: readonly number[], vertexCount: number) => number;
|
|
2655
|
-
//#endregion
|
|
2656
|
-
//#region src/terrain/writeTerrainRingTile.d.ts
|
|
2657
1838
|
export declare const writeTerrainRingTile: (ring: TerrainTileArrays, base: number, tile: TerrainTile, finestTileSize: number) => void;
|
|
2658
|
-
//#endregion
|
|
2659
|
-
//#region src/vegetation/bakeImpostor.d.ts
|
|
2660
1839
|
export declare const bakeImpostor: (renderer: Renderer, parts: readonly ImpostorPart[], resolution: number) => Impostor;
|
|
2661
|
-
//#endregion
|
|
2662
|
-
//#region src/vegetation/computeGrassBlade.d.ts
|
|
2663
1840
|
export declare const computeGrassBlade: (segmentCount: number) => GrassBlade;
|
|
2664
|
-
//#endregion
|
|
2665
|
-
//#region src/vegetation/computeGrassTrailCell.d.ts
|
|
2666
1841
|
export declare const computeGrassTrailCell: (coordinate: number, texelSize: number) => number;
|
|
2667
|
-
//#endregion
|
|
2668
|
-
//#region src/vegetation/computeGrassTrailTexel.d.ts
|
|
2669
1842
|
export declare const computeGrassTrailTexel: (cell: number) => number;
|
|
2670
|
-
//#endregion
|
|
2671
|
-
//#region src/vegetation/computeGrassTrailTexelIndex.d.ts
|
|
2672
1843
|
export declare const computeGrassTrailTexelIndex: (cellX: number, cellZ: number) => number;
|
|
2673
|
-
//#endregion
|
|
2674
|
-
//#region src/vegetation/computeImpostorFade.d.ts
|
|
2675
1844
|
export declare const computeImpostorFade: (distance: number, impostorHeight: number) => number;
|
|
2676
|
-
//#endregion
|
|
2677
|
-
//#region src/vegetation/constants.d.ts
|
|
2678
1845
|
export declare const IMPOSTOR_RESOLUTION = 256;
|
|
2679
1846
|
export declare const IMPOSTOR_SWITCH_HEIGHTS = 10;
|
|
2680
1847
|
export declare const IMPOSTOR_CROSSFADE_SHARE = .1;
|
|
@@ -2691,17 +1858,9 @@ export declare const GRASS_TRAIL_FADE_START_SHARE = .8;
|
|
|
2691
1858
|
export declare const GRASS_TRAIL_FADE_END_SHARE = .95;
|
|
2692
1859
|
export declare const GRASS_BEND_PER_WIND = .9;
|
|
2693
1860
|
export declare const GRASS_DIP_PER_BEND = .3;
|
|
2694
|
-
//#endregion
|
|
2695
|
-
//#region src/vegetation/createFlowerGeometry.d.ts
|
|
2696
1861
|
export declare const createFlowerGeometry: () => BufferGeometry;
|
|
2697
|
-
//#endregion
|
|
2698
|
-
//#region src/vegetation/createFlowerMaterial.d.ts
|
|
2699
1862
|
export declare const createFlowerMaterial: (toonMaterialOptions: Pick<ToonMaterialOptions, "lightUniforms" | "rampTexture">, windUniforms: WindUniforms) => ToonNodeMaterial;
|
|
2700
|
-
//#endregion
|
|
2701
|
-
//#region src/vegetation/createFlowerTileGeometry.d.ts
|
|
2702
1863
|
export declare const createFlowerTileGeometry: (matrices: Float32Array, colors: Float32Array) => InstancedBufferGeometry;
|
|
2703
|
-
//#endregion
|
|
2704
|
-
//#region src/vegetation/createGrassBladePoint.d.ts
|
|
2705
1864
|
interface GrassBladePointOptions {
|
|
2706
1865
|
bladeHeight: number;
|
|
2707
1866
|
captured: Node<"vec4">;
|
|
@@ -2713,63 +1872,24 @@ interface GrassBladePointOptions {
|
|
|
2713
1872
|
windUniforms: WindUniforms;
|
|
2714
1873
|
}
|
|
2715
1874
|
export declare const createGrassBladePoint: ({ bladeHeight, captured, grassTrail, ground, offset, size, up, windUniforms }: GrassBladePointOptions) => Node<"vec3">;
|
|
2716
|
-
//#endregion
|
|
2717
|
-
//#region src/vegetation/createGrassCell.d.ts
|
|
2718
1875
|
export declare const createGrassCell: ({ cameraGround, density, groundCapture, index, ring, waterUniforms }: GrassCellOptions) => GrassCell;
|
|
2719
|
-
//#endregion
|
|
2720
|
-
//#region src/vegetation/createGrassCulling.d.ts
|
|
2721
1876
|
export declare const createGrassCulling: ({ bladeHeight, cameraGround, clipFromModel, density, grassTrail, groundCapture, ring, segmentCount, waterUniforms, windUniforms }: GrassCullingOptions) => InstanceCulling;
|
|
2722
|
-
//#endregion
|
|
2723
|
-
//#region src/vegetation/createGrassGeometry.d.ts
|
|
2724
1877
|
export declare const createGrassGeometry: (segmentCount: number, bladeCount: number) => InstancedBufferGeometry;
|
|
2725
|
-
//#endregion
|
|
2726
|
-
//#region src/vegetation/createGrassMaterial.d.ts
|
|
2727
1878
|
export declare const createGrassMaterial: ({ bladeHeight, bladeWidth, cameraGround, cellIndex, density, grassTrail, groundCapture, lightUniforms, rampTexture, ring, waterUniforms, windUniforms }: GrassOptions) => ToonNodeMaterial;
|
|
2728
|
-
//#endregion
|
|
2729
|
-
//#region src/vegetation/createGrassTrail.d.ts
|
|
2730
1879
|
export declare const createGrassTrail: () => GrassTrail;
|
|
2731
|
-
//#endregion
|
|
2732
|
-
//#region src/vegetation/createGroundCapture.d.ts
|
|
2733
1880
|
export declare const createGroundCapture: (size: number, resolution: number) => GroundCapture;
|
|
2734
|
-
//#endregion
|
|
2735
|
-
//#region src/vegetation/createPlantCulling.d.ts
|
|
2736
1881
|
export declare const createPlantCulling: ({ attribute, bounds: { bottom, halfWidth, height }, clipFromModel, drawDistance, eye, indexCount }: PlantCullingOptions) => InstanceCulling;
|
|
2737
|
-
//#endregion
|
|
2738
|
-
//#region src/vegetation/renderGroundCapture.d.ts
|
|
2739
1882
|
export declare const renderGroundCapture: (renderer: Renderer, scene: Scene, { camera, center, material, renderTarget }: GroundCapture, { maxHeight }: Pick<TerrainOptions, "maxHeight">, worldCenter: Vector3Like, origin: Vector3Like) => void;
|
|
2740
|
-
//#endregion
|
|
2741
|
-
//#region src/vegetation/stepGrassTrail.d.ts
|
|
2742
1883
|
export declare const stepGrassTrail: (trail: GrassTrail, position: Vector2, velocity: Vector2, delta: number) => void;
|
|
2743
|
-
//#endregion
|
|
2744
|
-
//#region src/water/constants.d.ts
|
|
2745
1884
|
export declare const RIVER_BEND_FOAM_ATTRIBUTE = "bendFoam";
|
|
2746
1885
|
export declare const BEND_FOAM_FULL_RADIUS_WIDTHS = 2;
|
|
2747
|
-
//#endregion
|
|
2748
|
-
//#region src/water/createRiverGeometry.d.ts
|
|
2749
1886
|
export declare const createRiverGeometry: (course: readonly RiverCoursePoint[]) => BufferGeometry;
|
|
2750
|
-
//#endregion
|
|
2751
|
-
//#region src/water/createUnderwaterFogState.d.ts
|
|
2752
1887
|
export declare const createUnderwaterFogState: () => UnderwaterFogState;
|
|
2753
|
-
//#endregion
|
|
2754
|
-
//#region src/water/createWaterFlowUniforms.d.ts
|
|
2755
1888
|
export declare const createWaterFlowUniforms: () => WaterFlow;
|
|
2756
|
-
//#endregion
|
|
2757
|
-
//#region src/water/createWaterUniforms.d.ts
|
|
2758
1889
|
export declare const createWaterUniforms: () => WaterUniforms;
|
|
2759
|
-
//#endregion
|
|
2760
|
-
//#region src/water/createWaterfallGeometry.d.ts
|
|
2761
1890
|
export declare const createWaterfallGeometry: ({ across, drop, lip, width }: WaterfallSheet) => BufferGeometry;
|
|
2762
|
-
//#endregion
|
|
2763
|
-
//#region src/water/updateUnderwaterFog.d.ts
|
|
2764
1891
|
export declare const updateUnderwaterFog: (eyeHeight: number, { level, underwaterFogColor, underwaterFogDensity }: Pick<WaterUniforms, "level" | "underwaterFogColor" | "underwaterFogDensity">, { color, density, heightFalloff, maxOpacity, startDistance }: FogUniforms, underwaterFogState: UnderwaterFogState) => void;
|
|
2765
|
-
//#endregion
|
|
2766
|
-
//#region src/wind/createWindUniforms.d.ts
|
|
2767
1892
|
export declare const createWindUniforms: () => WindUniforms;
|
|
2768
|
-
//#endregion
|
|
2769
|
-
//#region src/world/computeOriginShift.d.ts
|
|
2770
1893
|
export declare const computeOriginShift: (cameraPosition: Vector3, threshold: number, step: number, shift: Vector3) => boolean;
|
|
2771
|
-
//#endregion
|
|
2772
|
-
//#region src/world/computeOutlineDistance.d.ts
|
|
2773
1894
|
export declare const computeOutlineDistance: (outline: readonly GroundPoint[], x: number, z: number) => number;
|
|
2774
|
-
//#endregion
|
|
2775
1895
|
export { CliffFeature, GaussianHill, GaussianHills, GroundBand, GroundLayer, GroundLayerColors, GroundLayerField, GroundLayers, GroundPaint, GroundPathSegment, PlateauFeature, RidgeFeature, ScatterOptions, TerrainFeature, TerrainFeatureKind, TerrainOptions, TerrainResidual, TerrainResidualClearing, TerrainResidualFade, TerrainShape, TerrainTile, TerrainTileOptions, computeScatterPoints, computeTerrainTile, createGroundLayerWeights, createGroundPaintColor, createSeededRandom, createTerrainShapeHeight, getTerrainTileColumn, getTerrainTileLevel, getTerrainTileRow };
|