Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes
Commits
a8deb305
Commit
a8deb305
authored
May 03, 2022
by
Paul McCarthy
🚵
Browse files
BF: disable lighting at compile time for gl33+2D
parent
9b424ae1
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsleyes/gl/gl33/gltractogram_funcs.py
View file @
a8deb305
...
...
@@ -76,7 +76,7 @@ def compileShaders(self):
const
=
{
'colourMode'
:
colourMode
,
'clipMode'
:
clipMode
,
'lighting'
:
Tru
e
'lighting'
:
self
.
threede
e
}
progs
=
[]
...
...
fsleyes/gl/gltractogram.py
View file @
a8deb305
...
...
@@ -414,7 +414,6 @@ class GLTractogram(globject.GLObject):
shader
.
set
(
'colourScale'
,
colourScale
)
shader
.
set
(
'colourOffset'
,
colourOffset
)
shader
.
set
(
'resolution'
,
opts
.
resolution
)
shader
.
set
(
'lighting'
,
False
)
for
shader
in
self
.
iterShaders
(
'orientation'
,
[
'vertexData'
,
'imageData'
]):
...
...
@@ -438,7 +437,6 @@ class GLTractogram(globject.GLObject):
shader
.
set
(
'modulateAlpha'
,
opts
.
modulateAlpha
)
shader
.
set
(
'modScale'
,
modScale
)
shader
.
set
(
'modOffset'
,
modOffset
)
shader
.
set
(
'lighting'
,
False
)
def
updateColourData
(
self
,
refresh
=
True
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment