/usr/share/oce-0.18/src/Shaders/RaytraceRender.fs is in liboce-visualization11 0.18.2-2build1.
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 | out vec4 OutColor;
// =======================================================================
// function : main
// purpose :
// =======================================================================
void main (void)
{
SRay aRay = GenerateRay (vPixel);
vec3 aInvDirect = 1.f / max (abs (aRay.Direct), SMALL);
aInvDirect = vec3 (aRay.Direct.x < 0.f ? -aInvDirect.x : aInvDirect.x,
aRay.Direct.y < 0.f ? -aInvDirect.y : aInvDirect.y,
aRay.Direct.z < 0.f ? -aInvDirect.z : aInvDirect.z);
OutColor = clamp (Radiance (aRay, aInvDirect), 0.f, 1.f);
}
|