@navaramap/engine-api 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;
@@ -2100,6 +2160,7 @@ export interface InitOutput {
2100
2160
  readonly __wbg_get_modelmaterial_emissiveIntensity: (a: number) => number;
2101
2161
  readonly __wbg_get_modelmaterial_height: (a: number) => number;
2102
2162
  readonly __wbg_get_modelmaterial_ior: (a: number) => number;
2163
+ readonly __wbg_get_modelmaterial_lit: (a: number) => number;
2103
2164
  readonly __wbg_get_modelmaterial_maxSse: (a: number) => number;
2104
2165
  readonly __wbg_get_modelmaterial_metalness: (a: number) => number;
2105
2166
  readonly __wbg_get_modelmaterial_normals: (a: number) => number;
@@ -2136,6 +2197,7 @@ export interface InitOutput {
2136
2197
  readonly __wbg_get_polygonmaterial_extrudedHeight: (a: number) => number;
2137
2198
  readonly __wbg_get_polygonmaterial_height: (a: number) => number;
2138
2199
  readonly __wbg_get_polygonmaterial_ior: (a: number) => number;
2200
+ readonly __wbg_get_polygonmaterial_lit: (a: number) => number;
2139
2201
  readonly __wbg_get_polygonmaterial_opacity: (a: number) => number;
2140
2202
  readonly __wbg_get_polygonmaterial_outline: (a: number) => number;
2141
2203
  readonly __wbg_get_polygonmaterial_outlineColor: (a: number) => number;
@@ -2162,6 +2224,7 @@ export interface InitOutput {
2162
2224
  readonly __wbg_get_polylinematerial_depthWrite: (a: number) => number;
2163
2225
  readonly __wbg_get_polylinematerial_effectIds: (a: number) => [number, number];
2164
2226
  readonly __wbg_get_polylinematerial_emissiveColor: (a: number) => number;
2227
+ readonly __wbg_get_polylinematerial_lit: (a: number) => number;
2165
2228
  readonly __wbg_get_polylinematerial_opacity: (a: number) => number;
2166
2229
  readonly __wbg_get_polylinematerial_receiveShadow: (a: number) => number;
2167
2230
  readonly __wbg_get_polylinematerial_show: (a: number) => number;
@@ -2185,6 +2248,7 @@ export interface InitOutput {
2185
2248
  readonly __wbg_get_rastertileinternalmaterial_isElevationHeatmaps: (a: number) => [number, number];
2186
2249
  readonly __wbg_get_rastertileinternalmaterial_isHillshades: (a: number) => [number, number];
2187
2250
  readonly __wbg_get_rastertileinternalmaterial_layerReproject: (a: number) => [number, number];
2251
+ readonly __wbg_get_rastertileinternalmaterial_lit: (a: number) => number;
2188
2252
  readonly __wbg_get_rastertileinternalmaterial_logBoundary: (a: number) => number;
2189
2253
  readonly __wbg_get_rastertileinternalmaterial_logarithmic: (a: number) => number;
2190
2254
  readonly __wbg_get_rastertileinternalmaterial_opacities: (a: number) => [number, number];
@@ -2194,6 +2258,7 @@ export interface InitOutput {
2194
2258
  readonly __wbg_get_rastertileinternalmaterial_terrainLatRange: (a: number) => [number, number];
2195
2259
  readonly __wbg_get_returnedconstructedterrainmesh_rtc_translation: (a: number) => number;
2196
2260
  readonly __wbg_get_terrainmaterial_castShadow: (a: number) => number;
2261
+ readonly __wbg_get_terrainmaterial_lit: (a: number) => number;
2197
2262
  readonly __wbg_get_terrainmaterial_receiveShadow: (a: number) => number;
2198
2263
  readonly __wbg_get_terrainmaterial_show: (a: number) => number;
2199
2264
  readonly __wbg_get_terrainmaterial_showBoundingBox: (a: number) => number;
@@ -2324,6 +2389,7 @@ export interface InitOutput {
2324
2389
  readonly __wbg_set_modelmaterial_emissiveIntensity: (a: number, b: number) => void;
2325
2390
  readonly __wbg_set_modelmaterial_height: (a: number, b: number) => void;
2326
2391
  readonly __wbg_set_modelmaterial_ior: (a: number, b: number) => void;
2392
+ readonly __wbg_set_modelmaterial_lit: (a: number, b: number) => void;
2327
2393
  readonly __wbg_set_modelmaterial_maxSse: (a: number, b: number) => void;
2328
2394
  readonly __wbg_set_modelmaterial_metalness: (a: number, b: number) => void;
2329
2395
  readonly __wbg_set_modelmaterial_normals: (a: number, b: number) => void;
@@ -2360,6 +2426,7 @@ export interface InitOutput {
2360
2426
  readonly __wbg_set_polygonmaterial_extrudedHeight: (a: number, b: number) => void;
2361
2427
  readonly __wbg_set_polygonmaterial_height: (a: number, b: number) => void;
2362
2428
  readonly __wbg_set_polygonmaterial_ior: (a: number, b: number) => void;
2429
+ readonly __wbg_set_polygonmaterial_lit: (a: number, b: number) => void;
2363
2430
  readonly __wbg_set_polygonmaterial_opacity: (a: number, b: number) => void;
2364
2431
  readonly __wbg_set_polygonmaterial_outline: (a: number, b: number) => void;
2365
2432
  readonly __wbg_set_polygonmaterial_outlineColor: (a: number, b: number) => void;
@@ -2386,6 +2453,7 @@ export interface InitOutput {
2386
2453
  readonly __wbg_set_polylinematerial_depthWrite: (a: number, b: number) => void;
2387
2454
  readonly __wbg_set_polylinematerial_effectIds: (a: number, b: number, c: number) => void;
2388
2455
  readonly __wbg_set_polylinematerial_emissiveColor: (a: number, b: number) => void;
2456
+ readonly __wbg_set_polylinematerial_lit: (a: number, b: number) => void;
2389
2457
  readonly __wbg_set_polylinematerial_opacity: (a: number, b: number) => void;
2390
2458
  readonly __wbg_set_polylinematerial_receiveShadow: (a: number, b: number) => void;
2391
2459
  readonly __wbg_set_polylinematerial_show: (a: number, b: number) => void;
@@ -2409,6 +2477,7 @@ export interface InitOutput {
2409
2477
  readonly __wbg_set_rastertileinternalmaterial_isElevationHeatmaps: (a: number, b: number, c: number) => void;
2410
2478
  readonly __wbg_set_rastertileinternalmaterial_isHillshades: (a: number, b: number, c: number) => void;
2411
2479
  readonly __wbg_set_rastertileinternalmaterial_layerReproject: (a: number, b: number, c: number) => void;
2480
+ readonly __wbg_set_rastertileinternalmaterial_lit: (a: number, b: number) => void;
2412
2481
  readonly __wbg_set_rastertileinternalmaterial_logBoundary: (a: number, b: number) => void;
2413
2482
  readonly __wbg_set_rastertileinternalmaterial_logarithmic: (a: number, b: number) => void;
2414
2483
  readonly __wbg_set_rastertileinternalmaterial_opacities: (a: number, b: number, c: number) => void;
@@ -2417,6 +2486,7 @@ export interface InitOutput {
2417
2486
  readonly __wbg_set_rastertileinternalmaterial_shows: (a: number, b: number, c: number) => void;
2418
2487
  readonly __wbg_set_rastertileinternalmaterial_terrainLatRange: (a: number, b: number, c: number) => void;
2419
2488
  readonly __wbg_set_terrainmaterial_castShadow: (a: number, b: number) => void;
2489
+ readonly __wbg_set_terrainmaterial_lit: (a: number, b: number) => void;
2420
2490
  readonly __wbg_set_terrainmaterial_receiveShadow: (a: number, b: number) => void;
2421
2491
  readonly __wbg_set_terrainmaterial_show: (a: number, b: number) => void;
2422
2492
  readonly __wbg_set_terrainmaterial_showBoundingBox: (a: number, b: number) => void;
@@ -2739,6 +2739,16 @@ export class ModelMaterial {
2739
2739
  const ret = wasm.__wbg_get_modelmaterial_ior(this.__wbg_ptr);
2740
2740
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
2741
2741
  }
2742
+ /**
2743
+ * Applies the lighting equation to the color output. When `false` the
2744
+ * material outputs plain albedo (for deferred lighting) while normals and
2745
+ * the shadow G-buffer keep being written.
2746
+ * @returns {boolean | undefined}
2747
+ */
2748
+ get lit() {
2749
+ const ret = wasm.__wbg_get_modelmaterial_lit(this.__wbg_ptr);
2750
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
2751
+ }
2742
2752
  /**
2743
2753
  * @returns {number | undefined}
2744
2754
  */
@@ -2988,6 +2998,15 @@ export class ModelMaterial {
2988
2998
  set ior(arg0) {
2989
2999
  wasm.__wbg_set_modelmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
2990
3000
  }
3001
+ /**
3002
+ * Applies the lighting equation to the color output. When `false` the
3003
+ * material outputs plain albedo (for deferred lighting) while normals and
3004
+ * the shadow G-buffer keep being written.
3005
+ * @param {boolean | null} [arg0]
3006
+ */
3007
+ set lit(arg0) {
3008
+ wasm.__wbg_set_modelmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
3009
+ }
2991
3010
  /**
2992
3011
  * @param {number | null} [arg0]
2993
3012
  */
@@ -3863,6 +3882,16 @@ export class PolygonMaterial {
3863
3882
  const ret = wasm.__wbg_get_polygonmaterial_ior(this.__wbg_ptr);
3864
3883
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
3865
3884
  }
3885
+ /**
3886
+ * Applies the lighting equation to the color output. When `false` the
3887
+ * material outputs plain albedo (for deferred lighting) while normals and
3888
+ * the shadow G-buffer keep being written.
3889
+ * @returns {boolean | undefined}
3890
+ */
3891
+ get lit() {
3892
+ const ret = wasm.__wbg_get_polygonmaterial_lit(this.__wbg_ptr);
3893
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
3894
+ }
3866
3895
  /**
3867
3896
  * Need to enable `transparent`.
3868
3897
  * @returns {number | undefined}
@@ -4125,6 +4154,15 @@ export class PolygonMaterial {
4125
4154
  set ior(arg0) {
4126
4155
  wasm.__wbg_set_polygonmaterial_ior(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
4127
4156
  }
4157
+ /**
4158
+ * Applies the lighting equation to the color output. When `false` the
4159
+ * material outputs plain albedo (for deferred lighting) while normals and
4160
+ * the shadow G-buffer keep being written.
4161
+ * @param {boolean | null} [arg0]
4162
+ */
4163
+ set lit(arg0) {
4164
+ wasm.__wbg_set_polygonmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
4165
+ }
4128
4166
  /**
4129
4167
  * Need to enable `transparent`.
4130
4168
  * @param {number | null} [arg0]
@@ -4816,6 +4854,16 @@ export class PolylineMaterial {
4816
4854
  const ret = wasm.__wbg_get_polylinematerial_height(this.__wbg_ptr);
4817
4855
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
4818
4856
  }
4857
+ /**
4858
+ * Applies the lighting equation to the color output. When `false` the
4859
+ * material outputs plain albedo (for deferred lighting) while normals and
4860
+ * the shadow G-buffer keep being written.
4861
+ * @returns {boolean | undefined}
4862
+ */
4863
+ get lit() {
4864
+ const ret = wasm.__wbg_get_polylinematerial_lit(this.__wbg_ptr);
4865
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
4866
+ }
4819
4867
  /**
4820
4868
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
4821
4869
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -4962,6 +5010,15 @@ export class PolylineMaterial {
4962
5010
  set height(arg0) {
4963
5011
  wasm.__wbg_set_polylinematerial_height(this.__wbg_ptr, isLikeNone(arg0) ? Number.MAX_SAFE_INTEGER : Math.fround(arg0));
4964
5012
  }
5013
+ /**
5014
+ * Applies the lighting equation to the color output. When `false` the
5015
+ * material outputs plain albedo (for deferred lighting) while normals and
5016
+ * the shadow G-buffer keep being written.
5017
+ * @param {boolean | null} [arg0]
5018
+ */
5019
+ set lit(arg0) {
5020
+ wasm.__wbg_set_polylinematerial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5021
+ }
4965
5022
  /**
4966
5023
  * Maximum line width in pixels, clamping the rendered width regardless of zoom level.
4967
5024
  * Smaller values are cheaper to render as they reduce fragment shader overdraw.
@@ -5274,6 +5331,16 @@ export class RasterTileInternalMaterial {
5274
5331
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
5275
5332
  return v1;
5276
5333
  }
5334
+ /**
5335
+ * Applies the lighting equation to the color output. When `false` the
5336
+ * material outputs plain albedo (for deferred lighting) while normals and
5337
+ * the shadow G-buffer keep being written.
5338
+ * @returns {boolean | undefined}
5339
+ */
5340
+ get lit() {
5341
+ const ret = wasm.__wbg_get_rastertileinternalmaterial_lit(this.__wbg_ptr);
5342
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
5343
+ }
5277
5344
  /**
5278
5345
  * @returns {number}
5279
5346
  */
@@ -5502,6 +5569,15 @@ export class RasterTileInternalMaterial {
5502
5569
  const len0 = WASM_VECTOR_LEN;
5503
5570
  wasm.__wbg_set_rastertileinternalmaterial_layerReproject(this.__wbg_ptr, ptr0, len0);
5504
5571
  }
5572
+ /**
5573
+ * Applies the lighting equation to the color output. When `false` the
5574
+ * material outputs plain albedo (for deferred lighting) while normals and
5575
+ * the shadow G-buffer keep being written.
5576
+ * @param {boolean | null} [arg0]
5577
+ */
5578
+ set lit(arg0) {
5579
+ wasm.__wbg_set_rastertileinternalmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5580
+ }
5505
5581
  /**
5506
5582
  * @param {number} arg0
5507
5583
  */
@@ -5820,6 +5896,16 @@ export class TerrainMaterial {
5820
5896
  const ret = wasm.__wbg_get_terrainmaterial_castShadow(this.__wbg_ptr);
5821
5897
  return ret === 0xFFFFFF ? undefined : ret !== 0;
5822
5898
  }
5899
+ /**
5900
+ * Applies the lighting equation to the color output. When `false` the
5901
+ * material outputs plain albedo (for deferred lighting) while normals and
5902
+ * the shadow G-buffer keep being written.
5903
+ * @returns {boolean | undefined}
5904
+ */
5905
+ get lit() {
5906
+ const ret = wasm.__wbg_get_terrainmaterial_lit(this.__wbg_ptr);
5907
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
5908
+ }
5823
5909
  /**
5824
5910
  * @returns {boolean | undefined}
5825
5911
  */
@@ -5865,6 +5951,15 @@ export class TerrainMaterial {
5865
5951
  set castShadow(arg0) {
5866
5952
  wasm.__wbg_set_terrainmaterial_castShadow(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5867
5953
  }
5954
+ /**
5955
+ * Applies the lighting equation to the color output. When `false` the
5956
+ * material outputs plain albedo (for deferred lighting) while normals and
5957
+ * the shadow G-buffer keep being written.
5958
+ * @param {boolean | null} [arg0]
5959
+ */
5960
+ set lit(arg0) {
5961
+ wasm.__wbg_set_terrainmaterial_lit(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
5962
+ }
5868
5963
  /**
5869
5964
  * @param {boolean | null} [arg0]
5870
5965
  */
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@navaramap/engine-api",
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",