@remotion/light-leaks 4.0.464 → 4.0.466
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 +4 -2
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -215,6 +215,7 @@ var LightLeakInner = ({
|
|
|
215
215
|
return /* @__PURE__ */ jsx(Sequence, {
|
|
216
216
|
durationInFrames: resolvedDuration,
|
|
217
217
|
name: "<LightLeak>",
|
|
218
|
+
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/light-leaks/light-leak",
|
|
218
219
|
_experimentalControls: controls,
|
|
219
220
|
...sequenceProps,
|
|
220
221
|
style,
|
|
@@ -374,6 +375,7 @@ var linkProgram = (gl, vs, fs) => {
|
|
|
374
375
|
var lightLeak = createEffect({
|
|
375
376
|
type: "remotion/light-leak",
|
|
376
377
|
label: "Light leak",
|
|
378
|
+
documentationLink: "https://www.remotion.dev/docs/light-leaks/light-leak",
|
|
377
379
|
backend: "webgl2",
|
|
378
380
|
calculateKey: (params) => {
|
|
379
381
|
const r = resolve(params);
|
|
@@ -389,7 +391,6 @@ var lightLeak = createEffect({
|
|
|
389
391
|
throw createWebGL2ContextError("light leak effect");
|
|
390
392
|
}
|
|
391
393
|
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
|
|
392
|
-
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
393
394
|
const vs = compileShader(gl, gl.VERTEX_SHADER, LIGHT_LEAK_VS);
|
|
394
395
|
const fs = compileShader(gl, gl.FRAGMENT_SHADER, LIGHT_LEAK_FS);
|
|
395
396
|
const program = linkProgram(gl, vs, fs);
|
|
@@ -454,7 +455,7 @@ var lightLeak = createEffect({
|
|
|
454
455
|
uResolution: gl.getUniformLocation(program, "resolution")
|
|
455
456
|
};
|
|
456
457
|
},
|
|
457
|
-
apply: ({ source, width, height, params, state }) => {
|
|
458
|
+
apply: ({ source, width, height, params, state, flipSourceY }) => {
|
|
458
459
|
const r = resolve(params);
|
|
459
460
|
if (typeof r.seed !== "number" || !Number.isFinite(r.seed)) {
|
|
460
461
|
throw new TypeError(`"seed" must be a finite number, but got ${JSON.stringify(r.seed)}`);
|
|
@@ -490,6 +491,7 @@ var lightLeak = createEffect({
|
|
|
490
491
|
gl.bindTexture(gl.TEXTURE_2D, texture);
|
|
491
492
|
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
492
493
|
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
494
|
+
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipSourceY);
|
|
493
495
|
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
|
|
494
496
|
if (uSource)
|
|
495
497
|
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.466",
|
|
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.466",
|
|
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.466",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
47
47
|
},
|