@dcl/playground-assets 7.9.3-16574576809.commit-c0a4156 → 7.9.3-16616194522.commit-20ff207

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
@@ -1310,6 +1310,7 @@ export declare const componentDefinitionByName: {
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
1312
1312
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1313
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1314
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1315
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1316
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2680,6 +2681,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2680
2681
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2681
2682
  }
2682
2683
 
2684
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2685
+
2686
+ /**
2687
+ * @public
2688
+ */
2689
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2690
+ /**
2691
+ * LightSource helper with constructor
2692
+ */
2693
+ Type: LightSourceHelper;
2694
+ }
2695
+
2696
+ /**
2697
+ * @public
2698
+ */
2699
+ export declare interface LightSourceHelper {
2700
+ /**
2701
+ * @returns a Light Source type
2702
+ */
2703
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2704
+ /**
2705
+ * @returns a Light Source type
2706
+ */
2707
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2708
+ }
2709
+
2683
2710
  /**
2684
2711
  * User key event Listeners
2685
2712
  * @public
@@ -4602,6 +4629,71 @@ export declare namespace PBInputModifier_StandardInput {
4602
4629
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4603
4630
  }
4604
4631
 
4632
+ /**
4633
+ * @public
4634
+ */
4635
+ export declare interface PBLightSource {
4636
+ /** default = true, whether the lightSource is active or not. */
4637
+ active?: boolean | undefined;
4638
+ /** 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. */
4639
+ color?: PBColor3 | undefined;
4640
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4641
+ intensity?: number | undefined;
4642
+ /** default = 0, how far the light travels, expressed in meters. If left at 0 will be computed automatically */
4643
+ range?: number | undefined;
4644
+ /** default = false, whether the light casts shadows or not. */
4645
+ shadow?: boolean | undefined;
4646
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4647
+ shadowMaskTexture?: TextureUnion | undefined;
4648
+ type?: {
4649
+ $case: "point";
4650
+ point: PBLightSource_Point;
4651
+ } | {
4652
+ $case: "spot";
4653
+ spot: PBLightSource_Spot;
4654
+ } | undefined;
4655
+ }
4656
+
4657
+ /**
4658
+ * @public
4659
+ */
4660
+ export declare namespace PBLightSource {
4661
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4662
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4663
+ }
4664
+
4665
+ /**
4666
+ * @public
4667
+ */
4668
+ export declare interface PBLightSource_Point {
4669
+ }
4670
+
4671
+ /**
4672
+ * @public
4673
+ */
4674
+ export declare namespace PBLightSource_Point {
4675
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4676
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4677
+ }
4678
+
4679
+ /**
4680
+ * @public
4681
+ */
4682
+ export declare interface PBLightSource_Spot {
4683
+ /** 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. */
4684
+ innerAngle?: number | undefined;
4685
+ /** 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. */
4686
+ outerAngle?: number | undefined;
4687
+ }
4688
+
4689
+ /**
4690
+ * @public
4691
+ */
4692
+ export declare namespace PBLightSource_Spot {
4693
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4694
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4695
+ }
4696
+
4605
4697
  /**
4606
4698
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4607
4699
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5807,6 +5899,7 @@ export declare namespace PBVideoPlayer {
5807
5899
  * an 'instant' transition (like using speed/time = 0)
5808
5900
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5809
5901
  * the holding entity transform).
5902
+ * * The fov defines the Field of View of the virtual camera
5810
5903
  */
5811
5904
  /**
5812
5905
  * @public
@@ -5814,6 +5907,8 @@ export declare namespace PBVideoPlayer {
5814
5907
  export declare interface PBVirtualCamera {
5815
5908
  defaultTransition?: CameraTransition | undefined;
5816
5909
  lookAtEntity?: number | undefined;
5910
+ /** default: 60 */
5911
+ fov?: number | undefined;
5817
5912
  }
5818
5913
 
5819
5914
  /**
package/dist/beta.d.ts CHANGED
@@ -1310,6 +1310,7 @@ export declare const componentDefinitionByName: {
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
1312
1312
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1313
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1314
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1315
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1316
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2671,6 +2672,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2671
2672
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2672
2673
  }
2673
2674
 
2675
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2676
+
2677
+ /**
2678
+ * @public
2679
+ */
2680
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2681
+ /**
2682
+ * LightSource helper with constructor
2683
+ */
2684
+ Type: LightSourceHelper;
2685
+ }
2686
+
2687
+ /**
2688
+ * @public
2689
+ */
2690
+ export declare interface LightSourceHelper {
2691
+ /**
2692
+ * @returns a Light Source type
2693
+ */
2694
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2695
+ /**
2696
+ * @returns a Light Source type
2697
+ */
2698
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2699
+ }
2700
+
2674
2701
  /**
2675
2702
  * User key event Listeners
2676
2703
  * @public
@@ -4574,6 +4601,71 @@ export declare namespace PBInputModifier_StandardInput {
4574
4601
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4575
4602
  }
4576
4603
 
4604
+ /**
4605
+ * @public
4606
+ */
4607
+ export declare interface PBLightSource {
4608
+ /** default = true, whether the lightSource is active or not. */
4609
+ active?: boolean | undefined;
4610
+ /** 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. */
4611
+ color?: PBColor3 | undefined;
4612
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4613
+ intensity?: number | undefined;
4614
+ /** default = 0, how far the light travels, expressed in meters. If left at 0 will be computed automatically */
4615
+ range?: number | undefined;
4616
+ /** default = false, whether the light casts shadows or not. */
4617
+ shadow?: boolean | undefined;
4618
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4619
+ shadowMaskTexture?: TextureUnion | undefined;
4620
+ type?: {
4621
+ $case: "point";
4622
+ point: PBLightSource_Point;
4623
+ } | {
4624
+ $case: "spot";
4625
+ spot: PBLightSource_Spot;
4626
+ } | undefined;
4627
+ }
4628
+
4629
+ /**
4630
+ * @public
4631
+ */
4632
+ export declare namespace PBLightSource {
4633
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4634
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4635
+ }
4636
+
4637
+ /**
4638
+ * @public
4639
+ */
4640
+ export declare interface PBLightSource_Point {
4641
+ }
4642
+
4643
+ /**
4644
+ * @public
4645
+ */
4646
+ export declare namespace PBLightSource_Point {
4647
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4648
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4649
+ }
4650
+
4651
+ /**
4652
+ * @public
4653
+ */
4654
+ export declare interface PBLightSource_Spot {
4655
+ /** 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. */
4656
+ innerAngle?: number | undefined;
4657
+ /** 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. */
4658
+ outerAngle?: number | undefined;
4659
+ }
4660
+
4661
+ /**
4662
+ * @public
4663
+ */
4664
+ export declare namespace PBLightSource_Spot {
4665
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4666
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4667
+ }
4668
+
4577
4669
  /**
4578
4670
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4579
4671
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5779,6 +5871,7 @@ export declare namespace PBVideoPlayer {
5779
5871
  * an 'instant' transition (like using speed/time = 0)
5780
5872
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5781
5873
  * the holding entity transform).
5874
+ * * The fov defines the Field of View of the virtual camera
5782
5875
  */
5783
5876
  /**
5784
5877
  * @public
@@ -5786,6 +5879,8 @@ export declare namespace PBVideoPlayer {
5786
5879
  export declare interface PBVirtualCamera {
5787
5880
  defaultTransition?: CameraTransition | undefined;
5788
5881
  lookAtEntity?: number | undefined;
5882
+ /** default: 60 */
5883
+ fov?: number | undefined;
5789
5884
  }
5790
5885
 
5791
5886
  /**
@@ -1310,6 +1310,7 @@ export declare const componentDefinitionByName: {
1310
1310
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1311
1311
  "core::GltfNodeModifiers": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfNodeModifiers>>;
1312
1312
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1313
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1313
1314
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1314
1315
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1315
1316
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -2671,6 +2672,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2671
2672
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2672
2673
  }
2673
2674
 
2675
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2676
+
2677
+ /**
2678
+ * @public
2679
+ */
2680
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2681
+ /**
2682
+ * LightSource helper with constructor
2683
+ */
2684
+ Type: LightSourceHelper;
2685
+ }
2686
+
2687
+ /**
2688
+ * @public
2689
+ */
2690
+ export declare interface LightSourceHelper {
2691
+ /**
2692
+ * @returns a Light Source type
2693
+ */
2694
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2695
+ /**
2696
+ * @returns a Light Source type
2697
+ */
2698
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2699
+ }
2700
+
2674
2701
  /**
2675
2702
  * User key event Listeners
2676
2703
  * @public
@@ -4574,6 +4601,71 @@ export declare namespace PBInputModifier_StandardInput {
4574
4601
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4575
4602
  }
4576
4603
 
4604
+ /**
4605
+ * @public
4606
+ */
4607
+ export declare interface PBLightSource {
4608
+ /** default = true, whether the lightSource is active or not. */
4609
+ active?: boolean | undefined;
4610
+ /** 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. */
4611
+ color?: PBColor3 | undefined;
4612
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4613
+ intensity?: number | undefined;
4614
+ /** default = 0, how far the light travels, expressed in meters. If left at 0 will be computed automatically */
4615
+ range?: number | undefined;
4616
+ /** default = false, whether the light casts shadows or not. */
4617
+ shadow?: boolean | undefined;
4618
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4619
+ shadowMaskTexture?: TextureUnion | undefined;
4620
+ type?: {
4621
+ $case: "point";
4622
+ point: PBLightSource_Point;
4623
+ } | {
4624
+ $case: "spot";
4625
+ spot: PBLightSource_Spot;
4626
+ } | undefined;
4627
+ }
4628
+
4629
+ /**
4630
+ * @public
4631
+ */
4632
+ export declare namespace PBLightSource {
4633
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4634
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4635
+ }
4636
+
4637
+ /**
4638
+ * @public
4639
+ */
4640
+ export declare interface PBLightSource_Point {
4641
+ }
4642
+
4643
+ /**
4644
+ * @public
4645
+ */
4646
+ export declare namespace PBLightSource_Point {
4647
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4648
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4649
+ }
4650
+
4651
+ /**
4652
+ * @public
4653
+ */
4654
+ export declare interface PBLightSource_Spot {
4655
+ /** 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. */
4656
+ innerAngle?: number | undefined;
4657
+ /** 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. */
4658
+ outerAngle?: number | undefined;
4659
+ }
4660
+
4661
+ /**
4662
+ * @public
4663
+ */
4664
+ export declare namespace PBLightSource_Spot {
4665
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4666
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4667
+ }
4668
+
4577
4669
  /**
4578
4670
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4579
4671
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -5779,6 +5871,7 @@ export declare namespace PBVideoPlayer {
5779
5871
  * an 'instant' transition (like using speed/time = 0)
5780
5872
  * * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
5781
5873
  * the holding entity transform).
5874
+ * * The fov defines the Field of View of the virtual camera
5782
5875
  */
5783
5876
  /**
5784
5877
  * @public
@@ -5786,6 +5879,8 @@ export declare namespace PBVideoPlayer {
5786
5879
  export declare interface PBVirtualCamera {
5787
5880
  defaultTransition?: CameraTransition | undefined;
5788
5881
  lookAtEntity?: number | undefined;
5882
+ /** default: 60 */
5883
+ fov?: number | undefined;
5789
5884
  }
5790
5885
 
5791
5886
  /**