# # A simple RIB file that loads and renders a JPatch model. # Change the filename in the ReadArchive statement below # to the full path to the JPatch include file. # FrameBegin 1 Format 640 480 1 PixelSamples 4 4 PixelFilter "gaussian" 4 4 ShadingRate 1 Projection "perspective" "fov" [30] Translate 0 0 100 Declare "background" "color" Imager "background" "background" [0.5 0.5 1.0] WorldBegin LightSource "distantlight" 0 "to" [1 -1 1] "intensity" 1 "lightcolor" [1 1 1] LightSource "distantlight" 1 "to" [-1 0 1] "intensity" 0.5 "lightcolor" [1 1 1] LightSource "distantlight" 2 "to" [0 -1 -1] "intensity" 1.5 "lightcolor" [1 1 1] ReadArchive "JPATCH_MODEL.rib" # jpatch include file WorldEnd FrameEnd