mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-02 01:30:34 -06:00
Changed in shader to not use depth texture
Changed back the depth values in shader plane_fs_yt to not use the depth texture at the moment.
This commit is contained in:
@@ -36,7 +36,6 @@ uniform vec3 multiplyColor;
|
||||
|
||||
uniform sampler2D depthTexture;
|
||||
|
||||
|
||||
Fragment getFragment() {
|
||||
Fragment frag;
|
||||
if (gl_FrontFacing) {
|
||||
@@ -59,9 +58,11 @@ Fragment getFragment() {
|
||||
}
|
||||
|
||||
frag.depth = texture(depthTexture, vs_st).r;
|
||||
if (frag.depth == 0.0) {
|
||||
if (frag.depth == vs_screenSpaceDepth) {
|
||||
discard;
|
||||
}
|
||||
|
||||
frag.depth = vs_screenSpaceDepth;
|
||||
|
||||
//frag.color += texture(depthTexture, vs_st);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user