Wednesday, May 10, 2006

Slim: Basic Shading template

To import in console type: slim ReadSlimFile "path/nameOfFile.slim"

slim 1 extensions pixardb {
extensions Sheldon ss {
template shadingmodel Const {

parameter color SurfaceColor {
label "Surface Color"
detail varying
default "0 .25 1"
}

parameter color SurfaceOpacity {
label "Opacity"
detail varying
default "1 1 1"
}

collection shadingmodel shadingmodel {
access output
display hidden

parameter color CI {
detail varying
default "0 .25 1"
access output
}

parameter color OI {
detail varying
default "1 1 1"
access output
}
}

RSLFunction {
void ssConst(color SurfaceColor;
color SurfaceOpacity;
output color CI;
output color OI; )
{
CI = SurfaceOpacity * SurfaceColor;
OI = SurfaceOpacity;
}
}
}
}
}

0 Comments:

Post a Comment

<< Home