@dcl/protocol 1.0.0-2861824890.commit-748eb8b → 1.0.0-2891196094.commit-6b15eaa
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/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-2891196094.commit-6b15eaa",
|
|
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": "6b15eaaec5f6e5a601f065aeed2831fcd59902f0"
|
|
21
21
|
}
|