# planet.rib # # Test file for the venus.sl shader. See pp. 277-279. # # Reference: # _Texturing and Modeling: A Procedural Approach_, by David S. Ebert, ed., # F. Kenton Musgrave, Darwyn Peachey, Ken Perlin, and Steven Worley. # Academic Press, 1994. ISBN 0-12-228760-6. # # version 3.03 ShadingRate 1 Display "planet.tif" "file" "rgb" Format 400 400 1 Projection "perspective" "fov" 35 Rotate -90 1 0 0 Translate 0 -5 0 WorldBegin LightSource "ambientlight" 1 "intensity" [0.025] Declare "shadows" "string" Attribute "light" "shadows" "on" LightSource "distantlight" 2 "from" [1 1 .1] "to" [0 0 0] AttributeBegin Declare "pswidth" "float" Declare "frequency" "float" Declare "casts_shadows" "string" Attribute "render" "casts_shadows" "none" Surface "starfield" "pswidth" .25 "frequency" 3 "intensity" 2 Sphere 100 -100 100 360 AttributeEnd AttributeBegin Declare "sea_level" "float" Rotate 90 0 0 1 Surface "terran" "sea_level" 0.15 Color [.05 .05 .4] Sphere 1 -1 1 360 AttributeEnd AttributeBegin Declare "casts_shadows" "string" Attribute "render" "casts_shadows" "shade" Declare "offset" "float" Surface "planetclouds" "offset" 0.25 Sphere 1.02 -1.02 1.02 360 AttributeEnd WorldEnd