]> git.tdb.fi Git - libs/gl.git/commitdiff
Use RED format for ambient occlusion render target
authorMikko Rasa <tdb@tdb.fi>
Sat, 15 Jun 2019 12:20:44 +0000 (15:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 15 Jun 2019 12:20:44 +0000 (15:20 +0300)
source/ambientocclusion.cpp

index 49d712543ccff582f5fd7a5f064e05c25e8d4264..0079009b513750d3f391019d2529d897b55f6f37 100644 (file)
@@ -12,7 +12,7 @@ namespace Msp {
 namespace GL {
 
 AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float):
-       occlude_target(w, h, (RENDER_COLOR,RGB)),
+       occlude_target(w, h, (RENDER_COLOR,RED)),
        occlude_shader("ambientocclusion_occlude.glsl"),
        combine_shader("ambientocclusion_combine.glsl"),
        quad(get_fullscreen_quad())