@dcl/playground-assets 7.7.10-14036045753.commit-8d32240 → 7.8.1-14112508710.commit-8fa2c9e

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/alpha.d.ts CHANGED
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1312
1313
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1313
1314
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1314
1315
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2667,6 +2668,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2667
2668
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2668
2669
  }
2669
2670
 
2671
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2672
+
2673
+ /**
2674
+ * @public
2675
+ */
2676
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2677
+ /**
2678
+ * LightSource helper with constructor
2679
+ */
2680
+ Type: LightSourceHelper;
2681
+ }
2682
+
2683
+ /**
2684
+ * @public
2685
+ */
2686
+ export declare interface LightSourceHelper {
2687
+ /**
2688
+ * @returns a Light Source type
2689
+ */
2690
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2691
+ /**
2692
+ * @returns a Light Source type
2693
+ */
2694
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2695
+ }
2696
+
2670
2697
  /**
2671
2698
  * User key event Listeners
2672
2699
  * @public
@@ -4542,6 +4569,85 @@ export declare namespace PBInputModifier_StandardInput {
4542
4569
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4543
4570
  }
4544
4571
 
4572
+ /**
4573
+ * @public
4574
+ */
4575
+ export declare interface PBLightSource {
4576
+ /** default = true, whether the lightSource is active or not. */
4577
+ active?: boolean | undefined;
4578
+ /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4579
+ color?: PBColor3 | undefined;
4580
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4581
+ brightness?: number | undefined;
4582
+ /** default = 10, how far the light travels, expressed in meters. */
4583
+ range?: number | undefined;
4584
+ type?: {
4585
+ $case: "point";
4586
+ point: PBLightSource_Point;
4587
+ } | {
4588
+ $case: "spot";
4589
+ spot: PBLightSource_Spot;
4590
+ } | undefined;
4591
+ }
4592
+
4593
+ /**
4594
+ * @public
4595
+ */
4596
+ export declare namespace PBLightSource {
4597
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4598
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4599
+ }
4600
+
4601
+ /**
4602
+ * @public
4603
+ */
4604
+ export declare interface PBLightSource_Point {
4605
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4606
+ shadow?: PBLightSource_ShadowType | undefined;
4607
+ }
4608
+
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare namespace PBLightSource_Point {
4613
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4614
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4615
+ }
4616
+
4617
+ /**
4618
+ * @public
4619
+ */
4620
+ export declare const enum PBLightSource_ShadowType {
4621
+ /** ST_NONE - No shadows are cast from this LightSource. */
4622
+ ST_NONE = 0,
4623
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4624
+ ST_SOFT = 1,
4625
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4626
+ ST_HARD = 2
4627
+ }
4628
+
4629
+ /**
4630
+ * @public
4631
+ */
4632
+ export declare interface PBLightSource_Spot {
4633
+ /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4634
+ innerAngle?: number | undefined;
4635
+ /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4636
+ outerAngle?: number | undefined;
4637
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4638
+ shadow?: PBLightSource_ShadowType | undefined;
4639
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4640
+ shadowMaskTexture?: TextureUnion | undefined;
4641
+ }
4642
+
4643
+ /**
4644
+ * @public
4645
+ */
4646
+ export declare namespace PBLightSource_Spot {
4647
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4648
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4649
+ }
4650
+
4545
4651
  /**
4546
4652
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4547
4653
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5672,6 +5778,7 @@ export declare namespace PBVideoPlayer {
5672
5778
  * an 'instant' transition (like using speed/time = 0)
5673
5779
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5674
5780
  * the holding entity transform).
5781
+ * * The fov defines the Field of View of the virtual camera
5675
5782
  */
5676
5783
  /**
5677
5784
  * @public
@@ -5679,6 +5786,8 @@ export declare namespace PBVideoPlayer {
5679
5786
  export declare interface PBVirtualCamera {
5680
5787
  defaultTransition?: CameraTransition | undefined;
5681
5788
  lookAtEntity?: number | undefined;
5789
+ /** default: 60 */
5790
+ fov?: number | undefined;
5682
5791
  }
5683
5792
 
5684
5793
  /**
package/dist/beta.d.ts CHANGED
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1312
1313
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1313
1314
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1314
1315
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2658,6 +2659,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2658
2659
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2659
2660
  }
2660
2661
 
2662
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2663
+
2664
+ /**
2665
+ * @public
2666
+ */
2667
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2668
+ /**
2669
+ * LightSource helper with constructor
2670
+ */
2671
+ Type: LightSourceHelper;
2672
+ }
2673
+
2674
+ /**
2675
+ * @public
2676
+ */
2677
+ export declare interface LightSourceHelper {
2678
+ /**
2679
+ * @returns a Light Source type
2680
+ */
2681
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2682
+ /**
2683
+ * @returns a Light Source type
2684
+ */
2685
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2686
+ }
2687
+
2661
2688
  /**
2662
2689
  * User key event Listeners
2663
2690
  * @public
@@ -4514,6 +4541,85 @@ export declare namespace PBInputModifier_StandardInput {
4514
4541
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4515
4542
  }
4516
4543
 
4544
+ /**
4545
+ * @public
4546
+ */
4547
+ export declare interface PBLightSource {
4548
+ /** default = true, whether the lightSource is active or not. */
4549
+ active?: boolean | undefined;
4550
+ /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4551
+ color?: PBColor3 | undefined;
4552
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4553
+ brightness?: number | undefined;
4554
+ /** default = 10, how far the light travels, expressed in meters. */
4555
+ range?: number | undefined;
4556
+ type?: {
4557
+ $case: "point";
4558
+ point: PBLightSource_Point;
4559
+ } | {
4560
+ $case: "spot";
4561
+ spot: PBLightSource_Spot;
4562
+ } | undefined;
4563
+ }
4564
+
4565
+ /**
4566
+ * @public
4567
+ */
4568
+ export declare namespace PBLightSource {
4569
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4570
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare interface PBLightSource_Point {
4577
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4578
+ shadow?: PBLightSource_ShadowType | undefined;
4579
+ }
4580
+
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare namespace PBLightSource_Point {
4585
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4586
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4587
+ }
4588
+
4589
+ /**
4590
+ * @public
4591
+ */
4592
+ export declare const enum PBLightSource_ShadowType {
4593
+ /** ST_NONE - No shadows are cast from this LightSource. */
4594
+ ST_NONE = 0,
4595
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4596
+ ST_SOFT = 1,
4597
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4598
+ ST_HARD = 2
4599
+ }
4600
+
4601
+ /**
4602
+ * @public
4603
+ */
4604
+ export declare interface PBLightSource_Spot {
4605
+ /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4606
+ innerAngle?: number | undefined;
4607
+ /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4608
+ outerAngle?: number | undefined;
4609
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4610
+ shadow?: PBLightSource_ShadowType | undefined;
4611
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4612
+ shadowMaskTexture?: TextureUnion | undefined;
4613
+ }
4614
+
4615
+ /**
4616
+ * @public
4617
+ */
4618
+ export declare namespace PBLightSource_Spot {
4619
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4620
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4621
+ }
4622
+
4517
4623
  /**
4518
4624
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4519
4625
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5644,6 +5750,7 @@ export declare namespace PBVideoPlayer {
5644
5750
  * an 'instant' transition (like using speed/time = 0)
5645
5751
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5646
5752
  * the holding entity transform).
5753
+ * * The fov defines the Field of View of the virtual camera
5647
5754
  */
5648
5755
  /**
5649
5756
  * @public
@@ -5651,6 +5758,8 @@ export declare namespace PBVideoPlayer {
5651
5758
  export declare interface PBVirtualCamera {
5652
5759
  defaultTransition?: CameraTransition | undefined;
5653
5760
  lookAtEntity?: number | undefined;
5761
+ /** default: 60 */
5762
+ fov?: number | undefined;
5654
5763
  }
5655
5764
 
5656
5765
  /**
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
1309
1309
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1312
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1312
1313
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1313
1314
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1314
1315
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2658,6 +2659,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2658
2659
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2659
2660
  }
2660
2661
 
2662
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2663
+
2664
+ /**
2665
+ * @public
2666
+ */
2667
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2668
+ /**
2669
+ * LightSource helper with constructor
2670
+ */
2671
+ Type: LightSourceHelper;
2672
+ }
2673
+
2674
+ /**
2675
+ * @public
2676
+ */
2677
+ export declare interface LightSourceHelper {
2678
+ /**
2679
+ * @returns a Light Source type
2680
+ */
2681
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2682
+ /**
2683
+ * @returns a Light Source type
2684
+ */
2685
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2686
+ }
2687
+
2661
2688
  /**
2662
2689
  * User key event Listeners
2663
2690
  * @public
@@ -4514,6 +4541,85 @@ export declare namespace PBInputModifier_StandardInput {
4514
4541
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4515
4542
  }
4516
4543
 
4544
+ /**
4545
+ * @public
4546
+ */
4547
+ export declare interface PBLightSource {
4548
+ /** default = true, whether the lightSource is active or not. */
4549
+ active?: boolean | undefined;
4550
+ /** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4551
+ color?: PBColor3 | undefined;
4552
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4553
+ brightness?: number | undefined;
4554
+ /** default = 10, how far the light travels, expressed in meters. */
4555
+ range?: number | undefined;
4556
+ type?: {
4557
+ $case: "point";
4558
+ point: PBLightSource_Point;
4559
+ } | {
4560
+ $case: "spot";
4561
+ spot: PBLightSource_Spot;
4562
+ } | undefined;
4563
+ }
4564
+
4565
+ /**
4566
+ * @public
4567
+ */
4568
+ export declare namespace PBLightSource {
4569
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4570
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare interface PBLightSource_Point {
4577
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4578
+ shadow?: PBLightSource_ShadowType | undefined;
4579
+ }
4580
+
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare namespace PBLightSource_Point {
4585
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4586
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4587
+ }
4588
+
4589
+ /**
4590
+ * @public
4591
+ */
4592
+ export declare const enum PBLightSource_ShadowType {
4593
+ /** ST_NONE - No shadows are cast from this LightSource. */
4594
+ ST_NONE = 0,
4595
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4596
+ ST_SOFT = 1,
4597
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4598
+ ST_HARD = 2
4599
+ }
4600
+
4601
+ /**
4602
+ * @public
4603
+ */
4604
+ export declare interface PBLightSource_Spot {
4605
+ /** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
4606
+ innerAngle?: number | undefined;
4607
+ /** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
4608
+ outerAngle?: number | undefined;
4609
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4610
+ shadow?: PBLightSource_ShadowType | undefined;
4611
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4612
+ shadowMaskTexture?: TextureUnion | undefined;
4613
+ }
4614
+
4615
+ /**
4616
+ * @public
4617
+ */
4618
+ export declare namespace PBLightSource_Spot {
4619
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4620
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4621
+ }
4622
+
4517
4623
  /**
4518
4624
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4519
4625
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5644,6 +5750,7 @@ export declare namespace PBVideoPlayer {
5644
5750
  * an 'instant' transition (like using speed/time = 0)
5645
5751
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5646
5752
  * the holding entity transform).
5753
+ * * The fov defines the Field of View of the virtual camera
5647
5754
  */
5648
5755
  /**
5649
5756
  * @public
@@ -5651,6 +5758,8 @@ export declare namespace PBVideoPlayer {
5651
5758
  export declare interface PBVirtualCamera {
5652
5759
  defaultTransition?: CameraTransition | undefined;
5653
5760
  lookAtEntity?: number | undefined;
5761
+ /** default: 60 */
5762
+ fov?: number | undefined;
5654
5763
  }
5655
5764
 
5656
5765
  /**