7 - TransformationsRayshade supports the application of linear transformations to objects and textures. If more than one transformation is specified, the total resulting transformation is computed and applied.
/*
* Ellipsoid, rotated cube
*/
sphere 1. 0 0 0 scale 2. 1. 1. translate 0 0 -2.5
box 0 0 0 .5 .5 .5
rotate 0 0 1 45 rotate 1 0 0 45 translate 0 0 2.5
Transformations may also be applied to textures:
plane 0 0 -4 0 0 1
texture checker red scale 2 2 2 rotate 0 0 1 45
Note that transformation parameters may be specified using of animated
expressions, causing the transformations themselves to be animated.
See Appendix B for further details.
Go to the next section Texturing Go to the Contents |