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/node/index.js
CHANGED
|
@@ -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.
|
|
948
|
-
material.blendDstAlpha = import_three5.
|
|
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":
|