Example 4: Surface Attribute Mesh

Text    hb_plastic.sl    prepare.rib    Makefile    interact.sl    interact.rib

prepare.rib

Option "searchpath" "shader" ["&:.:../../lib/prman:../../shaders/plain"]

 

Format 640 480 1

 

Hider "hidden" "jitter" [0]

 

FrameBegin 0

 

ShadingRate 1

 

Display "prepare.tif" "tiff" "rgba"

 

Option "user" "uniform string interact_stream_filename" [ "scene.hbsas" ]

 

Attribute "cull" "hidden" 0

Attribute "cull" "backfacing" 0

Attribute "dice" "rasterorient" 0

ReadArchive "../lib/view.rib"

 

WorldBegin

 

ReadArchive "../lib/lights.rib"

 

Attribute "visibility" "string transmission" ["opaque"]

Attribute "visibility" "int trace" [1]

Attribute "trace" "displacements" 1

 

ReadArchive "../lib/scene.rib"

 

WorldEnd

 

FrameEnd