This file is indexed.

/usr/share/pyshared/glitch/limbo/fog.py is in python-glitch 0.6-3.

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
20
21
22
23
24
25
26
27
"Fog."

import OpenGL.GL as gl

import glitch

class Fog(glitch.Node):
    "Set OpenGL fog parameters."

    def __init__(self,
            r=0.2, g=0.2, b=0.2, a=0, density=0.3, start=0, end=1, **kw):
        glitch.Node.__init__(self, **kw)
        (self.r, self.g, self.b, self.a) = (r, g, b, a)
        self.density = density
        (self.start, self.end) = start, end

    def render(self, ctx):
        gl.glPushAttrib(gl.GL_ENABLE_BIT)
        gl.glEnable(gl.GL_FOG)
        gl.glFogi(gl.GL_FOG_MODE, gl.GL_EXP2)
        gl.glFogfv(gl.GL_FOG_COLOR, [self.r, self.g, self.b, self.a])
        gl.glFogf(gl.GL_FOG_DENSITY, self.density)
        gl.glFogf(gl.GL_FOG_START, self.start)
        gl.glFogf(gl.GL_FOG_END, self.end)
        gl.glHint(gl.GL_FOG_HINT, gl.GL_NICEST)
        glitch.Node.render(self, ctx)
        gl.glPopAttrib()