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.
@@ -893,8 +893,15 @@ var init_Materials = __esm({
893
893
  material.blending = import_three5.CustomBlending;
894
894
  material.blendSrc = import_three5.OneFactor;
895
895
  material.blendDst = import_three5.OneFactor;
896
- material.blendSrcAlpha = import_three5.ZeroFactor;
897
- material.blendDstAlpha = import_three5.OneFactor;
896
+ material.blendSrcAlpha = import_three5.OneFactor;
897
+ material.blendDstAlpha = import_three5.OneMinusSrcAlphaFactor;
898
+ material.onBeforeCompile = (shader) => {
899
+ shader.fragmentShader = shader.fragmentShader.replace(
900
+ "#include <dithering_fragment>",
901
+ "gl_FragColor.a = max(gl_FragColor.r, max(gl_FragColor.g, gl_FragColor.b));\n#include <dithering_fragment>"
902
+ );
903
+ };
904
+ material.customProgramCacheKey = () => "energy_swirl";
898
905
  material.color.set(8421504);
899
906
  break;
900
907
  case "water_mask":