@dcl/ecs 7.6.3-11329720055.commit-aeb6a17 → 7.6.3-11407444266.commit-d9e3bec

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.
@@ -35,6 +35,8 @@ export interface PBMaterial_UnlitMaterial {
35
35
  castShadows?: boolean | undefined;
36
36
  /** default = white; */
37
37
  diffuseColor?: Color4 | undefined;
38
+ /** default = null */
39
+ alphaTexture?: TextureUnion | undefined;
38
40
  }
39
41
  /**
40
42
  * @public
@@ -46,7 +48,7 @@ export interface PBMaterial_PbrMaterial {
46
48
  alphaTest?: number | undefined;
47
49
  /** default = true */
48
50
  castShadows?: boolean | undefined;
49
- /** default = null */
51
+ /** @deprecated Alpha textures are no longer supported on PBRMaterial and UnlitMaterial.alphaTexture should be used instead. */
50
52
  alphaTexture?: TextureUnion | undefined;
51
53
  /** default = null */
52
54
  emissiveTexture?: TextureUnion | undefined;
@@ -64,7 +64,13 @@ export var PBMaterial;
64
64
  PBMaterial.decode = decode;
65
65
  })(PBMaterial || (PBMaterial = {}));
66
66
  function createBasePBMaterial_UnlitMaterial() {
67
- return { texture: undefined, alphaTest: undefined, castShadows: undefined, diffuseColor: undefined };
67
+ return {
68
+ texture: undefined,
69
+ alphaTest: undefined,
70
+ castShadows: undefined,
71
+ diffuseColor: undefined,
72
+ alphaTexture: undefined,
73
+ };
68
74
  }
69
75
  /**
70
76
  * @public
@@ -84,6 +90,9 @@ export var PBMaterial_UnlitMaterial;
84
90
  if (message.diffuseColor !== undefined) {
85
91
  Color4.encode(message.diffuseColor, writer.uint32(34).fork()).ldelim();
86
92
  }
93
+ if (message.alphaTexture !== undefined) {
94
+ TextureUnion.encode(message.alphaTexture, writer.uint32(42).fork()).ldelim();
95
+ }
87
96
  return writer;
88
97
  }
89
98
  PBMaterial_UnlitMaterial.encode = encode;
@@ -118,6 +127,12 @@ export var PBMaterial_UnlitMaterial;
118
127
  }
119
128
  message.diffuseColor = Color4.decode(reader, reader.uint32());
120
129
  continue;
130
+ case 5:
131
+ if (tag !== 42) {
132
+ break;
133
+ }
134
+ message.alphaTexture = TextureUnion.decode(reader, reader.uint32());
135
+ continue;
121
136
  }
122
137
  if ((tag & 7) === 4 || tag === 0) {
123
138
  break;
@@ -35,6 +35,8 @@ export interface PBMaterial_UnlitMaterial {
35
35
  castShadows?: boolean | undefined;
36
36
  /** default = white; */
37
37
  diffuseColor?: Color4 | undefined;
38
+ /** default = null */
39
+ alphaTexture?: TextureUnion | undefined;
38
40
  }
39
41
  /**
40
42
  * @public
@@ -46,7 +48,7 @@ export interface PBMaterial_PbrMaterial {
46
48
  alphaTest?: number | undefined;
47
49
  /** default = true */
48
50
  castShadows?: boolean | undefined;
49
- /** default = null */
51
+ /** @deprecated Alpha textures are no longer supported on PBRMaterial and UnlitMaterial.alphaTexture should be used instead. */
50
52
  alphaTexture?: TextureUnion | undefined;
51
53
  /** default = null */
52
54
  emissiveTexture?: TextureUnion | undefined;
@@ -70,7 +70,13 @@ var PBMaterial;
70
70
  PBMaterial.decode = decode;
71
71
  })(PBMaterial = exports.PBMaterial || (exports.PBMaterial = {}));
72
72
  function createBasePBMaterial_UnlitMaterial() {
73
- return { texture: undefined, alphaTest: undefined, castShadows: undefined, diffuseColor: undefined };
73
+ return {
74
+ texture: undefined,
75
+ alphaTest: undefined,
76
+ castShadows: undefined,
77
+ diffuseColor: undefined,
78
+ alphaTexture: undefined,
79
+ };
74
80
  }
75
81
  /**
76
82
  * @public
@@ -90,6 +96,9 @@ var PBMaterial_UnlitMaterial;
90
96
  if (message.diffuseColor !== undefined) {
91
97
  colors_gen_1.Color4.encode(message.diffuseColor, writer.uint32(34).fork()).ldelim();
92
98
  }
99
+ if (message.alphaTexture !== undefined) {
100
+ texture_gen_1.TextureUnion.encode(message.alphaTexture, writer.uint32(42).fork()).ldelim();
101
+ }
93
102
  return writer;
94
103
  }
95
104
  PBMaterial_UnlitMaterial.encode = encode;
@@ -124,6 +133,12 @@ var PBMaterial_UnlitMaterial;
124
133
  }
125
134
  message.diffuseColor = colors_gen_1.Color4.decode(reader, reader.uint32());
126
135
  continue;
136
+ case 5:
137
+ if (tag !== 42) {
138
+ break;
139
+ }
140
+ message.alphaTexture = texture_gen_1.TextureUnion.decode(reader, reader.uint32());
141
+ continue;
127
142
  }
128
143
  if ((tag & 7) === 4 || tag === 0) {
129
144
  break;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.6.3-11329720055.commit-aeb6a17",
4
+ "version": "7.6.3-11407444266.commit-d9e3bec",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "files": [
@@ -33,5 +33,5 @@
33
33
  },
34
34
  "types": "./dist/index.d.ts",
35
35
  "typings": "./dist/index.d.ts",
36
- "commit": "aeb6a174ef40d64b057f9b6a37e62242fa6925ce"
36
+ "commit": "d9e3bec5637b6cef47ac088cda87fbdd3c8b9aff"
37
37
  }