Cauldron3D.Net.Page (Cauldron3D.Net v0.3.3)

Copy Markdown View Source

A plug serving a page that shows one scene, filling the browser window, with the scripts it loads: GET / the page, GET /cauldron3d.js the client, GET /phoenix.min.js Phoenix's socket client. three.js comes from jsDelivr (version three_version/0).

forward "/watch", to: Cauldron3D.Net.Page, init_opts: [scene: "courtyard", socket: "/scene_socket"]

Options: :scene (required, the scene id), :socket (the socket path, default "/socket"), :topic (default "scene"), :title.

Summary

Functions

The three.js version the page loads.

Functions

three_version()

@spec three_version() :: String.t()

The three.js version the page loads.