appendixA.html, appendixF.html, index.html, section01.html, section02.html, section03.html, section04.html, section05.html, section06.html, section07.html, section08.html, section09.html, section10.html, section11.html, section12.html, section13.html, section14.html, section15.html, section16.html
Floats | Colors | Points | Strings | Matrices | Uniform and Varying Variables
Array types is an extension that is currently supported with restrictions.
There are no l-values. An array element may only be changed by assignment. i.e. setxcomp(pt[0],3) doesn't update pt[0].
Variable sized arrays are not supported.
The spline() call with an array argument is not supported.
There is a syntax problem with the following:
string tname,tx[2];
float i=0;
texture(tx[i][channel]); /* This won't work */
texture(tx[i]); /* This won't work either */
tname = tx[i];
texture(tname); /* This will work */
texture(tname[channel]); /* This might work if you're lucky */
OK.
Colours may be specified in "rgb", "xyz", "xyY", "YIQ", "hsl", or "hsv" space, using the following construct:
color space (u,v,w)
Or in the default RGB space:
color (r,g,b)
The point type is used to represent points and vectors. The vector and normal types are also supported. However no extra checking is provided as a result of their use.
The only time vector must be used instead of point is when specifying vectors in a space. For example the expression specifies a vector in a given space:
vector space (x, y, z)
Specifying normals in this way is not currently supported. Instead, use vector, as in the above construct.
The extension of allowing string variables is not supported. String parameters are supported but only for use as texture names.
The matrix type is a supported extension.
OK.
Last modified: Mon Nov 18 11:23:25 GMT 2002