Example 1: Render Passes

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

interact.sl

surface main( varying color Cambient = 0;

varying color Cdiffuse = 0;

varying color Cspecular = 0;

uniform float Fambient = 1;

uniform float Fdiffuse = 1;

uniform float Fspecular = 1;

)

{

Ci = Cambient*Fambient + Cdiffuse*Fdiffuse + Cspecular*Fspecular;

}