Commit a8deb305 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: disable lighting at compile time for gl33+2D

parent 9b424ae1
...@@ -76,7 +76,7 @@ def compileShaders(self): ...@@ -76,7 +76,7 @@ def compileShaders(self):
const = { const = {
'colourMode' : colourMode, 'colourMode' : colourMode,
'clipMode' : clipMode, 'clipMode' : clipMode,
'lighting' : True 'lighting' : self.threedee
} }
progs = [] progs = []
......
...@@ -414,7 +414,6 @@ class GLTractogram(globject.GLObject): ...@@ -414,7 +414,6 @@ class GLTractogram(globject.GLObject):
shader.set('colourScale', colourScale) shader.set('colourScale', colourScale)
shader.set('colourOffset', colourOffset) shader.set('colourOffset', colourOffset)
shader.set('resolution', opts.resolution) shader.set('resolution', opts.resolution)
shader.set('lighting', False)
for shader in self.iterShaders('orientation', for shader in self.iterShaders('orientation',
['vertexData', 'imageData']): ['vertexData', 'imageData']):
...@@ -438,7 +437,6 @@ class GLTractogram(globject.GLObject): ...@@ -438,7 +437,6 @@ class GLTractogram(globject.GLObject):
shader.set('modulateAlpha', opts.modulateAlpha) shader.set('modulateAlpha', opts.modulateAlpha)
shader.set('modScale', modScale) shader.set('modScale', modScale)
shader.set('modOffset', modOffset) shader.set('modOffset', modOffset)
shader.set('lighting', False)
def updateColourData(self, refresh=True): def updateColourData(self, refresh=True):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment