@dcl/sdk 7.0.0-2891892090.commit-2d30b23 → 7.0.0-2910409620.commit-f5c436b

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.
@@ -0,0 +1,59 @@
1
+ syntax = "proto3";
2
+
3
+ import "common/id.proto";
4
+ option (ecs_component_id) = 1017;
5
+
6
+ import "common/Color3.proto";
7
+
8
+ enum TextureWrapMode {
9
+ Repeat = 0;
10
+ Clamp = 1;
11
+ Mirror = 2;
12
+ MirrorOnce = 3;
13
+ }
14
+
15
+ enum FilterMode
16
+ {
17
+ Point = 0;
18
+ Bilinear = 1;
19
+ Trilinear = 2;
20
+ }
21
+
22
+ enum TransparencyMode
23
+ {
24
+ Opaque = 0;
25
+ AlphaTest = 1;
26
+ AlphaBlend = 2;
27
+ AlphaTestAndAlphaBlend = 3;
28
+ Auto = 4;
29
+ }
30
+
31
+ message PBMaterial {
32
+ message Texture {
33
+ string src = 1;
34
+ optional TextureWrapMode wrapMode = 2; // default = TextureWrapMode.Clamp
35
+ optional FilterMode filterMode = 3; // default = FilterMode.Bilinear
36
+ }
37
+
38
+ optional Texture texture = 1; // default = null
39
+ optional float alphaTest = 2; // default = 0.5. range value: from 0 to 1
40
+ optional bool castShadows = 3; // default = true
41
+
42
+ optional Texture alphaTexture = 4; // default = null
43
+ optional Texture emissiveTexture = 5; // default = null
44
+ optional Texture bumpTexture = 6; // default = null
45
+
46
+ optional Color3 albedoColor = 7; // default = white;
47
+ optional Color3 emissiveColor = 8; // default = black;
48
+ optional Color3 reflectivityColor = 9; // default = white;
49
+
50
+ optional TransparencyMode transparencyMode = 10; // default = TransparencyMode.Auto
51
+
52
+ optional float metallic = 11; // default = 0.5
53
+ optional float roughness = 12; // default = 0.5
54
+ optional float glossiness = 13; // default = 1
55
+
56
+ optional float specularIntensity = 14; // default = 1
57
+ optional float emissiveIntensity = 15; // default = 2
58
+ optional float directIntensity = 16; // default = 1
59
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-2891892090.commit-2d30b23",
3
+ "version": "7.0.0-2910409620.commit-f5c436b",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.5-2891892090.commit-2d30b23",
31
- "@dcl/build-ecs": "6.11.5-2891892090.commit-2d30b23",
30
+ "@dcl/amd": "6.11.5-2910409620.commit-f5c436b",
31
+ "@dcl/build-ecs": "6.11.5-2910409620.commit-f5c436b",
32
32
  "@dcl/kernel": "1.0.0-2638443584.commit-696a74b",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "2d30b2355ae7f33ed0a7f4eedf9e5db9fac157c1"
41
+ "commit": "f5c436b128e35d311021fe23a1ba25fa00128970"
42
42
  }
@@ -33,6 +33,15 @@ declare const enum AvatarAnchorPoint {
33
33
  /** @public */
34
34
  declare const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
35
35
 
36
+ declare const enum AvatarModifier {
37
+ HIDE_AVATARS = 0,
38
+ DISABLE_PASSPORTS = 1,
39
+ UNRECOGNIZED = -1
40
+ }
41
+
42
+ /** @public */
43
+ declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
44
+
36
45
  /** @public */
37
46
  declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
38
47
 
@@ -221,6 +230,8 @@ declare namespace Components {
221
230
  /** @public */
222
231
  const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
223
232
  /** @public */
233
+ const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
234
+ /** @public */
224
235
  const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
225
236
  /** @public */
226
237
  const Billboard: ComponentDefinition<ISchema<PBBillboard>>;
@@ -235,6 +246,8 @@ declare namespace Components {
235
246
  /** @public */
236
247
  const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
237
248
  /** @public */
249
+ const Material: ComponentDefinition<ISchema<PBMaterial>>;
250
+ /** @public */
238
251
  const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
239
252
  /** @public */
240
253
  const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
@@ -438,6 +451,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
438
451
  Animator: ComponentDefinition<ISchema<PBAnimator>>;
439
452
  AudioSource: ComponentDefinition<ISchema<PBAudioSource>>;
440
453
  AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
454
+ AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
441
455
  AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
442
456
  Billboard: ComponentDefinition<ISchema<PBBillboard>>;
443
457
  BoxShape: ComponentDefinition<ISchema<PBBoxShape>>;
@@ -445,6 +459,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
445
459
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>>;
446
460
  CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
447
461
  GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
462
+ Material: ComponentDefinition<ISchema<PBMaterial>>;
448
463
  NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
449
464
  OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
450
465
  OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
@@ -503,6 +518,13 @@ declare type ExcludeUndefined<T> = {
503
518
  [P in keyof T]: undefined extends T[P] ? never : P;
504
519
  }[keyof T];
505
520
 
521
+ declare const enum FilterMode {
522
+ Point = 0,
523
+ Bilinear = 1,
524
+ Trilinear = 2,
525
+ UNRECOGNIZED = -1
526
+ }
527
+
506
528
  /** @public */
507
529
  declare type float = number;
508
530
 
@@ -667,6 +689,9 @@ declare interface ISize {
667
689
 
668
690
  declare const log: (...a: any[]) => void;
669
691
 
692
+ /** @public */
693
+ declare const Material: ComponentDefinition<ISchema<PBMaterial>>;
694
+
670
695
  /**
671
696
  * Class used to store matrix data (4x4)
672
697
  * @public
@@ -1457,6 +1482,12 @@ declare interface PBAvatarAttach {
1457
1482
  anchorPointId: AvatarAnchorPoint;
1458
1483
  }
1459
1484
 
1485
+ declare interface PBAvatarModifierArea {
1486
+ area: Vector3_2 | undefined;
1487
+ excludeIds: string[];
1488
+ modifiers: AvatarModifier[];
1489
+ }
1490
+
1460
1491
  declare interface PBAvatarShape {
1461
1492
  id: string;
1462
1493
  name?: string | undefined;
@@ -1523,6 +1554,49 @@ declare interface PBGLTFShape {
1523
1554
  src: string;
1524
1555
  }
1525
1556
 
1557
+ declare interface PBMaterial {
1558
+ /** default = null */
1559
+ texture?: PBMaterial_Texture | undefined;
1560
+ /** default = 0.5. range value: from 0 to 1 */
1561
+ alphaTest?: number | undefined;
1562
+ /** default = true */
1563
+ castShadows?: boolean | undefined;
1564
+ /** default = null */
1565
+ alphaTexture?: PBMaterial_Texture | undefined;
1566
+ /** default = null */
1567
+ emissiveTexture?: PBMaterial_Texture | undefined;
1568
+ /** default = null */
1569
+ bumpTexture?: PBMaterial_Texture | undefined;
1570
+ /** default = white; */
1571
+ albedoColor?: Color3 | undefined;
1572
+ /** default = black; */
1573
+ emissiveColor?: Color3 | undefined;
1574
+ /** default = white; */
1575
+ reflectivityColor?: Color3 | undefined;
1576
+ /** default = TransparencyMode.Auto */
1577
+ transparencyMode?: TransparencyMode | undefined;
1578
+ /** default = 0.5 */
1579
+ metallic?: number | undefined;
1580
+ /** default = 0.5 */
1581
+ roughness?: number | undefined;
1582
+ /** default = 1 */
1583
+ glossiness?: number | undefined;
1584
+ /** default = 1 */
1585
+ specularIntensity?: number | undefined;
1586
+ /** default = 2 */
1587
+ emissiveIntensity?: number | undefined;
1588
+ /** default = 1 */
1589
+ directIntensity?: number | undefined;
1590
+ }
1591
+
1592
+ declare interface PBMaterial_Texture {
1593
+ src: string;
1594
+ /** default = TextureWrapMode.Clamp */
1595
+ wrapMode?: TextureWrapMode | undefined;
1596
+ /** default = FilterMode.Bilinear */
1597
+ filterMode?: FilterMode | undefined;
1598
+ }
1599
+
1526
1600
  declare interface PBNFTShape {
1527
1601
  /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
1528
1602
  withCollisions?: boolean | undefined;
@@ -1993,6 +2067,14 @@ declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
1993
2067
  /** @public */
1994
2068
  declare const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
1995
2069
 
2070
+ declare const enum TextureWrapMode {
2071
+ Repeat = 0,
2072
+ Clamp = 1,
2073
+ Mirror = 2,
2074
+ MirrorOnce = 3,
2075
+ UNRECOGNIZED = -1
2076
+ }
2077
+
1996
2078
  /**
1997
2079
  * Constant used to convert a value to gamma space
1998
2080
  * @public
@@ -2028,6 +2110,15 @@ z: number;
2028
2110
  parent?: Entity | undefined;
2029
2111
  }>>;
2030
2112
 
2113
+ declare const enum TransparencyMode {
2114
+ Opaque = 0,
2115
+ AlphaTest = 1,
2116
+ AlphaBlend = 2,
2117
+ AlphaTestAndAlphaBlend = 3,
2118
+ Auto = 4,
2119
+ UNRECOGNIZED = -1
2120
+ }
2121
+
2031
2122
  declare type Transport = {
2032
2123
  type: string;
2033
2124
  send(message: Uint8Array): void;