Example 2: Light Passes

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

interact.rib

Attribute "identifier" "string name" ["balancer"]

 

Surface "interact.sl" "intensityA" [1] "lightcolorA" [0.15 0.15 0.15]

"intensity1" [1] "lightcolor1" [1 0.9 0.7]

"intensity2" [1] "lightcolor2" [0.4 0.3 0.6]

"intensity3" [1.6] "lightcolor3" [0.6 0.0.3 0.0]

 

Attribute "identifier" "string name" ["geometry"]

 

Geometry "image" "filename" [ "ambient.tif:Cambient"

"light1.tif:Clight1"

"light2.tif:Clight2"

"light3.tif:Clight3" ]