From 93328016e95c8843ebe36e908a0cc7a5b1747f38 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 26 Sep 2021 16:28:45 +0200 Subject: [PATCH] Fixed SSAO sample G-Buffer shader Refs #880 --- data/shaders/glsl/ssao/gbuffer.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/glsl/ssao/gbuffer.frag b/data/shaders/glsl/ssao/gbuffer.frag index e0c93478..ec7f3682 100644 --- a/data/shaders/glsl/ssao/gbuffer.frag +++ b/data/shaders/glsl/ssao/gbuffer.frag @@ -30,5 +30,5 @@ void main() { outPosition = vec4(inPos, linearDepth(gl_FragCoord.z)); outNormal = vec4(normalize(inNormal) * 0.5 + 0.5, 1.0); - outAlbedo = texture(samplerColormap * inColor, inUV); + outAlbedo = texture(samplerColormap, inUV) * vec4(inColor, 1.0); } \ No newline at end of file