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.
@@ -944,8 +944,15 @@ var init_Materials = __esm({
944
944
  material.blending = import_three5.CustomBlending;
945
945
  material.blendSrc = import_three5.OneFactor;
946
946
  material.blendDst = import_three5.OneFactor;
947
- material.blendSrcAlpha = import_three5.ZeroFactor;
948
- material.blendDstAlpha = import_three5.OneFactor;
947
+ material.blendSrcAlpha = import_three5.OneFactor;
948
+ material.blendDstAlpha = import_three5.OneMinusSrcAlphaFactor;
949
+ material.onBeforeCompile = (shader) => {
950
+ shader.fragmentShader = shader.fragmentShader.replace(
951
+ "#include <dithering_fragment>",
952
+ "gl_FragColor.a = max(gl_FragColor.r, max(gl_FragColor.g, gl_FragColor.b));\n#include <dithering_fragment>"
953
+ );
954
+ };
955
+ material.customProgramCacheKey = () => "energy_swirl";
949
956
  material.color.set(8421504);
950
957
  break;
951
958
  case "water_mask":