From ce74fa5f6af5a9783b61febaf4db8946a87d64cf Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Mon, 12 Oct 2026 19:30:11 +0200 Subject: [PATCH] contrails: disable depth test so exaggerated terrain does not hide them --- vendor/clouds3d.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index 54b1be5..ae64b7a 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -6913,12 +6913,14 @@ window.clouds3dRender = function(target) { gl.vertexAttribPointer(ctA.s, 1, gl.FLOAT, false, 28, 20); gl.enableVertexAttribArray(ctA.p); gl.vertexAttribPointer(ctA.p, 1, gl.FLOAT, false, 28, 24); + gl.disable(gl.DEPTH_TEST); gl.depthMask(false); gl.enable(gl.BLEND); gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); gl.drawArrays(gl.TRIANGLES, 0, ctVerts); gl.disable(gl.BLEND); gl.depthMask(true); + gl.enable(gl.DEPTH_TEST); } } // Diagnostic snapshot: how many aircraft are in range, how many