@dcl/protocol 1.0.0-2861824890.commit-748eb8b → 1.0.0-2920351961.commit-161c395
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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "common/id.proto";
|
|
4
|
+
option (ecs_component_id) = 1018;
|
|
5
|
+
|
|
6
|
+
message PBMeshRenderer {
|
|
7
|
+
message BoxMesh {
|
|
8
|
+
repeated float uvs = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message CylinderMesh {
|
|
12
|
+
optional float radius_top = 1; // default=1.0
|
|
13
|
+
optional float radius_bottom = 2; // default=1.0
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message PlaneMesh {
|
|
17
|
+
repeated float uvs = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message SphereMesh {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
oneof mesh {
|
|
24
|
+
BoxMesh box = 1;
|
|
25
|
+
SphereMesh sphere = 2;
|
|
26
|
+
CylinderMesh cylinder = 3;
|
|
27
|
+
PlaneMesh plane = 4;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-2920351961.commit-161c395",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"renderer-protocol",
|
|
18
18
|
"ecs"
|
|
19
19
|
],
|
|
20
|
-
"commit": "
|
|
20
|
+
"commit": "161c395bb96619a34c6f6da3034b957c571312e9"
|
|
21
21
|
}
|