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

surface main( varying color Cambient = 0;
varying color Cdiffuse = 0;
varying color Cspecular = 0;
varying float Froughness = 0;
)
{
Os=1;
Oi = Os;
Ci = Os*(Cambient*ambient() +Cdiffuse*diffuse() + Cspecular*specular(N,-normalize(I),Froughness));
}
|