Commit 4d9eb0a6 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] reenabled lighting from both sides. Thanks to Sebastian.

parent 449b70a2
...@@ -43,10 +43,10 @@ void main() ...@@ -43,10 +43,10 @@ void main()
#endif #endif
// do light // do light
float light = blinnPhongIlluminationIntensity( normalize( -v_normal ) ); float light = blinnPhongIlluminationIntensity( normalize( viewAlign( v_normal ) ) );
// opacity of the surface // opacity of the surface
//col.rgb = light * col.rgb; // TODO(wiebel): reenable lighting here col.rgb = light * col.rgb;
col.a = float( u_opacity ) * 0.01; col.a = float( u_opacity ) * 0.01;
gl_FragColor = col; gl_FragColor = col;
} }
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