@dcl/sdk 7.0.0-2906745229.commit-d06bc1c → 7.0.0-2906812801.commit-277a94d
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-
|
3
|
+
"version": "7.0.0-2906812801.commit-277a94d",
|
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-
|
31
|
-
"@dcl/build-ecs": "6.11.5-
|
30
|
+
"@dcl/amd": "6.11.5-2906812801.commit-277a94d",
|
31
|
+
"@dcl/build-ecs": "6.11.5-2906812801.commit-277a94d",
|
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": "
|
41
|
+
"commit": "277a94d4a924391d0f892a13785529bbeb6da0ee"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -235,6 +235,8 @@ declare namespace Components {
|
|
235
235
|
/** @public */
|
236
236
|
const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
237
237
|
/** @public */
|
238
|
+
const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
239
|
+
/** @public */
|
238
240
|
const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
239
241
|
/** @public */
|
240
242
|
const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
@@ -445,6 +447,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
445
447
|
CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>>;
|
446
448
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
|
447
449
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
450
|
+
Material: ComponentDefinition<ISchema<PBMaterial>>;
|
448
451
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
449
452
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
450
453
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
|
@@ -503,6 +506,13 @@ declare type ExcludeUndefined<T> = {
|
|
503
506
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
504
507
|
}[keyof T];
|
505
508
|
|
509
|
+
declare const enum FilterMode {
|
510
|
+
Point = 0,
|
511
|
+
Bilinear = 1,
|
512
|
+
Trilinear = 2,
|
513
|
+
UNRECOGNIZED = -1
|
514
|
+
}
|
515
|
+
|
506
516
|
/** @public */
|
507
517
|
declare type float = number;
|
508
518
|
|
@@ -667,6 +677,9 @@ declare interface ISize {
|
|
667
677
|
|
668
678
|
declare const log: (...a: any[]) => void;
|
669
679
|
|
680
|
+
/** @public */
|
681
|
+
declare const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
682
|
+
|
670
683
|
/**
|
671
684
|
* Class used to store matrix data (4x4)
|
672
685
|
* @public
|
@@ -1523,6 +1536,49 @@ declare interface PBGLTFShape {
|
|
1523
1536
|
src: string;
|
1524
1537
|
}
|
1525
1538
|
|
1539
|
+
declare interface PBMaterial {
|
1540
|
+
/** default = null */
|
1541
|
+
texture?: PBMaterial_Texture | undefined;
|
1542
|
+
/** default = 0.5. range value: from 0 to 1 */
|
1543
|
+
alphaTest?: number | undefined;
|
1544
|
+
/** default = true */
|
1545
|
+
castShadows?: boolean | undefined;
|
1546
|
+
/** default = null */
|
1547
|
+
alphaTexture?: PBMaterial_Texture | undefined;
|
1548
|
+
/** default = null */
|
1549
|
+
emissiveTexture?: PBMaterial_Texture | undefined;
|
1550
|
+
/** default = null */
|
1551
|
+
bumpTexture?: PBMaterial_Texture | undefined;
|
1552
|
+
/** default = white; */
|
1553
|
+
albedoColor?: Color3 | undefined;
|
1554
|
+
/** default = black; */
|
1555
|
+
emissiveColor?: Color3 | undefined;
|
1556
|
+
/** default = white; */
|
1557
|
+
reflectivityColor?: Color3 | undefined;
|
1558
|
+
/** default = TransparencyMode.Auto */
|
1559
|
+
transparencyMode?: TransparencyMode | undefined;
|
1560
|
+
/** default = 0.5 */
|
1561
|
+
metallic?: number | undefined;
|
1562
|
+
/** default = 0.5 */
|
1563
|
+
roughness?: number | undefined;
|
1564
|
+
/** default = 1 */
|
1565
|
+
glossiness?: number | undefined;
|
1566
|
+
/** default = 1 */
|
1567
|
+
specularIntensity?: number | undefined;
|
1568
|
+
/** default = 2 */
|
1569
|
+
emissiveIntensity?: number | undefined;
|
1570
|
+
/** default = 1 */
|
1571
|
+
directIntensity?: number | undefined;
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
declare interface PBMaterial_Texture {
|
1575
|
+
src: string;
|
1576
|
+
/** default = TextureWrapMode.Clamp */
|
1577
|
+
wrapMode?: TextureWrapMode | undefined;
|
1578
|
+
/** default = FilterMode.Bilinear */
|
1579
|
+
filterMode?: FilterMode | undefined;
|
1580
|
+
}
|
1581
|
+
|
1526
1582
|
declare interface PBNFTShape {
|
1527
1583
|
/** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
|
1528
1584
|
withCollisions?: boolean | undefined;
|
@@ -1993,6 +2049,14 @@ declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
|
1993
2049
|
/** @public */
|
1994
2050
|
declare const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
|
1995
2051
|
|
2052
|
+
declare const enum TextureWrapMode {
|
2053
|
+
Repeat = 0,
|
2054
|
+
Clamp = 1,
|
2055
|
+
Mirror = 2,
|
2056
|
+
MirrorOnce = 3,
|
2057
|
+
UNRECOGNIZED = -1
|
2058
|
+
}
|
2059
|
+
|
1996
2060
|
/**
|
1997
2061
|
* Constant used to convert a value to gamma space
|
1998
2062
|
* @public
|
@@ -2028,6 +2092,15 @@ z: number;
|
|
2028
2092
|
parent?: Entity | undefined;
|
2029
2093
|
}>>;
|
2030
2094
|
|
2095
|
+
declare const enum TransparencyMode {
|
2096
|
+
Opaque = 0,
|
2097
|
+
AlphaTest = 1,
|
2098
|
+
AlphaBlend = 2,
|
2099
|
+
AlphaTestAndAlphaBlend = 3,
|
2100
|
+
Auto = 4,
|
2101
|
+
UNRECOGNIZED = -1
|
2102
|
+
}
|
2103
|
+
|
2031
2104
|
declare type Transport = {
|
2032
2105
|
type: string;
|
2033
2106
|
send(message: Uint8Array): void;
|