@expofp/renderer 3.2.4 → 3.2.5
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.
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1146,13 +1146,16 @@ var MaterialSystem = class {
|
|
|
1146
1146
|
const material = new materialConstructor({
|
|
1147
1147
|
...sharedParameters,
|
|
1148
1148
|
color,
|
|
1149
|
-
opacity
|
|
1150
|
-
transparent
|
|
1149
|
+
opacity
|
|
1151
1150
|
});
|
|
1151
|
+
material.blending = CustomBlending;
|
|
1152
|
+
material.blendSrc = SrcAlphaFactor;
|
|
1153
|
+
material.blendSrcAlpha = OneFactor;
|
|
1152
1154
|
if (transparent) {
|
|
1153
1155
|
material.depthWrite = false;
|
|
1154
1156
|
material.depthFunc = LessDepth;
|
|
1155
|
-
}
|
|
1157
|
+
}
|
|
1158
|
+
if (params.depthEnable) material.depthFunc = LessEqualDepth;
|
|
1156
1159
|
this.patchMaterial(material, { lightingEnable: params.lightingEnable });
|
|
1157
1160
|
return material;
|
|
1158
1161
|
}
|