@remotion/light-leaks 4.0.464 → 4.0.465
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/esm/index.mjs +2 -2
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -389,7 +389,6 @@ var lightLeak = createEffect({
|
|
|
389
389
|
throw createWebGL2ContextError("light leak effect");
|
|
390
390
|
}
|
|
391
391
|
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
392
|
-
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
393
392
|
const vs = compileShader(gl, gl.VERTEX_SHADER, LIGHT_LEAK_VS);
|
|
394
393
|
const fs = compileShader(gl, gl.FRAGMENT_SHADER, LIGHT_LEAK_FS);
|
|
395
394
|
const program = linkProgram(gl, vs, fs);
|
|
@@ -454,7 +453,7 @@ var lightLeak = createEffect({
|
|
|
454
453
|
uResolution: gl.getUniformLocation(program, "resolution")
|
|
455
454
|
};
|
|
456
455
|
},
|
|
457
|
-
apply: ({ source, width, height, params, state }) => {
|
|
456
|
+
apply: ({ source, width, height, params, state, flipSourceY }) => {
|
|
458
457
|
const r = resolve(params);
|
|
459
458
|
if (typeof r.seed !== "number" || !Number.isFinite(r.seed)) {
|
|
460
459
|
throw new TypeError(`"seed" must be a finite number, but got ${JSON.stringify(r.seed)}`);
|
|
@@ -490,6 +489,7 @@ var lightLeak = createEffect({
|
|
|
490
489
|
gl.bindTexture(gl.TEXTURE_2D, texture);
|
|
491
490
|
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
492
491
|
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
492
|
+
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipSourceY);
|
|
493
493
|
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
|
|
494
494
|
if (uSource)
|
|
495
495
|
gl.uniform1i(uSource, 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/light-leaks",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.465",
|
|
4
4
|
"description": "Light leak effects for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.465",
|
|
27
27
|
"zod": "4.3.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "19.2.3",
|
|
43
43
|
"react-dom": "19.2.3",
|
|
44
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.465",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
47
47
|
},
|