Added initial position (far away) in the g-Buffer position. (#1360)

* Added initial position (far away) in the g-Buffer position.
* Fixed bug with Sun's star and atmosphere.
This commit is contained in:
Jonathas Costa
2020-11-12 16:10:01 -05:00
committed by GitHub
parent af5ea6ad3a
commit 8ad757263f
3 changed files with 5 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ Fragment getFragment() {
vec4 fullColor = vec4(color.rgb, textureColor.a);
fullColor.a *= alphaValue;
if (fullColor.a == 0) {
if (fullColor.a < 0.001) {
discard;
}