Commit b6c6b6d0 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX #75] - lighting should work again.

parent 014a8557
...@@ -73,7 +73,9 @@ void main() ...@@ -73,7 +73,9 @@ void main()
// The same accounds for the vertex. Transfer it to world-space. // The same accounds for the vertex. Transfer it to world-space.
v_vertex = gl_ModelViewMatrix * gl_Vertex; 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 // 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. // We need to transfer it to the world-space ass all further operations are done there.
......
Markdown is supported
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