The syntax is very simple. Each line is a command. The following table lists all available commands:
| Command | Arguments | Description |
|---|---|---|
| img | WIDTH HEIGHT | Sets the size of the image. First appearance only |
| aa | INTEGER | Samples per Pixel (Anti-Aliasing) |
| d | INTEGER | Maximum ray depth |
| cam | TYPE X Y Z DX DY DZ SX SY | Camera based on TYPE with 'p' being projective and 'o' a orthogonal camera. (X,Y,Z) is the origin and (DX,DY,DZ) the direction the camera is facing. SX and SY define the scale of the camera |
| lmb | NAME R G B | Lambert material |
| mir | NAME R G B | Mirror material with customizable specularity |
| gla | NAME R G B IOR | Glass material with customizable specularity and index of refraction |
| sph | MAT_NAME X Y Z RADIUS | Sphere defined by origin (X,Y,Z) and RADIUS. A material has to be associated |
| pln | MAT_NAME X0 Y0 Z0 X1 Y1 Z1 X2 Y2 Z2 | Plane defined by three points (X0,Y0,Z0), (X1,Y1,Z1) and (X2,Y2,Z2). A material has to be associated |
| arl | MAT_NAME X0 Y0 Z0 X1 Y1 Z1 X2 Y2 Z2 R G B | Area light defined like a plane but with an additional color for the emission. A material has to be associated |