/usr/share/aqsis/examples/point_based_gi/cornellbox/bake_points.sl is in aqsis-examples 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 | surface bake_points(color Cemit = 0;
string pointCloudName = "")
{
normal Nn = normalize(N);
color col = Cemit + Cs*(diffuse(Nn) + ambient());
if(pointCloudName != "")
{
bake3d(pointCloudName, "", P, Nn,
"_area", area(P),
"_radiosity", col,
"interpolate", 1);
}
Oi = Os;
Ci = col*Oi;
}
|