Merge pull request #870 from OpenSpace/issue/848

Bring back stars to the Earth's night.
This commit is contained in:
Alexander Bock
2020-01-30 14:56:39 -05:00
committed by GitHub
4 changed files with 6 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
* *
* OpenSpace *
* *
* Copyright (c) 2014-2019 *
* Copyright (c) 2014-2020 *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
* software and associated documentation files (the "Software"), to deal in the Software *
@@ -414,11 +414,10 @@ vec3 inscatterRadiance(inout vec3 x, inout float t, inout float irradianceFactor
return finalScatteringRadiance;
} else {
//return ((r-Rg) * invRtMinusRg)*spaceColor.rgb + finalScatteringRadiance;
return attenuation * spaceColor.rgb + finalScatteringRadiance;
return spaceColor.rgb + finalScatteringRadiance;
// return attenuation * spaceColor.rgb +
// (vec3(1.0) - attenuation) * finalScatteringRadiance;
}
}
}
/*