@scottcampbelldata/vexel-creative
v0.1.0
Published
WebGPU particles, atmosphere, toon shading and post-processing for Vexel.
Downloads
188
Readme
@scottcampbelldata/vexel-creative
WebGPU particles, wind obstacles, procedural atmosphere, toon shading, HDR targets and post-processing for Vexel.
npm install @scottcampbelldata/vexel-core @scottcampbelldata/vexel-creativeimport { Engine } from '@scottcampbelldata/vexel-core';
import { GPUParticles } from '@scottcampbelldata/vexel-creative';
const canvas = document.querySelector<HTMLCanvasElement>('canvas')!;
const engine = await Engine.create(canvas, { backend: 'webgpu' });
engine.use(new GPUParticles({ count: 5000, sort: true, curl: 0.2 }));
engine.start();Call engine.dispose() on teardown. Creative rendering requires supported WebGPU hardware on HTTPS or localhost. Import individual effects to let your bundler remove unused features.
This ESM package includes TypeScript declarations and requires @scottcampbelldata/vexel-core 0.1.0. See the effect options and limitations.
MIT licensed.
