Skip to content
alkemist

Graphics

Explore three-dimensional models and interactive shader studies.

Change the GLB or glTF source, poster, and description. Orbit, wireframe, and spin are viewer controls inside the preview; they are not component props.

Model

Preview loads when it becomes visible.

Component parameters
Source code
model.astro
---
import Model from "@alkemdotdev/alkemist-components/model";
---

<Model
  id={""}
  src={"/test/torus-knot.glb"}
  title={"A torus knot"}
  description={"Drag to inspect this generated teaching mesh."}
  poster={"/test/torus-knot.svg"}
  view={"perspective"}
  wireframe={false}
  parameters={false}
  class={""}
/>

Read the Model reference →

Change the frequency and source angle of the interference study. Play the waves inside the preview. This is a fixed study, not an arbitrary shader compiler.

Shader

Preview loads when it becomes visible.

Component parameters
Source code
shader.astro
---
import Shader from "@alkemdotdev/alkemist-components/shader";
---

<Shader
  id={""}
  title={"Two wave sources"}
  frequency={9}
  angle={24}
  parameters={true}
  class={""}
/>

Read the Shader reference →