@dcl/playground-assets 7.7.6 → 7.7.7-13655406288.commit-7b2a671

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
@@ -1298,6 +1298,7 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1301
1302
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1302
1303
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1303
1304
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1596,11 +1597,6 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1596
1597
  */
1597
1598
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1598
1599
 
1599
- /**
1600
- * @public
1601
- */
1602
- export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
-
1604
1600
  /**
1605
1601
  * @public
1606
1602
  * @returns tween helper to be used on the scene
@@ -2656,6 +2652,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2656
2652
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2657
2653
  }
2658
2654
 
2655
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2656
+
2657
+ /**
2658
+ * @public
2659
+ */
2660
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2661
+ /**
2662
+ * LightSource helper with constructor
2663
+ */
2664
+ Type: LightSourceHelper;
2665
+ }
2666
+
2667
+ /**
2668
+ * @public
2669
+ */
2670
+ export declare interface LightSourceHelper {
2671
+ /**
2672
+ * @returns a Light Source type
2673
+ */
2674
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2675
+ /**
2676
+ * @returns a Light Source type
2677
+ */
2678
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2679
+ }
2680
+
2659
2681
  /**
2660
2682
  * User key event Listeners
2661
2683
  * @public
@@ -4531,6 +4553,85 @@ export declare namespace PBInputModifier_StandardInput {
4531
4553
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4532
4554
  }
4533
4555
 
4556
+ /**
4557
+ * @public
4558
+ */
4559
+ export declare interface PBLightSource {
4560
+ /** default = true, whether the lightSource is active or not. */
4561
+ active?: boolean | undefined;
4562
+ /** 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. */
4563
+ color?: PBColor3 | undefined;
4564
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4565
+ brightness?: number | undefined;
4566
+ /** default = 10, how far the light travels, expressed in meters. */
4567
+ range?: number | undefined;
4568
+ type?: {
4569
+ $case: "point";
4570
+ point: PBLightSource_Point;
4571
+ } | {
4572
+ $case: "spot";
4573
+ spot: PBLightSource_Spot;
4574
+ } | undefined;
4575
+ }
4576
+
4577
+ /**
4578
+ * @public
4579
+ */
4580
+ export declare namespace PBLightSource {
4581
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4582
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4583
+ }
4584
+
4585
+ /**
4586
+ * @public
4587
+ */
4588
+ export declare interface PBLightSource_Point {
4589
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4590
+ shadow?: PBLightSource_ShadowType | undefined;
4591
+ }
4592
+
4593
+ /**
4594
+ * @public
4595
+ */
4596
+ export declare namespace PBLightSource_Point {
4597
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4598
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4599
+ }
4600
+
4601
+ /**
4602
+ * @public
4603
+ */
4604
+ export declare const enum PBLightSource_ShadowType {
4605
+ /** ST_NONE - No shadows are cast from this LightSource. */
4606
+ ST_NONE = 0,
4607
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4608
+ ST_SOFT = 1,
4609
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4610
+ ST_HARD = 2
4611
+ }
4612
+
4613
+ /**
4614
+ * @public
4615
+ */
4616
+ export declare interface PBLightSource_Spot {
4617
+ /** 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. */
4618
+ innerAngle?: number | undefined;
4619
+ /** 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. */
4620
+ outerAngle?: number | undefined;
4621
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4622
+ shadow?: PBLightSource_ShadowType | 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
+ }
4626
+
4627
+ /**
4628
+ * @public
4629
+ */
4630
+ export declare namespace PBLightSource_Spot {
4631
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4632
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4633
+ }
4634
+
4534
4635
  /**
4535
4636
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4536
4637
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
package/dist/beta.d.ts CHANGED
@@ -1298,6 +1298,7 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1301
1302
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1302
1303
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1303
1304
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1596,11 +1597,6 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1596
1597
  */
1597
1598
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1598
1599
 
1599
- /**
1600
- * @public
1601
- */
1602
- export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
-
1604
1600
  /**
1605
1601
  * @public
1606
1602
  * @returns tween helper to be used on the scene
@@ -2647,6 +2643,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2647
2643
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2648
2644
  }
2649
2645
 
2646
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2647
+
2648
+ /**
2649
+ * @public
2650
+ */
2651
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2652
+ /**
2653
+ * LightSource helper with constructor
2654
+ */
2655
+ Type: LightSourceHelper;
2656
+ }
2657
+
2658
+ /**
2659
+ * @public
2660
+ */
2661
+ export declare interface LightSourceHelper {
2662
+ /**
2663
+ * @returns a Light Source type
2664
+ */
2665
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2666
+ /**
2667
+ * @returns a Light Source type
2668
+ */
2669
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2670
+ }
2671
+
2650
2672
  /**
2651
2673
  * User key event Listeners
2652
2674
  * @public
@@ -4503,6 +4525,85 @@ export declare namespace PBInputModifier_StandardInput {
4503
4525
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4504
4526
  }
4505
4527
 
4528
+ /**
4529
+ * @public
4530
+ */
4531
+ export declare interface PBLightSource {
4532
+ /** default = true, whether the lightSource is active or not. */
4533
+ active?: boolean | undefined;
4534
+ /** 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. */
4535
+ color?: PBColor3 | undefined;
4536
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4537
+ brightness?: number | undefined;
4538
+ /** default = 10, how far the light travels, expressed in meters. */
4539
+ range?: number | undefined;
4540
+ type?: {
4541
+ $case: "point";
4542
+ point: PBLightSource_Point;
4543
+ } | {
4544
+ $case: "spot";
4545
+ spot: PBLightSource_Spot;
4546
+ } | undefined;
4547
+ }
4548
+
4549
+ /**
4550
+ * @public
4551
+ */
4552
+ export declare namespace PBLightSource {
4553
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4554
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4555
+ }
4556
+
4557
+ /**
4558
+ * @public
4559
+ */
4560
+ export declare interface PBLightSource_Point {
4561
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4562
+ shadow?: PBLightSource_ShadowType | undefined;
4563
+ }
4564
+
4565
+ /**
4566
+ * @public
4567
+ */
4568
+ export declare namespace PBLightSource_Point {
4569
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4570
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare const enum PBLightSource_ShadowType {
4577
+ /** ST_NONE - No shadows are cast from this LightSource. */
4578
+ ST_NONE = 0,
4579
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4580
+ ST_SOFT = 1,
4581
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4582
+ ST_HARD = 2
4583
+ }
4584
+
4585
+ /**
4586
+ * @public
4587
+ */
4588
+ export declare interface PBLightSource_Spot {
4589
+ /** 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. */
4590
+ innerAngle?: number | undefined;
4591
+ /** 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. */
4592
+ outerAngle?: number | undefined;
4593
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4594
+ shadow?: PBLightSource_ShadowType | 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
+ }
4598
+
4599
+ /**
4600
+ * @public
4601
+ */
4602
+ export declare namespace PBLightSource_Spot {
4603
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4604
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4605
+ }
4606
+
4506
4607
  /**
4507
4608
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4508
4609
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
@@ -1298,6 +1298,7 @@ export declare const componentDefinitionByName: {
1298
1298
  "core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
1299
1299
  "core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
1300
1300
  "core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
1301
+ "core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
1301
1302
  "core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
1302
1303
  "core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
1303
1304
  "core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
@@ -1596,11 +1597,6 @@ export declare function createInputSystem(engine: IEngine): IInputSystem;
1596
1597
  */
1597
1598
  export declare function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;
1598
1599
 
1599
- /**
1600
- * @public
1601
- */
1602
- export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
1603
-
1604
1600
  /**
1605
1601
  * @public
1606
1602
  * @returns tween helper to be used on the scene
@@ -2647,6 +2643,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
2647
2643
  getOrCreateMutable(entity: Entity, initialValue?: T): T;
2648
2644
  }
2649
2645
 
2646
+ export declare const LightSource: LightSourceComponentDefinitionExtended;
2647
+
2648
+ /**
2649
+ * @public
2650
+ */
2651
+ export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
2652
+ /**
2653
+ * LightSource helper with constructor
2654
+ */
2655
+ Type: LightSourceHelper;
2656
+ }
2657
+
2658
+ /**
2659
+ * @public
2660
+ */
2661
+ export declare interface LightSourceHelper {
2662
+ /**
2663
+ * @returns a Light Source type
2664
+ */
2665
+ Point: (point: PBLightSource_Point) => PBLightSource['type'];
2666
+ /**
2667
+ * @returns a Light Source type
2668
+ */
2669
+ Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
2670
+ }
2671
+
2650
2672
  /**
2651
2673
  * User key event Listeners
2652
2674
  * @public
@@ -4503,6 +4525,85 @@ export declare namespace PBInputModifier_StandardInput {
4503
4525
  export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
4504
4526
  }
4505
4527
 
4528
+ /**
4529
+ * @public
4530
+ */
4531
+ export declare interface PBLightSource {
4532
+ /** default = true, whether the lightSource is active or not. */
4533
+ active?: boolean | undefined;
4534
+ /** 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. */
4535
+ color?: PBColor3 | undefined;
4536
+ /** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
4537
+ brightness?: number | undefined;
4538
+ /** default = 10, how far the light travels, expressed in meters. */
4539
+ range?: number | undefined;
4540
+ type?: {
4541
+ $case: "point";
4542
+ point: PBLightSource_Point;
4543
+ } | {
4544
+ $case: "spot";
4545
+ spot: PBLightSource_Spot;
4546
+ } | undefined;
4547
+ }
4548
+
4549
+ /**
4550
+ * @public
4551
+ */
4552
+ export declare namespace PBLightSource {
4553
+ export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
4554
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
4555
+ }
4556
+
4557
+ /**
4558
+ * @public
4559
+ */
4560
+ export declare interface PBLightSource_Point {
4561
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4562
+ shadow?: PBLightSource_ShadowType | undefined;
4563
+ }
4564
+
4565
+ /**
4566
+ * @public
4567
+ */
4568
+ export declare namespace PBLightSource_Point {
4569
+ export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
4570
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
4571
+ }
4572
+
4573
+ /**
4574
+ * @public
4575
+ */
4576
+ export declare const enum PBLightSource_ShadowType {
4577
+ /** ST_NONE - No shadows are cast from this LightSource. */
4578
+ ST_NONE = 0,
4579
+ /** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
4580
+ ST_SOFT = 1,
4581
+ /** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
4582
+ ST_HARD = 2
4583
+ }
4584
+
4585
+ /**
4586
+ * @public
4587
+ */
4588
+ export declare interface PBLightSource_Spot {
4589
+ /** 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. */
4590
+ innerAngle?: number | undefined;
4591
+ /** 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. */
4592
+ outerAngle?: number | undefined;
4593
+ /** default = ShadowType.ST_NONE The type of shadow the light source supports. */
4594
+ shadow?: PBLightSource_ShadowType | 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
+ }
4598
+
4599
+ /**
4600
+ * @public
4601
+ */
4602
+ export declare namespace PBLightSource_Spot {
4603
+ export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
4604
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
4605
+ }
4606
+
4506
4607
  /**
4507
4608
  * PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
4508
4609
  * This component may hold 'repeated common.CameraTransition' transitionOverrides in the future