Skip to content

Commit

Permalink
Fix broken rendering of all shaders on AMD cards due to failure to co…
Browse files Browse the repository at this point in the history
…mpile centerDepth.fsh
  • Loading branch information
joshua-software-dev committed Nov 30, 2022
1 parent 7fd7e1a commit 2619df8
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 2619df8

Please sign in to comment.