From a0ad38c77399f4a5e9e2d080fdb47b28aa5742b1 Mon Sep 17 00:00:00 2001 From: GlennFolker Date: Tue, 13 Feb 2024 02:13:02 +0000 Subject: [PATCH] GL ES sucks. --- assets/shaders/confictura/portal-forcefield.frag | 4 ---- 1 file changed, 4 deletions(-) diff --git a/assets/shaders/confictura/portal-forcefield.frag b/assets/shaders/confictura/portal-forcefield.frag index d30dccd..da92a6f 100644 --- a/assets/shaders/confictura/portal-forcefield.frag +++ b/assets/shaders/confictura/portal-forcefield.frag @@ -224,8 +224,4 @@ void main(){ vec3 outlineColor = v_color.xyz * pow(max(1.0 - v_color.a - 0.5, 0.0) * 2.0, 4.0) * outline; gl_FragColor = vec4(baseColor + outlineColor, 1.0); - - float far = gl_DepthRange.far, near = gl_DepthRange.near; - vec4 clip = u_proj * vec4(u_camPos + ray * intersect.x, 1.0); - gl_FragDepth = (((far - near) * (clip.z / clip.w)) + near + far) / 2.0; }