@remotion/effects 4.0.475 → 4.0.477

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.
@@ -0,0 +1,8 @@
1
+ export declare const EffectInternals: {
2
+ readonly halftone: (params?: (import("./halftone.js").HalftoneParams & {
3
+ readonly disabled?: boolean | undefined;
4
+ }) | undefined) => import("remotion").EffectDescriptor<unknown>;
5
+ readonly tint: (params: import("./tint.js").TintParams & {
6
+ readonly disabled?: boolean | undefined;
7
+ }) => import("remotion").EffectDescriptor<unknown>;
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as blurExports from '../blur/index.js';
2
+ export type { BlurParams } from '../blur/index.js';
3
+ declare const blur: (params: blurExports.BlurParams & {
4
+ readonly disabled?: boolean | undefined;
5
+ }) => import("remotion").EffectDescriptor<unknown>;
6
+ export { blur };
@@ -109,6 +109,11 @@ var parseColorRgba = (ctx, color) => {
109
109
  // src/fisheye/fisheye-runtime.ts
110
110
  import { Internals } from "remotion";
111
111
 
112
+ // src/uv-coordinate.ts
113
+ var publicUvToShaderUv = (uv) => {
114
+ return [uv[0], 1 - uv[1]];
115
+ };
116
+
112
117
  // src/fisheye/fisheye-shaders.ts
113
118
  var FISHEYE_VS = `#version 300 es
114
119
  layout(location = 0) in vec2 aPos;
@@ -317,8 +322,10 @@ var applyFisheye = ({
317
322
  gl.useProgram(program);
318
323
  if (uniforms.uSource)
319
324
  gl.uniform1i(uniforms.uSource, 0);
320
- if (uniforms.uCenter)
321
- gl.uniform2f(uniforms.uCenter, center[0], center[1]);
325
+ if (uniforms.uCenter) {
326
+ const shaderCenter = publicUvToShaderUv(center);
327
+ gl.uniform2f(uniforms.uCenter, shaderCenter[0], shaderCenter[1]);
328
+ }
322
329
  if (uniforms.uFieldOfView)
323
330
  gl.uniform1f(uniforms.uFieldOfView, fieldOfView);
324
331
  if (uniforms.uRadius)