Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
b6c6b6d0
Commit
b6c6b6d0
authored
Sep 21, 2011
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX
#75
] - lighting should work again.
parent
014a8557
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/modules/fiberDisplaySimple/shaders/WMFiberDisplaySimple-vertex.glsl
...berDisplaySimple/shaders/WMFiberDisplaySimple-vertex.glsl
+3
-1
No files found.
src/modules/fiberDisplaySimple/shaders/WMFiberDisplaySimple-vertex.glsl
View file @
b6c6b6d0
...
...
@@ -73,7 +73,9 @@ void main()
// The same accounds for the vertex. Transfer it to world-space.
v_vertex
=
gl_ModelViewMatrix
*
gl_Vertex
;
v_normal
// fill this varying with a dummy. Not always needed.
v_normal
=
vec3
(
1
.
0
,
0
.
0
,
0
.
0
);
// Grab the tangent. We have uploaded it normalized in gl_Normal per vertex
// We need to transfer it to the world-space ass all further operations are done there.
...
...
Write
Preview
Markdown
is supported
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