/usr/share/aqsis/shaders/volume/depthcue.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 18 | /* depthcue.sl - Standard depthcue volume shader for RenderMan Interface.
* (c) Copyright 1988, Pixar.
*
* The RenderMan (R) Interface Procedures and RIB Protocol are:
* Copyright 1988, 1989, Pixar. All rights reserved.
* RenderMan (R) is a registered trademark of Pixar.
*/
volume
depthcue (float mindistance = 0, maxdistance = 1;
color background = 0;)
{
float d;
d = clamp ((depth(P) - mindistance) / (maxdistance - mindistance), 0, 1);
Ci = mix (Ci, background, d);
}
|