# Examples

Formulas are compiled to GLSL and run on the GPU. The full generated source of the vertex shader is shown below.

Formulas are defined using a simple stack based language similar to the previous TA iteration. Commands:

`*`

multiply`+`

add`-`

subtract`/`

divide`s`

sine`c`

cosine`c`

tangent (mnemonic: "hypotenuse")`t`

current time in seconds`a`

current angle in radians`m`

absolute value (mnemonic: "magnitude")`n`

negate`d`

sign (mnemonic: "direction")

# Debug: Compiled Shader Source

```
```