Use correct normal for RenderableRings closing (#124)

This commit is contained in:
Alexander Bock
2016-08-16 09:41:13 +02:00
parent dd9eeeb092
commit 7f757bbcb7

View File

@@ -73,10 +73,10 @@ Fragment getFragment() {
// The plane is oriented on the xz plane
// WARNING: This might not be the case for Uranus
if (gl_FrontFacing) {
normal = vec3(0.0, 1.0, 0.0);
normal = vec3(-1.0, 0.0, 0.0);
}
else {
normal = vec3(0.0, -1.0, 0.0);
normal = vec3(1.0, 0.0, 0.0);
}
// Reduce the color of the fragment by the user factor