minerender 2.1.0-alpha.64 → 2.1.0-alpha.65

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/bundle.js CHANGED
@@ -33207,8 +33207,15 @@ var MineRender = (() => {
33207
33207
  material.blending = CustomBlending;
33208
33208
  material.blendSrc = OneFactor;
33209
33209
  material.blendDst = OneFactor;
33210
- material.blendSrcAlpha = ZeroFactor;
33211
- material.blendDstAlpha = OneFactor;
33210
+ material.blendSrcAlpha = OneFactor;
33211
+ material.blendDstAlpha = OneMinusSrcAlphaFactor;
33212
+ material.onBeforeCompile = (shader) => {
33213
+ shader.fragmentShader = shader.fragmentShader.replace(
33214
+ "#include <dithering_fragment>",
33215
+ "gl_FragColor.a = max(gl_FragColor.r, max(gl_FragColor.g, gl_FragColor.b));\n#include <dithering_fragment>"
33216
+ );
33217
+ };
33218
+ material.customProgramCacheKey = () => "energy_swirl";
33212
33219
  material.color.set(8421504);
33213
33220
  break;
33214
33221
  case "water_mask":