Share:
Explanatory Examples
Interesting 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/
divides
sinec
cosinec
tangent (mnemonic: "hypotenuse")t
current time in secondsx
current x value in radiansm
absolute value (mnemonic: "magnitude")n
negated
sign (mnemonic: "direction")
Debug: Compiled Shader Source