mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
(#3596) fixed normals in rings_geom_fs.glsl
This commit is contained in:
@@ -41,7 +41,7 @@ Fragment getFragment() {
|
||||
float radius = length(st);
|
||||
|
||||
// Discard if normal is perpendicular to the camera direction
|
||||
if (abs(dot(vs_normal, vec3(0.0, 0.0, 1.0))) <= 1.0e-3) {
|
||||
if (abs(dot(normalize(vs_normal), vec3(0.0, 0.0, 1.0))) <= 1.0e-3) {
|
||||
discard;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user