Skip to main content

Documentation Index

Fetch the complete documentation index at: https://rive-editor-sidebar-reorg.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

An opaque compiled shader module. Create via context:loadShader.

Constructors

new

new(wgslAssetName: string) -> Shader
Load a pre-compiled WGSL shader embedded in the Rive file. The name must match a shader asset added in the editor (e.g. “myEffect.wgsl”). Raw WGSL source strings are not accepted at runtime.