This file is indexed.

/usr/share/pyshared/glitch/limbo/material.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
import OpenGL.GL as gl

import glitch

class Material(glitch.Node):
    def __init__(self, r=0, g=0, b=0, a=1, **kw):
        glitch.Node.__init__(self, **kw)
        (self.r, self.g, self.b, self.a) = (r, g, b, a)

    def render(self, ctx):
        gl.glPushAttrib(gl.GL_LIGHTING_BIT)
        glitch.Node.render(self, ctx)
        gl.glPopAttrib()

    def draw(self, ctx):
        gl.glMaterialfv(
            gl.GL_FRONT_AND_BACK, gl.GL_AMBIENT_AND_DIFFUSE,
            (self.r, self.g, self.b, self.a))