/usr/share/k3d/shaders/k3d_isshad.h is in k3d-data 0.8.0.3-3build1.
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 | /***********************************************************/
/*** Return 1 if we're pretty sure this is a shadow pass ***/
/***********************************************************/
float is_shadow_pass()
{
float fmt[3];
string sc;
float is = 0;
option("Format",fmt);
attribute("identifier:name",sc);
/* square pic - can't be a regular camera */
/* not a glimpse editor window? */
if ((sc != "<unnamed>") &&
((fmt[0] == fmt[1]) && (fmt[2] == 1.0)) ) {
is = 1;
}
return(is);
}
|