home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Shaders / TexturingAndModeling:AProceduralApproach / KMShaders / planet.rib < prev    next >
Encoding:
Text File  |  1995-03-22  |  1.4 KB  |  57 lines

  1. # modified by wave to reflect new shader names
  2. #
  3. # planet.rib
  4. #
  5. # Test file for the venus.sl shader.  See pp. 277-279.
  6. #
  7. # Reference:
  8. #    _Texturing and Modeling: A Procedural Approach_, by David S. Ebert, ed.,
  9. #    F. Kenton Musgrave, Darwyn Peachey, Ken Perlin, and Steven Worley.
  10. #    Academic Press, 1994.  ISBN 0-12-228760-6.
  11. #
  12.  
  13. version 3.03
  14. ShadingRate 0.25
  15. Display "planet.tif" "file" "rgb"
  16. Format 256 256 -1
  17.  
  18. Projection "perspective" "fov" 25
  19. Rotate -90 1 0 0
  20. Translate 0 -5 0
  21.  
  22. WorldBegin
  23.  
  24.   LightSource "ambientlight" 1 "intensity" [0.025]
  25.   Declare "shadows" "string"
  26.   Attribute "light" "shadows" "on"
  27.   LightSource "distantlight" 2 "from" [1 1 .1] "to" [0 0 0]
  28.  
  29.   AttributeBegin
  30.     Declare "pswidth" "float"
  31.     Declare "frequency" "float"
  32.     Declare "casts_shadows" "string"
  33.     Attribute "render" "casts_shadows" "none"
  34.     Surface "LGStarField" "pswidth" .25 "frequency" 3 "intensity" 2
  35.     Sphere 100 -100 100 360
  36.   AttributeEnd
  37.  
  38.   AttributeBegin
  39.     Declare "sea_level" "float"
  40.     Rotate 90 0 0 1
  41.     Surface "KMTerran" "sea_level" 0.15
  42.     Displacement "KMTerranBump" "sea_level" 0.15
  43.     Color [.05 .05 .4]
  44.     Sphere 1 -1 1 360
  45.   AttributeEnd
  46.  
  47.   AttributeBegin
  48.     Declare "casts_shadows" "string"
  49.     Attribute "render" "casts_shadows" "shade"
  50.     Declare "offset" "float"
  51.     Surface "KMPlanetClouds" "offset" 0.25
  52.     Sphere 1.02 -1.02 1.02 360
  53.   AttributeEnd
  54.  
  55. WorldEnd
  56.