Companion

object Companion

Functions

Link copied to clipboard

The vertex attributes materials can require, with the names their shaders see them by.

Link copied to clipboard
fun init()

Initializes the compiler; call before building any material. Calls nest: pair each with shutdown.

Link copied to clipboard

Loads filamat-kmp.wasm (the page must include filamat-kmp.js). Call MaterialBuilder.init and build materials only after onReady fires. Safe to call again.

Link copied to clipboard
fun shutdown()

Releases the compiler's resources; init must precede another build.