/usr/share/aqsis/shaders/surface/shinymetal.sl is in aqsis 1.8.1-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /*
* shinymetal.sl - metal with environment mapped reflections
*/
surface
shinymetal (float Ka = 1, Ks = 1, Kr = 1;
float roughness = .1;
string texturename = "";)
{
vector V = normalize(I);
normal Nf = faceforward (normalize(N),V);
vector D = vtransform ("world", reflect (V, Nf));
color env;
if (texturename != "")
env = Kr * color environment (texturename, D);
else env = 0;
Oi = Os;
Ci = Os * Cs * (Ka*ambient() + Ks*specular(Nf,-V,roughness) + env);
}
|