/usr/share/aqsis/shaders/displacement/wavy.sl is in aqsis 1.8.2-10.
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 | /*
Wavy
*/
displacement wavy(float amplitude=10.0; float freq=8)
{
point Pw = transform("world",P);
float x = xcomp(Pw);
float y = ycomp(Pw);
float a = atan(y/x);
if (x<0) a=a-PI;
vector vz = vector "world" (0,0,1);
P += (amplitude*sin(freq*a)+amplitude*sin(freq*0.5*a+0.6))*vz;
N=calculatenormal(P);
}
|