From 7f757bbcb7956f0cbf0b677eb9726f08b1335cc1 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 16 Aug 2016 09:41:13 +0200 Subject: [PATCH] Use correct normal for RenderableRings closing (#124) --- modules/base/shaders/rings_fs.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/shaders/rings_fs.glsl b/modules/base/shaders/rings_fs.glsl index 9b12688943..8a7c237de3 100644 --- a/modules/base/shaders/rings_fs.glsl +++ b/modules/base/shaders/rings_fs.glsl @@ -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