Fix switching draw mode in SSAO deferred shader

This commit is contained in:
Drahomír Hanák
2016-07-06 15:09:56 +02:00
parent 28877f8aec
commit a1638ea19a

View File

@@ -52,8 +52,8 @@ void main()
FragColor = vec4(vec3(Depth / 50.0), 1.0);
else if(draw_mode == 3)
FragColor = vec4(FragPos, 1.0);
else if(draw_mode == 3)
else if(draw_mode == 4)
FragColor = vec4(Normal, 1.0);
else if(draw_mode == 4)
else if(draw_mode == 5)
FragColor = vec4(vec3(AmbientOcclusion), 1.0);
}