Skip to content

Commit 7ff00bc

Browse files
committed
TerrainOverlay: fix z buffer
1 parent 0d81841 commit 7ff00bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

share/covise/materials/TerrainOverlay.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
vec4 DiffuseColor = texture2D( diffuseMap, Texcoord );
2828
DiffuseColor.a = DiffuseColor.a * Transparency;
2929

30-
gl_FragColor = DiffuseColor;
31-
gl_FragDepth += DepthBump;
30+
gl_FragColor = DiffuseColor;
31+
gl_FragDepth = gl_FragCoord[2] + DepthBump;
3232
}
3333

3434
</fragmentProgram>

0 commit comments

Comments
 (0)