Commit b6c6b6d0 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX #75] - lighting should work again.

parent 014a8557
......@@ -73,7 +73,9 @@ void main()
// The same accounds for the vertex. Transfer it to world-space.
v_vertex = gl_ModelViewMatrix * gl_Vertex;
// 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.
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