Skip to content

🎥 Make videos programmatically with React

alright

Jonny Burger0b0ab1425a76
diff --git a/packages/example/src/Skia/Blur.tsx b/packages/example/src/Skia/Blur.tsx
index b3032f9cee..3ba376c2ec 100644
--- a/packages/example/src/Skia/Blur.tsx
+++ b/packages/example/src/Skia/Blur.tsx
@@ -14,8 +14,6 @@ import {
useCurrentFrame,
} from 'remotion';
-import type {Transition} from './Base';
-
type Value = string | number;
type Values = Value[];
@@ -33,7 +31,7 @@ export const frag = (source: TemplateStringsArray, ...values: Values) => {
return rt;
};
-export const transition = (t: Transition) => {
+export const transition = (t: string) => {
return frag`
uniform shader image1;
uniform shader image2;
@@ -58,7 +56,7 @@ export const transition = (t: Transition) => {
`;
};
-export const cube: Transition = glsl`
+export const cube: string = glsl`
// GL Transitions format
uniform float strength;
diff --git a/packages/example/src/Skia/Shader.tsx b/packages/example/src/Skia/Shader.tsx
index 85048b68b6..db9c45074f 100644
--- a/packages/example/src/Skia/Shader.tsx
+++ b/packages/example/src/Skia/Shader.tsx
@@ -9,8 +9,6 @@ import {
import React from 'react';
import {staticFile, useCurrentFrame} from 'remotion';
-import type {Transition} from './Base';
-
type Value = string | number;
type Values = Value[];
@@ -28,7 +26,7 @@ export const frag = (source: TemplateStringsArray, ...values: Values) => {
return rt;
};
-export const transition = (t: Transition) => {
+export const transition = (t: string) => {
return frag`
uniform shader image1;
uniform shader image2;
@@ -53,7 +51,7 @@ export const transition = (t: Transition) => {
`;
};
-export const cube: Transition = glsl`
+export const cube = glsl`
// Author: gre
// License: MIT
const float persp = 0.7;