Fixed ssao without shadows enabled. (Thanks LightDrake)

This commit is contained in:
Shyotl
2018-01-17 22:56:54 -06:00
parent a39844f9f3
commit 54fc42cc73

View File

@@ -37,12 +37,12 @@ uniform sampler2D depthMap;
uniform sampler2D diffuseRect;
uniform vec2 kern_scale;
uniform vec2 ssao_scale;
void main()
{
frag_color[0] = 1.0;
frag_color[1] = texture2D(diffuseRect,vary_fragcoord.xy * kern_scale).r; // Scales to handle lower-res ssao.
frag_color[1] = texture2D(diffuseRect,vary_fragcoord.xy * ssao_scale).r; // Scales to handle lower-res ssao.
frag_color[2] = 1.0;
frag_color[3] = 1.0;
}