@navaramap/engine-worker 0.0.5 → 0.0.6

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.
@@ -747,6 +747,18 @@ export class ModelMaterial {
747
747
  set height(value: number | null | undefined);
748
748
  get ior(): number | undefined;
749
749
  set ior(value: number | null | undefined);
750
+ /**
751
+ * Applies the lighting equation to the color output. When `false` the
752
+ * material outputs plain albedo (for deferred lighting) while normals and
753
+ * the shadow G-buffer keep being written.
754
+ */
755
+ get lit(): boolean | undefined;
756
+ /**
757
+ * Applies the lighting equation to the color output. When `false` the
758
+ * material outputs plain albedo (for deferred lighting) while normals and
759
+ * the shadow G-buffer keep being written.
760
+ */
761
+ set lit(value: boolean | null | undefined);
750
762
  get maxSse(): number | undefined;
751
763
  set maxSse(value: number | null | undefined);
752
764
  get metalness(): number | undefined;
@@ -1062,6 +1074,18 @@ export class PolygonMaterial {
1062
1074
  set height(value: number | null | undefined);
1063
1075
  get ior(): number | undefined;
1064
1076
  set ior(value: number | null | undefined);
1077
+ /**
1078
+ * Applies the lighting equation to the color output. When `false` the
1079
+ * material outputs plain albedo (for deferred lighting) while normals and
1080
+ * the shadow G-buffer keep being written.
1081
+ */
1082
+ get lit(): boolean | undefined;
1083
+ /**
1084
+ * Applies the lighting equation to the color output. When `false` the
1085
+ * material outputs plain albedo (for deferred lighting) while normals and
1086
+ * the shadow G-buffer keep being written.
1087
+ */
1088
+ set lit(value: boolean | null | undefined);
1065
1089
  /**
1066
1090
  * Need to enable `transparent`.
1067
1091
  */
@@ -1328,6 +1352,18 @@ export class PolylineMaterial {
1328
1352
  set emissiveIntensity(value: number | null | undefined);
1329
1353
  get height(): number | undefined;
1330
1354
  set height(value: number | null | undefined);
1355
+ /**
1356
+ * Applies the lighting equation to the color output. When `false` the
1357
+ * material outputs plain albedo (for deferred lighting) while normals and
1358
+ * the shadow G-buffer keep being written.
1359
+ */
1360
+ get lit(): boolean | undefined;
1361
+ /**
1362
+ * Applies the lighting equation to the color output. When `false` the
1363
+ * material outputs plain albedo (for deferred lighting) while normals and
1364
+ * the shadow G-buffer keep being written.
1365
+ */
1366
+ set lit(value: boolean | null | undefined);
1331
1367
  /**
1332
1368
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
1333
1369
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -1428,6 +1464,18 @@ export class RasterTileInternalMaterial {
1428
1464
  isElevationHeatmaps: Uint8Array;
1429
1465
  isHillshades: Uint8Array;
1430
1466
  layerReproject: Uint8Array;
1467
+ /**
1468
+ * Applies the lighting equation to the color output. When `false` the
1469
+ * material outputs plain albedo (for deferred lighting) while normals and
1470
+ * the shadow G-buffer keep being written.
1471
+ */
1472
+ get lit(): boolean | undefined;
1473
+ /**
1474
+ * Applies the lighting equation to the color output. When `false` the
1475
+ * material outputs plain albedo (for deferred lighting) while normals and
1476
+ * the shadow G-buffer keep being written.
1477
+ */
1478
+ set lit(value: boolean | null | undefined);
1431
1479
  logBoundary: number;
1432
1480
  logarithmic: boolean;
1433
1481
  opacities: Float32Array;
@@ -1483,6 +1531,18 @@ export class TerrainMaterial {
1483
1531
  [Symbol.dispose](): void;
1484
1532
  get castShadow(): boolean | undefined;
1485
1533
  set castShadow(value: boolean | null | undefined);
1534
+ /**
1535
+ * Applies the lighting equation to the color output. When `false` the
1536
+ * material outputs plain albedo (for deferred lighting) while normals and
1537
+ * the shadow G-buffer keep being written.
1538
+ */
1539
+ get lit(): boolean | undefined;
1540
+ /**
1541
+ * Applies the lighting equation to the color output. When `false` the
1542
+ * material outputs plain albedo (for deferred lighting) while normals and
1543
+ * the shadow G-buffer keep being written.
1544
+ */
1545
+ set lit(value: boolean | null | undefined);
1486
1546
  get receiveShadow(): boolean | undefined;
1487
1547
  set receiveShadow(value: boolean | null | undefined);
1488
1548
  get showBoundingBox(): boolean | undefined;
@@ -2073,6 +2133,7 @@ export interface InitOutput {
2073
2133
  readonly __wbg_get_modelmaterial_emissiveIntensity: (a: number) => number;
2074
2134
  readonly __wbg_get_modelmaterial_height: (a: number) => number;
2075
2135
  readonly __wbg_get_modelmaterial_ior: (a: number) => number;
2136
+ readonly __wbg_get_modelmaterial_lit: (a: number) => number;
2076
2137
  readonly __wbg_get_modelmaterial_maxSse: (a: number) => number;
2077
2138
  readonly __wbg_get_modelmaterial_metalness: (a: number) => number;
2078
2139
  readonly __wbg_get_modelmaterial_normals: (a: number) => number;
@@ -2109,6 +2170,7 @@ export interface InitOutput {
2109
2170
  readonly __wbg_get_polygonmaterial_extrudedHeight: (a: number) => number;
2110
2171
  readonly __wbg_get_polygonmaterial_height: (a: number) => number;
2111
2172
  readonly __wbg_get_polygonmaterial_ior: (a: number) => number;
2173
+ readonly __wbg_get_polygonmaterial_lit: (a: number) => number;
2112
2174
  readonly __wbg_get_polygonmaterial_opacity: (a: number) => number;
2113
2175
  readonly __wbg_get_polygonmaterial_outline: (a: number) => number;
2114
2176
  readonly __wbg_get_polygonmaterial_outlineColor: (a: number) => number;
@@ -2135,6 +2197,7 @@ export interface InitOutput {
2135
2197
  readonly __wbg_get_polylinematerial_depthWrite: (a: number) => number;
2136
2198
  readonly __wbg_get_polylinematerial_effectIds: (a: number) => [number, number];
2137
2199
  readonly __wbg_get_polylinematerial_emissiveColor: (a: number) => number;
2200
+ readonly __wbg_get_polylinematerial_lit: (a: number) => number;
2138
2201
  readonly __wbg_get_polylinematerial_opacity: (a: number) => number;
2139
2202
  readonly __wbg_get_polylinematerial_receiveShadow: (a: number) => number;
2140
2203
  readonly __wbg_get_polylinematerial_show: (a: number) => number;
@@ -2158,6 +2221,7 @@ export interface InitOutput {
2158
2221
  readonly __wbg_get_rastertileinternalmaterial_isElevationHeatmaps: (a: number) => [number, number];
2159
2222
  readonly __wbg_get_rastertileinternalmaterial_isHillshades: (a: number) => [number, number];
2160
2223
  readonly __wbg_get_rastertileinternalmaterial_layerReproject: (a: number) => [number, number];
2224
+ readonly __wbg_get_rastertileinternalmaterial_lit: (a: number) => number;
2161
2225
  readonly __wbg_get_rastertileinternalmaterial_logBoundary: (a: number) => number;
2162
2226
  readonly __wbg_get_rastertileinternalmaterial_logarithmic: (a: number) => number;
2163
2227
  readonly __wbg_get_rastertileinternalmaterial_opacities: (a: number) => [number, number];
@@ -2167,6 +2231,7 @@ export interface InitOutput {
2167
2231
  readonly __wbg_get_rastertileinternalmaterial_terrainLatRange: (a: number) => [number, number];
2168
2232
  readonly __wbg_get_returnedconstructedterrainmesh_rtc_translation: (a: number) => number;
2169
2233
  readonly __wbg_get_terrainmaterial_castShadow: (a: number) => number;
2234
+ readonly __wbg_get_terrainmaterial_lit: (a: number) => number;
2170
2235
  readonly __wbg_get_terrainmaterial_receiveShadow: (a: number) => number;
2171
2236
  readonly __wbg_get_terrainmaterial_show: (a: number) => number;
2172
2237
  readonly __wbg_get_terrainmaterial_showBoundingBox: (a: number) => number;
@@ -2297,6 +2362,7 @@ export interface InitOutput {
2297
2362
  readonly __wbg_set_modelmaterial_emissiveIntensity: (a: number, b: number) => void;
2298
2363
  readonly __wbg_set_modelmaterial_height: (a: number, b: number) => void;
2299
2364
  readonly __wbg_set_modelmaterial_ior: (a: number, b: number) => void;
2365
+ readonly __wbg_set_modelmaterial_lit: (a: number, b: number) => void;
2300
2366
  readonly __wbg_set_modelmaterial_maxSse: (a: number, b: number) => void;
2301
2367
  readonly __wbg_set_modelmaterial_metalness: (a: number, b: number) => void;
2302
2368
  readonly __wbg_set_modelmaterial_normals: (a: number, b: number) => void;
@@ -2333,6 +2399,7 @@ export interface InitOutput {
2333
2399
  readonly __wbg_set_polygonmaterial_extrudedHeight: (a: number, b: number) => void;
2334
2400
  readonly __wbg_set_polygonmaterial_height: (a: number, b: number) => void;
2335
2401
  readonly __wbg_set_polygonmaterial_ior: (a: number, b: number) => void;
2402
+ readonly __wbg_set_polygonmaterial_lit: (a: number, b: number) => void;
2336
2403
  readonly __wbg_set_polygonmaterial_opacity: (a: number, b: number) => void;
2337
2404
  readonly __wbg_set_polygonmaterial_outline: (a: number, b: number) => void;
2338
2405
  readonly __wbg_set_polygonmaterial_outlineColor: (a: number, b: number) => void;
@@ -2359,6 +2426,7 @@ export interface InitOutput {
2359
2426
  readonly __wbg_set_polylinematerial_depthWrite: (a: number, b: number) => void;
2360
2427
  readonly __wbg_set_polylinematerial_effectIds: (a: number, b: number, c: number) => void;
2361
2428
  readonly __wbg_set_polylinematerial_emissiveColor: (a: number, b: number) => void;
2429
+ readonly __wbg_set_polylinematerial_lit: (a: number, b: number) => void;
2362
2430
  readonly __wbg_set_polylinematerial_opacity: (a: number, b: number) => void;
2363
2431
  readonly __wbg_set_polylinematerial_receiveShadow: (a: number, b: number) => void;
2364
2432
  readonly __wbg_set_polylinematerial_show: (a: number, b: number) => void;
@@ -2382,6 +2450,7 @@ export interface InitOutput {
2382
2450
  readonly __wbg_set_rastertileinternalmaterial_isElevationHeatmaps: (a: number, b: number, c: number) => void;
2383
2451
  readonly __wbg_set_rastertileinternalmaterial_isHillshades: (a: number, b: number, c: number) => void;
2384
2452
  readonly __wbg_set_rastertileinternalmaterial_layerReproject: (a: number, b: number, c: number) => void;
2453
+ readonly __wbg_set_rastertileinternalmaterial_lit: (a: number, b: number) => void;
2385
2454
  readonly __wbg_set_rastertileinternalmaterial_logBoundary: (a: number, b: number) => void;
2386
2455
  readonly __wbg_set_rastertileinternalmaterial_logarithmic: (a: number, b: number) => void;
2387
2456
  readonly __wbg_set_rastertileinternalmaterial_opacities: (a: number, b: number, c: number) => void;
@@ -2390,6 +2459,7 @@ export interface InitOutput {
2390
2459
  readonly __wbg_set_rastertileinternalmaterial_shows: (a: number, b: number, c: number) => void;
2391
2460
  readonly __wbg_set_rastertileinternalmaterial_terrainLatRange: (a: number, b: number, c: number) => void;
2392
2461
  readonly __wbg_set_terrainmaterial_castShadow: (a: number, b: number) => void;
2462
+ readonly __wbg_set_terrainmaterial_lit: (a: number, b: number) => void;
2393
2463
  readonly __wbg_set_terrainmaterial_receiveShadow: (a: number, b: number) => void;
2394
2464
  readonly __wbg_set_terrainmaterial_show: (a: number, b: number) => void;
2395
2465
  readonly __wbg_set_terrainmaterial_showBoundingBox: (a: number, b: number) => void;
@@ -2751,6 +2751,16 @@ export class ModelMaterial {
2751
2751
  const ret = wasm.__wbg_get_modelmaterial_ior(this.__wbg_ptr);
2752
2752
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
2753
2753
  }
2754
+ /**
2755
+ * Applies the lighting equation to the color output. When `false` the
2756
+ * material outputs plain albedo (for deferred lighting) while normals and
2757
+ * the shadow G-buffer keep being written.
2758
+ * @returns {boolean | undefined}
2759
+ */
2760
+ get lit() {
2761
+ const ret = wasm.__wbg_get_modelmaterial_lit(this.__wbg_ptr);
2762
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
2763
+ }
2754
2764
  /**
2755
2765
  * @returns {number | undefined}
2756
2766
  */
@@ -3000,6 +3010,15 @@ export class ModelMaterial {
3000
3010
  set ior(arg0) {
3001
3011
  wasm.__wbg_set_modelmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
3002
3012
  }
3013
+ /**
3014
+ * Applies the lighting equation to the color output. When `false` the
3015
+ * material outputs plain albedo (for deferred lighting) while normals and
3016
+ * the shadow G-buffer keep being written.
3017
+ * @param {boolean | null} [arg0]
3018
+ */
3019
+ set lit(arg0) {
3020
+ wasm.__wbg_set_modelmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
3021
+ }
3003
3022
  /**
3004
3023
  * @param {number | null} [arg0]
3005
3024
  */
@@ -3869,6 +3888,16 @@ export class PolygonMaterial {
3869
3888
  const ret = wasm.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);
3870
3889
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
3871
3890
  }
3891
+ /**
3892
+ * Applies the lighting equation to the color output. When `false` the
3893
+ * material outputs plain albedo (for deferred lighting) while normals and
3894
+ * the shadow G-buffer keep being written.
3895
+ * @returns {boolean | undefined}
3896
+ */
3897
+ get lit() {
3898
+ const ret = wasm.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);
3899
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
3900
+ }
3872
3901
  /**
3873
3902
  * Need to enable `transparent`.
3874
3903
  * @returns {number | undefined}
@@ -4131,6 +4160,15 @@ export class PolygonMaterial {
4131
4160
  set ior(arg0) {
4132
4161
  wasm.__wbg_set_polygonmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
4133
4162
  }
4163
+ /**
4164
+ * Applies the lighting equation to the color output. When `false` the
4165
+ * material outputs plain albedo (for deferred lighting) while normals and
4166
+ * the shadow G-buffer keep being written.
4167
+ * @param {boolean | null} [arg0]
4168
+ */
4169
+ set lit(arg0) {
4170
+ wasm.__wbg_set_polygonmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
4171
+ }
4134
4172
  /**
4135
4173
  * Need to enable `transparent`.
4136
4174
  * @param {number | null} [arg0]
@@ -4822,6 +4860,16 @@ export class PolylineMaterial {
4822
4860
  const ret = wasm.__wbg_get_polylinematerial_height(this.__wbg_ptr);
4823
4861
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
4824
4862
  }
4863
+ /**
4864
+ * Applies the lighting equation to the color output. When `false` the
4865
+ * material outputs plain albedo (for deferred lighting) while normals and
4866
+ * the shadow G-buffer keep being written.
4867
+ * @returns {boolean | undefined}
4868
+ */
4869
+ get lit() {
4870
+ const ret = wasm.__wbg_get_polylinematerial_lit(this.__wbg_ptr);
4871
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
4872
+ }
4825
4873
  /**
4826
4874
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
4827
4875
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -4968,6 +5016,15 @@ export class PolylineMaterial {
4968
5016
  set height(arg0) {
4969
5017
  wasm.__wbg_set_polylinematerial_height(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
4970
5018
  }
5019
+ /**
5020
+ * Applies the lighting equation to the color output. When `false` the
5021
+ * material outputs plain albedo (for deferred lighting) while normals and
5022
+ * the shadow G-buffer keep being written.
5023
+ * @param {boolean | null} [arg0]
5024
+ */
5025
+ set lit(arg0) {
5026
+ wasm.__wbg_set_polylinematerial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5027
+ }
4971
5028
  /**
4972
5029
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
4973
5030
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -5280,6 +5337,16 @@ export class RasterTileInternalMaterial {
5280
5337
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5281
5338
  return v1;
5282
5339
  }
5340
+ /**
5341
+ * Applies the lighting equation to the color output. When `false` the
5342
+ * material outputs plain albedo (for deferred lighting) while normals and
5343
+ * the shadow G-buffer keep being written.
5344
+ * @returns {boolean | undefined}
5345
+ */
5346
+ get lit() {
5347
+ const ret = wasm.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);
5348
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
5349
+ }
5283
5350
  /**
5284
5351
  * @returns {number}
5285
5352
  */
@@ -5508,6 +5575,15 @@ export class RasterTileInternalMaterial {
5508
5575
  const len0 = WASM_VECTOR_LEN;
5509
5576
  wasm.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr, ptr0, len0);
5510
5577
  }
5578
+ /**
5579
+ * Applies the lighting equation to the color output. When `false` the
5580
+ * material outputs plain albedo (for deferred lighting) while normals and
5581
+ * the shadow G-buffer keep being written.
5582
+ * @param {boolean | null} [arg0]
5583
+ */
5584
+ set lit(arg0) {
5585
+ wasm.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5586
+ }
5511
5587
  /**
5512
5588
  * @param {number} arg0
5513
5589
  */
@@ -5826,6 +5902,16 @@ export class TerrainMaterial {
5826
5902
  const ret = wasm.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);
5827
5903
  return ret === 0xFFFFFF ? undefined : ret !== 0;
5828
5904
  }
5905
+ /**
5906
+ * Applies the lighting equation to the color output. When `false` the
5907
+ * material outputs plain albedo (for deferred lighting) while normals and
5908
+ * the shadow G-buffer keep being written.
5909
+ * @returns {boolean | undefined}
5910
+ */
5911
+ get lit() {
5912
+ const ret = wasm.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);
5913
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
5914
+ }
5829
5915
  /**
5830
5916
  * @returns {boolean | undefined}
5831
5917
  */
@@ -5871,6 +5957,15 @@ export class TerrainMaterial {
5871
5957
  set castShadow(arg0) {
5872
5958
  wasm.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5873
5959
  }
5960
+ /**
5961
+ * Applies the lighting equation to the color output. When `false` the
5962
+ * material outputs plain albedo (for deferred lighting) while normals and
5963
+ * the shadow G-buffer keep being written.
5964
+ * @param {boolean | null} [arg0]
5965
+ */
5966
+ set lit(arg0) {
5967
+ wasm.__wbg_set_terrainmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5968
+ }
5874
5969
  /**
5875
5970
  * @param {boolean | null} [arg0]
5876
5971
  */
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@navaramap/engine-worker",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",