Use gl_FragDepth on deferred sun disc to fix z-fighting with sky dome and get layering of sky/stars/sun/moon/clouds correct.
meow-7.2.2
Graham Linden 2019-02-04 10:22:55 -08:00
parent 6eb180f790
commit 1d1fcb451c
1 changed files with 2 additions and 0 deletions

View File

@ -57,5 +57,7 @@ void main()
frag_data[0] = c;
frag_data[1] = vec4(0.0f);
frag_data[2] = vec4(0.0, 1.0, 0.0, 1.0);
gl_FragDepth = 0.9997f;
}