Skip to content

Commit

Permalink
GL ES sucks.
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennFolker committed Feb 13, 2024
1 parent 670f7f9 commit a0ad38c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions assets/shaders/confictura/portal-forcefield.frag
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit a0ad38c

Please sign in to comment.