# flame.rib # # Test file for the flame.sl shader. see pp. 279-280 # # Reference: # _Texturing and Modeling: A Procedural Approach_, by David S. Ebert, ed., # F. Kenton Musgrave, Darwyn Peachey, Ken Perlin, and Steven Worley. # Academic Press, 1998. ISBN 0-12-228730-4. # # version 3.03 ShadingRate 1 PixelSamples 1 1 Format 400 400 1 Display "flame.tif" "file" "rgb" Projection "perspective" "fov" 25 Translate 0 0 4 Rotate -90 1 0 0 Translate 0 0 -0.8 WorldBegin AttributeBegin Declare "flameheight" "float" Declare "flameamplitude" "float" Declare "chaosoffset" "float" Surface "flame" "flameheight" .5 "chaosoffset" 0.4 Patch "bilinear" "P" [-2 0 3 2 0 3 -2 0 -2 2 0 -2] AttributeEnd WorldEnd