Your system asks for reduced motion, so VFX-JS draws nothing. Demos on this site show plain HTML.

Type

EffectRenderTargetOpts

vfx-js/src/types.ts:662 ↗
import type { EffectRenderTargetOpts } from "@vfx-js/core";

Properties

filter

filter?: EffectTextureFilter

Default: "linear".

float

float?: boolean

Use 16F/32F render target. (Default: false)

mipmap

mipmap?: boolean | "manual"

Allocate a full mip chain (Default: false).

  • false: no mip storage, single level. Identical to the pre-mipmap behaviour.
  • true: full mip chain allocated, auto-regenerated after every draw whose target is this RT.
  • "manual": full mip chain allocated, regenerated only when rt.generateMipmaps() is called.

When mipmap is enabled, filter is auto-promoted on the MIN side: "linear" → trilinear, "nearest" → nearest-mip-nearest. MAG stays bilinear / nearest.

persistent

persistent?: boolean

Whether the target content should persist across frames (Default: false). Useful for feedback effects like trails or motion blur.

size

size?: readonly [number, number]

Size in physical pixels. If omitted, the target size will follow the source element size (element size * pixelRatio, auto-resized)

wrap

wrap?: EffectTextureWrap | readonly [EffectTextureWrap, EffectTextureWrap]

Default: "clamp". Tuple form specifies [wrapS, wrapT].