Skip to content

Commit

Permalink
Merge pull request #240 from joshua-software-dev/1.16.5
Browse files Browse the repository at this point in the history
Fix broken rendering of shaders on AMD cards
  • Loading branch information
Asek3 authored Sep 5, 2023
2 parents 71a21fb + 2619df8 commit bb4c510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/centerDepth.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ uniform float lastFrameTime;
uniform float decay;

#ifdef IS_GL3
out float output;
out float oculus_fragColor;
#endif

void main() {
Expand All @@ -22,11 +22,11 @@ void main() {
oldDepth = currentDepth;
}

output = mix(oldDepth, currentDepth, decay2);
oculus_fragColor = mix(oldDepth, currentDepth, decay2);
#else
if (oldDepth != oldDepth) { // cheap isNaN
oldDepth = currentDepth;
}
gl_FragColor = vec4(mix(, currentDepth, decay2), 0, 0, 0);
gl_FragColor = vec4(mix(texture2D(altDepth, vec2(0.5)).r, currentDepth, decay2), 0, 0, 0);
#endif
}

0 comments on commit bb4c510

Please sign in to comment.