Back to Remotion

Using WebGL and WebGPU during renders

packages/docs/docs/webgl.mdx

4.0.505928 B
Original Source

Some Remotion packages and third-party libraries use WebGL or WebGPU during rendering, including @remotion/effects, @remotion/three, Skia and map libraries.

Remotion 5.0

In Remotion 5.0, you don't need to specify any option for --gl. The renderer does automatically enable WebGL and WebGPU if possible and uses software fallbacks otherwise.

Remotion 4.0

In Remotion 4.0, enable WebGL and WebGPU when rendering from the CLI:

bash
npx remotion render --gl=angle

To use angle by default for Studio and CLI renders, set it in remotion.config.ts:

ts
import {Config} from '@remotion/cli/config';
// ---cut---
Config.setChromiumOpenGlRenderer('angle');

See Config.setChromiumOpenGlRenderer() and the --gl flag reference for more renderer options.