Props
Props are written in kebab-case in templates (model-data) and camelCase in JavaScript (modelData). The option types (CameraOptions, LightOptions, DirectionalLightOptions, CameraInteractionOptions, Vec3, AnimationData) are exported from vue-vrm.
Model and animation
Canvas
Rendering
When render is set, the component still updates the animation mixer and vrm.update() before calling it, with the same delta. It replaces the default rendering and the built-in shader-pass composer, and it is also used by captureScreenshot(). A new function takes effect from the next frame.
The following example applies an EffectComposer with a custom glitch pass. The composer is created on renderer:ready, resized on resize, and disposed on renderer:dispose (see Events). The renderer, scene, and camera stay the same while models are swapped, so the composer does not need to be rebuilt on model:loaded.