From 5b662f83cfb8b121c1b86c3f624b0fc8d3209f54 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sat, 24 Apr 2021 20:09:21 +0000 Subject: [PATCH] Fixed g_buffer shader failing to compile --- shaders/fragment/g_buffer.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shaders/fragment/g_buffer.glsl b/shaders/fragment/g_buffer.glsl index ce3375a..4667a7e 100644 --- a/shaders/fragment/g_buffer.glsl +++ b/shaders/fragment/g_buffer.glsl @@ -6,6 +6,7 @@ layout (location = 2) out vec3 fragNormal; layout (location = 3) out vec3 fragUV; in vec3 outPosition, outColor, outNormal, outUV, outFragPos, outCameraPos; +out vec4 outputFragColor; flat in int outHasTexture; uniform sampler2D diffuse_texture; @@ -25,5 +26,5 @@ void main() { fragUV = outUV; float gamma = 2.2; - FragColor.rgb = pow(FragColor.rgb, vec3(1.0 / gamma)); + outputFragColor.rgb = pow(fragColor.rgb, vec3(1.0 / gamma)); }