Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adds a new effect to the @remotion/effects package, covering WebGL2 implementation, exports, docs, demos, and builds.
45% 82%+36 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 10 of 22 without it.
This test ran on v2. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
@remotion/effects effectUse this skill when adding a new effect to @remotion/effects.
packages/effects/src/<effect-name>.ts for simple effects.packages/effects/src/<effect-name>/ plus a top-level re-export file when the effect needs multiple shaders, runtime helpers, or multiple files.chromatic-aberration)chromaticAberration)ChromaticAberrationParams)remotion/<kebab-case-name>In the effect file:
InteractivitySchema and Internals from remotion.const {createEffect, createWebGL2ContextError} = Internals;.const values.satisfies InteractivitySchema for Studio visual editing.[u, v] tuple and one type: 'uv-coordinate' schema field. [0, 0] is the top-left corner and [1, 1] is the bottom-right. Convert to pixels or shader coordinates in the renderer.origin and direction, setting visual: {type: 'line', to: 'direction'} on origin connects their handles in Studio.resolve() helper.packages/effects/src/validate-effect-param.tspackages/effects/src/color-utils.tscreateWebGL2ContextError('<effect name> effect') if WebGL2 cannot be acquired.documentationLink to https://www.remotion.dev/effects/<slug>.calculateKey().For WebGL2 effects, use this general structure:
import type {InteractivitySchema} from 'remotion';
import {Internals} from 'remotion';
import {assertOptionalFiniteNumber, validateUnitInterval} from './color-utils.js';
Next to this one in the catalogue, plus more from the same author.