@dcl/playground-assets 7.31.1-41508430758.commit-0af8af0 → 7.32.1-41669733463.commit-b1b1d79

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.
@@ -1439,6 +1439,44 @@ export declare type Color4Type = {
1439
1439
  a: number;
1440
1440
  };
1441
1441
 
1442
+ /**
1443
+ * Piecewise-linear, with keys interpolated in ascending order of `time`. Positions before the first key
1444
+ * or after the last key take that key's color. No keys means the gradient is unset.
1445
+ * If two keys have the same `time`, then the gradient keeps the key that comes later in `keys`.
1446
+ */
1447
+ /**
1448
+ * @public
1449
+ */
1450
+ export declare interface ColorGradient {
1451
+ keys: ColorKey[];
1452
+ }
1453
+
1454
+ /**
1455
+ * @public
1456
+ */
1457
+ export declare namespace ColorGradient {
1458
+ export function encode(message: ColorGradient, writer?: _m0.Writer): _m0.Writer;
1459
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorGradient;
1460
+ }
1461
+
1462
+ /**
1463
+ * @public
1464
+ */
1465
+ export declare interface ColorKey {
1466
+ /** position along the gradient, from 0 to 1. Values outside that range clamp to it */
1467
+ time: number;
1468
+ /** linear color. Values above 1 are allowed (HDR) */
1469
+ color: PBColor4 | undefined;
1470
+ }
1471
+
1472
+ /**
1473
+ * @public
1474
+ */
1475
+ export declare namespace ColorKey {
1476
+ export function encode(message: ColorKey, writer?: _m0.Writer): _m0.Writer;
1477
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ColorKey;
1478
+ }
1479
+
1442
1480
  /** A range of Color4 values. Randomized or lerped between start and end. */
1443
1481
  /**
1444
1482
  * @public
@@ -1505,6 +1543,7 @@ export declare const componentDefinitionByName: {
1505
1543
  "core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
1506
1544
  "core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
1507
1545
  "core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
1546
+ "core::EnvironmentFog": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>>;
1508
1547
  "core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
1509
1548
  "core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
1510
1549
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
@@ -1528,7 +1567,9 @@ export declare const componentDefinitionByName: {
1528
1567
  "core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
1529
1568
  "core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
1530
1569
  "core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
1570
+ "core::Skybox": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkybox>>;
1531
1571
  "core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
1572
+ "core::Sun": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSun>>;
1532
1573
  "core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
1533
1574
  "core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
1534
1575
  "core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
@@ -2222,6 +2263,9 @@ export declare namespace EntityUtils {
2222
2263
  export function toEntityId(entityNumber: number, entityVersion: number): Entity;
2223
2264
  }
2224
2265
 
2266
+ /** @public */
2267
+ export declare const EnvironmentFog: LastWriteWinElementSetComponentDefinition<PBEnvironmentFog>;
2268
+
2225
2269
  /**
2226
2270
  * Constant used to define the minimal number value in Babylon.js
2227
2271
  * @public
@@ -5343,6 +5387,34 @@ export declare namespace PBEngineInfo {
5343
5387
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEngineInfo;
5344
5388
  }
5345
5389
 
5390
+ /**
5391
+ * PBEnvironmentFog overrides the environment fog while the player is inside the scene.
5392
+ * Valid only on the scene root entity (`engine.RootEntity`).
5393
+ *
5394
+ * An unset field keeps the time-of-day default.
5395
+ * Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
5396
+ * Gradients do not wrap around midnight.
5397
+ * A scene cannot turn fog on or off. That is a user quality setting.
5398
+ *
5399
+ * While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
5400
+ */
5401
+ /**
5402
+ * @public
5403
+ */
5404
+ export declare interface PBEnvironmentFog {
5405
+ color?: ColorGradient | undefined;
5406
+ /** default = 0.0005, per meter: fog = 1 - e^(-density * distance). Negative values clamp to 0 */
5407
+ density?: number | undefined;
5408
+ }
5409
+
5410
+ /**
5411
+ * @public
5412
+ */
5413
+ export declare namespace PBEnvironmentFog {
5414
+ export function encode(message: PBEnvironmentFog, writer?: _m0.Writer): _m0.Writer;
5415
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBEnvironmentFog;
5416
+ }
5417
+
5346
5418
  /**
5347
5419
  * Grow-only value set appended to the scene root entity.
5348
5420
  * Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
@@ -6700,6 +6772,105 @@ export declare namespace PBRealmInfo {
6700
6772
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBRealmInfo;
6701
6773
  }
6702
6774
 
6775
+ /**
6776
+ * PBSkybox overrides the visible sky while the player is inside the scene.
6777
+ * Valid only on the scene root entity (`engine.RootEntity`).
6778
+ *
6779
+ * An unset field keeps the time-of-day default.
6780
+ * Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
6781
+ * Gradients do not wrap around midnight.
6782
+ * The sun is controlled by `PBSun` and the fog by `PBEnvironmentFog`.
6783
+ *
6784
+ * While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
6785
+ */
6786
+ /**
6787
+ * @public
6788
+ */
6789
+ export declare interface PBSkybox {
6790
+ /**
6791
+ * Replaces the visible sky with an image, given as its source path with the same rules as `Texture.src`.
6792
+ * It must be an equirectangular (latitude-longitude) image with a 2:1 aspect ratio:
6793
+ * the image centre faces +Z, the top row is the zenith and the bottom row the nadir.
6794
+ * Cube cross, 3x2 and six-face layouts are not supported.
6795
+ * The sun, the fog and the ambient lighting do not change: the ambient still follows `sky_colors`.
6796
+ */
6797
+ skyboxTexture?: string | undefined;
6798
+ /**
6799
+ * Procedural sky colors. They also drive the ambient lighting, also while `skybox_texture` is set.
6800
+ * While `skybox_texture` is set they no longer color the visible sky.
6801
+ */
6802
+ skyColors?: PBSkybox_SkyColors | undefined;
6803
+ /** Ignored while `skybox_texture` is set. */
6804
+ clouds?: PBSkybox_Clouds | undefined;
6805
+ /** Ignored while `skybox_texture` is set. */
6806
+ stars?: PBSkybox_Stars | undefined;
6807
+ }
6808
+
6809
+ /**
6810
+ * @public
6811
+ */
6812
+ export declare namespace PBSkybox {
6813
+ export function encode(message: PBSkybox, writer?: _m0.Writer): _m0.Writer;
6814
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox;
6815
+ }
6816
+
6817
+ /**
6818
+ * @public
6819
+ */
6820
+ export declare interface PBSkybox_Clouds {
6821
+ /** default = 1, from 0 to 1 */
6822
+ opacity?: number | undefined;
6823
+ /** default = 0.01, in radians per second around the sky axis (0.01 is one turn every ~10 minutes). 0 = static, negative reverses the direction */
6824
+ speed?: number | undefined;
6825
+ color?: ColorGradient | undefined;
6826
+ }
6827
+
6828
+ /**
6829
+ * @public
6830
+ */
6831
+ export declare namespace PBSkybox_Clouds {
6832
+ export function encode(message: PBSkybox_Clouds, writer?: _m0.Writer): _m0.Writer;
6833
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Clouds;
6834
+ }
6835
+
6836
+ /**
6837
+ * @public
6838
+ */
6839
+ export declare interface PBSkybox_SkyColors {
6840
+ /** the sky straight up */
6841
+ zenith?: ColorGradient | undefined;
6842
+ /** the broad band of sky around the horizon */
6843
+ horizon?: ColorGradient | undefined;
6844
+ /** The sky below the horizon, visible wherever no terrain covers it (landscape disabled, high altitude). */
6845
+ nadir?: ColorGradient | undefined;
6846
+ /** Narrow glow right on the horizon line, like a sunset glow. Unset = follows `horizon` when that is set. */
6847
+ rim?: ColorGradient | undefined;
6848
+ }
6849
+
6850
+ /**
6851
+ * @public
6852
+ */
6853
+ export declare namespace PBSkybox_SkyColors {
6854
+ export function encode(message: PBSkybox_SkyColors, writer?: _m0.Writer): _m0.Writer;
6855
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_SkyColors;
6856
+ }
6857
+
6858
+ /**
6859
+ * @public
6860
+ */
6861
+ export declare interface PBSkybox_Stars {
6862
+ /** default = 4.62, multiplier on the star texture (1 = as authored, values above 1 are HDR). 0 hides the stars, negative values clamp to 0. Stars are visible only at night */
6863
+ brightness?: number | undefined;
6864
+ }
6865
+
6866
+ /**
6867
+ * @public
6868
+ */
6869
+ export declare namespace PBSkybox_Stars {
6870
+ export function encode(message: PBSkybox_Stars, writer?: _m0.Writer): _m0.Writer;
6871
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkybox_Stars;
6872
+ }
6873
+
6703
6874
  /**
6704
6875
  * The SkyboxTime component allows controlling the time of day for the skybox,
6705
6876
  * affecting the lighting and appearance of the sky in the scene.
@@ -6722,6 +6893,42 @@ export declare namespace PBSkyboxTime {
6722
6893
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSkyboxTime;
6723
6894
  }
6724
6895
 
6896
+ /**
6897
+ * PBSun overrides the directional light (sun and moon) while the player is inside the scene.
6898
+ * Valid only on the scene root entity (`engine.RootEntity`).
6899
+ *
6900
+ * An unset field keeps the time-of-day default.
6901
+ * Gradient `time` is the normalized time of day: 0 = 00:00, 0.5 = 12:00, 1 = 24:00.
6902
+ * Gradients do not wrap around midnight.
6903
+ *
6904
+ * While active, the overrides are global: they also change how neighbouring parcels look from inside the scene.
6905
+ */
6906
+ /**
6907
+ * @public
6908
+ */
6909
+ export declare interface PBSun {
6910
+ /** tints the directional light and the sun disc */
6911
+ color?: ColorGradient | undefined;
6912
+ /** default = true. false hides the sun and moon discs and the lens flare, but not their light */
6913
+ visible?: boolean | undefined;
6914
+ /** default = 1, multiplier on the renderer's time-of-day light intensity. Negative values clamp to 0 */
6915
+ intensity?: number | undefined;
6916
+ /**
6917
+ * Direction the sunlight travels, in scene space: (0,-1,0) = sun straight overhead. Normalized by the renderer.
6918
+ * Set = the sun stays fixed at every time of day; its color and intensity still follow the time of day.
6919
+ * Unset or zero = the time-of-day path.
6920
+ */
6921
+ direction?: PBVector3 | undefined;
6922
+ }
6923
+
6924
+ /**
6925
+ * @public
6926
+ */
6927
+ export declare namespace PBSun {
6928
+ export function encode(message: PBSun, writer?: _m0.Writer): _m0.Writer;
6929
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBSun;
6930
+ }
6931
+
6725
6932
  /**
6726
6933
  * The TextShape component renders customizable floating text.
6727
6934
  *
@@ -9154,6 +9361,9 @@ export declare interface SetMoveRotateScaleParams extends MoveRotateScaleModePar
9154
9361
  easingFunction?: EasingFunction;
9155
9362
  }
9156
9363
 
9364
+ /** @public */
9365
+ export declare const Skybox: LastWriteWinElementSetComponentDefinition<PBSkybox>;
9366
+
9157
9367
  /** @public */
9158
9368
  export declare const SkyboxTime: LastWriteWinElementSetComponentDefinition<PBSkyboxTime>;
9159
9369
 
@@ -9164,6 +9374,9 @@ export declare interface Spec {
9164
9374
  [key: string]: ISchema;
9165
9375
  }
9166
9376
 
9377
+ /** @public */
9378
+ export declare const Sun: LastWriteWinElementSetComponentDefinition<PBSun>;
9379
+
9167
9380
  /* Excluded from this release type: SyncComponents */
9168
9381
 
9169
9382
  /**