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/browser/index.js +9 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +10 -3
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +9 -2
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.js +9 -2
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +10 -3
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -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.
|
|
897
|
-
material.blendDstAlpha = import_three5.
|
|
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":
|