/usr/share/aqsis/shaders/light/shadowdistant.sl is in aqsis 1.8.2-3.
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 | light
shadowdistant(
float intensity=1 ;
color lightcolor=1 ;
point from = point "shader" (0,0,0) ;
point to = point "shader" (0,0,1) ;
string shadowname="";
float samples=16;
float width=1;
)
{
solar( to - from, 0.0 ) {
Cl = intensity * lightcolor;
if (shadowname != "") {
Cl *= 1 - shadow(shadowname, Ps, "samples", samples,
"swidth", width, "twidth", width);
}
}
}
|