@dcl/playground-assets 7.9.3-16778165985.commit-d7bbd0b → 7.9.3

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,9 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2680
2681
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2681
2682
  }
2682
2683
 
2684
+ /** @public */
2685
+ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
2686
+
2683
2687
  /**
2684
2688
  * User key event Listeners
2685
2689
  * @public
@@ -4602,6 +4606,71 @@ export declare namespace PBInputModifier_StandardInput {
4602
4606
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4603
4607
  }
4604
4608
 
4609
+ /**
4610
+ * @public
4611
+ */
4612
+ export declare interface PBLightSource {
4613
+ /** default = true, whether the lightSource is active or not. */
4614
+ active?: boolean | undefined;
4615
+ /** default = white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4616
+ color?: PBColor3 | undefined;
4617
+ /** default = 16000, light intensity expressed in candels (lumens/m^2 at 1 m distance, or lumens divided by 4*pi) */
4618
+ intensity?: number | undefined;
4619
+ /** default = -1, how far the light travels, expressed in meters. If negative will be computed automatically as pow(intensity, 0.25) */
4620
+ range?: number | undefined;
4621
+ /** default = false, whether the light casts shadows or not. */
4622
+ shadow?: boolean | undefined;
4623
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4624
+ shadowMaskTexture?: TextureUnion | undefined;
4625
+ type?: {
4626
+ $case: "point";
4627
+ point: PBLightSource_Point;
4628
+ } | {
4629
+ $case: "spot";
4630
+ spot: PBLightSource_Spot;
4631
+ } | undefined;
4632
+ }
4633
+
4634
+ /**
4635
+ * @public
4636
+ */
4637
+ export declare namespace PBLightSource {
4638
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4639
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4640
+ }
4641
+
4642
+ /**
4643
+ * @public
4644
+ */
4645
+ export declare interface PBLightSource_Point {
4646
+ }
4647
+
4648
+ /**
4649
+ * @public
4650
+ */
4651
+ export declare namespace PBLightSource_Point {
4652
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4653
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4654
+ }
4655
+
4656
+ /**
4657
+ * @public
4658
+ */
4659
+ export declare interface PBLightSource_Spot {
4660
+ /** 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. */
4661
+ innerAngle?: number | undefined;
4662
+ /** 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. */
4663
+ outerAngle?: number | undefined;
4664
+ }
4665
+
4666
+ /**
4667
+ * @public
4668
+ */
4669
+ export declare namespace PBLightSource_Spot {
4670
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4671
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4672
+ }
4673
+
4605
4674
  /**
4606
4675
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4607
4676
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
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,9 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2671
2672
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2672
2673
  }
2673
2674
 
2675
+ /** @public */
2676
+ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
2677
+
2674
2678
  /**
2675
2679
  * User key event Listeners
2676
2680
  * @public
@@ -4574,6 +4578,71 @@ export declare namespace PBInputModifier_StandardInput {
4574
4578
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4575
4579
  }
4576
4580
 
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare interface PBLightSource {
4585
+ /** default = true, whether the lightSource is active or not. */
4586
+ active?: boolean | undefined;
4587
+ /** default = white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4588
+ color?: PBColor3 | undefined;
4589
+ /** default = 16000, light intensity expressed in candels (lumens/m^2 at 1 m distance, or lumens divided by 4*pi) */
4590
+ intensity?: number | undefined;
4591
+ /** default = -1, how far the light travels, expressed in meters. If negative will be computed automatically as pow(intensity, 0.25) */
4592
+ range?: number | undefined;
4593
+ /** default = false, whether the light casts shadows or not. */
4594
+ shadow?: boolean | undefined;
4595
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4596
+ shadowMaskTexture?: TextureUnion | undefined;
4597
+ type?: {
4598
+ $case: "point";
4599
+ point: PBLightSource_Point;
4600
+ } | {
4601
+ $case: "spot";
4602
+ spot: PBLightSource_Spot;
4603
+ } | undefined;
4604
+ }
4605
+
4606
+ /**
4607
+ * @public
4608
+ */
4609
+ export declare namespace PBLightSource {
4610
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4611
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4612
+ }
4613
+
4614
+ /**
4615
+ * @public
4616
+ */
4617
+ export declare interface PBLightSource_Point {
4618
+ }
4619
+
4620
+ /**
4621
+ * @public
4622
+ */
4623
+ export declare namespace PBLightSource_Point {
4624
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4625
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4626
+ }
4627
+
4628
+ /**
4629
+ * @public
4630
+ */
4631
+ export declare interface PBLightSource_Spot {
4632
+ /** 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. */
4633
+ innerAngle?: number | undefined;
4634
+ /** 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. */
4635
+ outerAngle?: number | undefined;
4636
+ }
4637
+
4638
+ /**
4639
+ * @public
4640
+ */
4641
+ export declare namespace PBLightSource_Spot {
4642
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4643
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4644
+ }
4645
+
4577
4646
  /**
4578
4647
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4579
4648
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -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,9 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2671
2672
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2672
2673
  }
2673
2674
 
2675
+ /** @public */
2676
+ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
2677
+
2674
2678
  /**
2675
2679
  * User key event Listeners
2676
2680
  * @public
@@ -4574,6 +4578,71 @@ export declare namespace PBInputModifier_StandardInput {
4574
4578
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4575
4579
  }
4576
4580
 
4581
+ /**
4582
+ * @public
4583
+ */
4584
+ export declare interface PBLightSource {
4585
+ /** default = true, whether the lightSource is active or not. */
4586
+ active?: boolean | undefined;
4587
+ /** default = white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
4588
+ color?: PBColor3 | undefined;
4589
+ /** default = 16000, light intensity expressed in candels (lumens/m^2 at 1 m distance, or lumens divided by 4*pi) */
4590
+ intensity?: number | undefined;
4591
+ /** default = -1, how far the light travels, expressed in meters. If negative will be computed automatically as pow(intensity, 0.25) */
4592
+ range?: number | undefined;
4593
+ /** default = false, whether the light casts shadows or not. */
4594
+ shadow?: boolean | undefined;
4595
+ /** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
4596
+ shadowMaskTexture?: TextureUnion | undefined;
4597
+ type?: {
4598
+ $case: "point";
4599
+ point: PBLightSource_Point;
4600
+ } | {
4601
+ $case: "spot";
4602
+ spot: PBLightSource_Spot;
4603
+ } | undefined;
4604
+ }
4605
+
4606
+ /**
4607
+ * @public
4608
+ */
4609
+ export declare namespace PBLightSource {
4610
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4611
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4612
+ }
4613
+
4614
+ /**
4615
+ * @public
4616
+ */
4617
+ export declare interface PBLightSource_Point {
4618
+ }
4619
+
4620
+ /**
4621
+ * @public
4622
+ */
4623
+ export declare namespace PBLightSource_Point {
4624
+ export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4625
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4626
+ }
4627
+
4628
+ /**
4629
+ * @public
4630
+ */
4631
+ export declare interface PBLightSource_Spot {
4632
+ /** 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. */
4633
+ innerAngle?: number | undefined;
4634
+ /** 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. */
4635
+ outerAngle?: number | undefined;
4636
+ }
4637
+
4638
+ /**
4639
+ * @public
4640
+ */
4641
+ export declare namespace PBLightSource_Spot {
4642
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4643
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4644
+ }
4645
+
4577
4646
  /**
4578
4647
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4579
4648
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future