From 2619df84ecc3d1d42338bd790dffc39d3e5373ff Mon Sep 17 00:00:00 2001 From: joshua-software-dev Date: Wed, 30 Nov 2022 08:12:50 -0800 Subject: [PATCH] Fix broken rendering of all shaders on AMD cards due to failure to compile centerDepth.fsh --- src/main/resources/centerDepth.fsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/centerDepth.fsh b/src/main/resources/centerDepth.fsh index 5793042d73..edf76e80af 100644 --- a/src/main/resources/centerDepth.fsh +++ b/src/main/resources/centerDepth.fsh @@ -9,7 +9,7 @@ uniform float lastFrameTime; uniform float decay; #ifdef IS_GL3 -out float output; +out float oculus_fragColor; #endif void main() { @@ -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 } \ No newline at end of file