shaders 2.0.0-alpha.5 → 2.0.0-alpha.6
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/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/vue/index.js +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -31552,7 +31552,7 @@ const int = (r) => {
|
|
|
31552
31552
|
}
|
|
31553
31553
|
return /* @__PURE__ */ Ir(le.Provider, { value: h, children: r.children });
|
|
31554
31554
|
}, bl = { name: "FilmGrain", props: { intensity: { type: Number, default: 1, description: "Grain intensity" } }, fragmentNode: ({ uniforms: r, childNode: t }) => {
|
|
31555
|
-
let e = t || ug(0, 0, 0, 0), s = TN(), i = s.x.add(4).mul(s.y.add(4)).mul(MN.mul(
|
|
31555
|
+
let e = t || ug(0, 0, 0, 0), s = TN(), i = s.x.add(4).mul(s.y.add(4)).mul(MN.mul(10)), n = i.mod(13).add(1), a = i.mod(123).add(1), o = n.mul(a).mod(0.01).sub(5e-3), l = o.mul(r.intensity.uniform).mul(10);
|
|
31556
31556
|
return ug(e.x.add(l), e.y.add(l), e.z.add(l), e.w);
|
|
31557
31557
|
} };
|
|
31558
31558
|
function Att(r, t) {
|