@dcl/playground-assets 7.8.10-15453890617.commit-9dc90d3 → 7.8.10-15471956090.commit-579887d

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>>;
@@ -2675,6 +2676,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2675
2676
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2676
2677
  }
2677
2678
 
2679
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2680
+
2681
+ /**
2682
+ * @public
2683
+ */
2684
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2685
+ /**
2686
+ * LightSource helper with constructor
2687
+ */
2688
+ Type: LightSourceHelper;
2689
+ }
2690
+
2691
+ /**
2692
+ * @public
2693
+ */
2694
+ export declare interface LightSourceHelper {
2695
+ /**
2696
+ * @returns a Light Source type
2697
+ */
2698
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2699
+ /**
2700
+ * @returns a Light Source type
2701
+ */
2702
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2703
+ }
2704
+
2678
2705
  /**
2679
2706
  * User key event Listeners
2680
2707
  * @public
@@ -4550,6 +4577,85 @@ export declare namespace PBInputModifier_StandardInput {
4550
4577
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4551
4578
  }
4552
4579
 
4580
+ /**
4581
+ * @public
4582
+ */
4583
+ export declare interface PBLightSource {
4584
+ /** default = true, whether the lightSource is active or not. */
4585
+ active?: boolean | undefined;
4586
+ /** 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. */
4587
+ color?: PBColor3 | undefined;
4588
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4589
+ brightness?: number | undefined;
4590
+ /** default = 10, how far the light travels, expressed in meters. */
4591
+ range?: number | undefined;
4592
+ type?: {
4593
+ $case: "point";
4594
+ point: PBLightSource_Point;
4595
+ } | {
4596
+ $case: "spot";
4597
+ spot: PBLightSource_Spot;
4598
+ } | undefined;
4599
+ }
4600
+
4601
+ /**
4602
+ * @public
4603
+ */
4604
+ export declare namespace PBLightSource {
4605
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4606
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4607
+ }
4608
+
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare interface PBLightSource_Point {
4613
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4614
+ shadow?: PBLightSource_ShadowType | undefined;
4615
+ }
4616
+
4617
+ /**
4618
+ * @public
4619
+ */
4620
+ export declare namespace PBLightSource_Point {
4621
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4622
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4623
+ }
4624
+
4625
+ /**
4626
+ * @public
4627
+ */
4628
+ export declare const enum PBLightSource_ShadowType {
4629
+ /** ST_NONE - No shadows are cast from this LightSource. */
4630
+ ST_NONE = 0,
4631
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4632
+ ST_SOFT = 1,
4633
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4634
+ ST_HARD = 2
4635
+ }
4636
+
4637
+ /**
4638
+ * @public
4639
+ */
4640
+ export declare interface PBLightSource_Spot {
4641
+ /** 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. */
4642
+ innerAngle?: number | undefined;
4643
+ /** 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. */
4644
+ outerAngle?: number | undefined;
4645
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4646
+ shadow?: PBLightSource_ShadowType | undefined;
4647
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4648
+ shadowMaskTexture?: TextureUnion | undefined;
4649
+ }
4650
+
4651
+ /**
4652
+ * @public
4653
+ */
4654
+ export declare namespace PBLightSource_Spot {
4655
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4656
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4657
+ }
4658
+
4553
4659
  /**
4554
4660
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4555
4661
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5729,6 +5835,7 @@ export declare namespace PBVideoPlayer {
5729
5835
  * an 'instant' transition (like using speed/time = 0)
5730
5836
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5731
5837
  * the holding entity transform).
5838
+ * * The fov defines the Field of View of the virtual camera
5732
5839
  */
5733
5840
  /**
5734
5841
  * @public
@@ -5736,6 +5843,8 @@ export declare namespace PBVideoPlayer {
5736
5843
  export declare interface PBVirtualCamera {
5737
5844
  defaultTransition?: CameraTransition | undefined;
5738
5845
  lookAtEntity?: number | undefined;
5846
+ /** default: 60 */
5847
+ fov?: number | undefined;
5739
5848
  }
5740
5849
 
5741
5850
  /**
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>>;
@@ -2666,6 +2667,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2666
2667
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2667
2668
  }
2668
2669
 
2670
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2671
+
2672
+ /**
2673
+ * @public
2674
+ */
2675
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2676
+ /**
2677
+ * LightSource helper with constructor
2678
+ */
2679
+ Type: LightSourceHelper;
2680
+ }
2681
+
2682
+ /**
2683
+ * @public
2684
+ */
2685
+ export declare interface LightSourceHelper {
2686
+ /**
2687
+ * @returns a Light Source type
2688
+ */
2689
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2690
+ /**
2691
+ * @returns a Light Source type
2692
+ */
2693
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2694
+ }
2695
+
2669
2696
  /**
2670
2697
  * User key event Listeners
2671
2698
  * @public
@@ -4522,6 +4549,85 @@ export declare namespace PBInputModifier_StandardInput {
4522
4549
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4523
4550
  }
4524
4551
 
4552
+ /**
4553
+ * @public
4554
+ */
4555
+ export declare interface PBLightSource {
4556
+ /** default = true, whether the lightSource is active or not. */
4557
+ active?: boolean | undefined;
4558
+ /** 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. */
4559
+ color?: PBColor3 | undefined;
4560
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4561
+ brightness?: number | undefined;
4562
+ /** default = 10, how far the light travels, expressed in meters. */
4563
+ range?: number | undefined;
4564
+ type?: {
4565
+ $case: "point";
4566
+ point: PBLightSource_Point;
4567
+ } | {
4568
+ $case: "spot";
4569
+ spot: PBLightSource_Spot;
4570
+ } | undefined;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare namespace PBLightSource {
4577
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4578
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4579
+ }
4580
+
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare interface PBLightSource_Point {
4585
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4586
+ shadow?: PBLightSource_ShadowType | undefined;
4587
+ }
4588
+
4589
+ /**
4590
+ * @public
4591
+ */
4592
+ export declare namespace PBLightSource_Point {
4593
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4594
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4595
+ }
4596
+
4597
+ /**
4598
+ * @public
4599
+ */
4600
+ export declare const enum PBLightSource_ShadowType {
4601
+ /** ST_NONE - No shadows are cast from this LightSource. */
4602
+ ST_NONE = 0,
4603
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4604
+ ST_SOFT = 1,
4605
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4606
+ ST_HARD = 2
4607
+ }
4608
+
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare interface PBLightSource_Spot {
4613
+ /** 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. */
4614
+ innerAngle?: number | undefined;
4615
+ /** 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. */
4616
+ outerAngle?: number | undefined;
4617
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4618
+ shadow?: PBLightSource_ShadowType | undefined;
4619
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4620
+ shadowMaskTexture?: TextureUnion | undefined;
4621
+ }
4622
+
4623
+ /**
4624
+ * @public
4625
+ */
4626
+ export declare namespace PBLightSource_Spot {
4627
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4628
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4629
+ }
4630
+
4525
4631
  /**
4526
4632
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4527
4633
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5701,6 +5807,7 @@ export declare namespace PBVideoPlayer {
5701
5807
  * an 'instant' transition (like using speed/time = 0)
5702
5808
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5703
5809
  * the holding entity transform).
5810
+ * * The fov defines the Field of View of the virtual camera
5704
5811
  */
5705
5812
  /**
5706
5813
  * @public
@@ -5708,6 +5815,8 @@ export declare namespace PBVideoPlayer {
5708
5815
  export declare interface PBVirtualCamera {
5709
5816
  defaultTransition?: CameraTransition | undefined;
5710
5817
  lookAtEntity?: number | undefined;
5818
+ /** default: 60 */
5819
+ fov?: number | undefined;
5711
5820
  }
5712
5821
 
5713
5822
  /**
@@ -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>>;
@@ -2666,6 +2667,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2666
2667
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2667
2668
  }
2668
2669
 
2670
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2671
+
2672
+ /**
2673
+ * @public
2674
+ */
2675
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2676
+ /**
2677
+ * LightSource helper with constructor
2678
+ */
2679
+ Type: LightSourceHelper;
2680
+ }
2681
+
2682
+ /**
2683
+ * @public
2684
+ */
2685
+ export declare interface LightSourceHelper {
2686
+ /**
2687
+ * @returns a Light Source type
2688
+ */
2689
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2690
+ /**
2691
+ * @returns a Light Source type
2692
+ */
2693
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2694
+ }
2695
+
2669
2696
  /**
2670
2697
  * User key event Listeners
2671
2698
  * @public
@@ -4522,6 +4549,85 @@ export declare namespace PBInputModifier_StandardInput {
4522
4549
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4523
4550
  }
4524
4551
 
4552
+ /**
4553
+ * @public
4554
+ */
4555
+ export declare interface PBLightSource {
4556
+ /** default = true, whether the lightSource is active or not. */
4557
+ active?: boolean | undefined;
4558
+ /** 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. */
4559
+ color?: PBColor3 | undefined;
4560
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4561
+ brightness?: number | undefined;
4562
+ /** default = 10, how far the light travels, expressed in meters. */
4563
+ range?: number | undefined;
4564
+ type?: {
4565
+ $case: "point";
4566
+ point: PBLightSource_Point;
4567
+ } | {
4568
+ $case: "spot";
4569
+ spot: PBLightSource_Spot;
4570
+ } | undefined;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare namespace PBLightSource {
4577
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4578
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4579
+ }
4580
+
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare interface PBLightSource_Point {
4585
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4586
+ shadow?: PBLightSource_ShadowType | undefined;
4587
+ }
4588
+
4589
+ /**
4590
+ * @public
4591
+ */
4592
+ export declare namespace PBLightSource_Point {
4593
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4594
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4595
+ }
4596
+
4597
+ /**
4598
+ * @public
4599
+ */
4600
+ export declare const enum PBLightSource_ShadowType {
4601
+ /** ST_NONE - No shadows are cast from this LightSource. */
4602
+ ST_NONE = 0,
4603
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4604
+ ST_SOFT = 1,
4605
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4606
+ ST_HARD = 2
4607
+ }
4608
+
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare interface PBLightSource_Spot {
4613
+ /** 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. */
4614
+ innerAngle?: number | undefined;
4615
+ /** 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. */
4616
+ outerAngle?: number | undefined;
4617
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4618
+ shadow?: PBLightSource_ShadowType | undefined;
4619
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4620
+ shadowMaskTexture?: TextureUnion | undefined;
4621
+ }
4622
+
4623
+ /**
4624
+ * @public
4625
+ */
4626
+ export declare namespace PBLightSource_Spot {
4627
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4628
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4629
+ }
4630
+
4525
4631
  /**
4526
4632
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4527
4633
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5701,6 +5807,7 @@ export declare namespace PBVideoPlayer {
5701
5807
  * an 'instant' transition (like using speed/time = 0)
5702
5808
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5703
5809
  * the holding entity transform).
5810
+ * * The fov defines the Field of View of the virtual camera
5704
5811
  */
5705
5812
  /**
5706
5813
  * @public
@@ -5708,6 +5815,8 @@ export declare namespace PBVideoPlayer {
5708
5815
  export declare interface PBVirtualCamera {
5709
5816
  defaultTransition?: CameraTransition | undefined;
5710
5817
  lookAtEntity?: number | undefined;
5818
+ /** default: 60 */
5819
+ fov?: number | undefined;
5711
5820
  }
5712
5821
 
5713
5822
  /**