]> git.tdb.fi Git - libs/gl.git/blobdiff - builtin_data/_ambientocclusion_occlude.glsl
Rearrange postprocessing shaders
[libs/gl.git] / builtin_data / _ambientocclusion_occlude.glsl
index e1900323a6cc9a66432f4d70e29312dcaa5a92c0..260f1efa770a89a04679dfc39c7c5de3277d7cc7 100644 (file)
@@ -1,7 +1,8 @@
-import postprocess;
+import flat_effect;
 import _ambientocclusion;
 
 #pragma MSP stage(fragment)
+layout(location=0) out float frag_out;
 void main()
 {
        vec4 rv = texture(rotate, gl_FragCoord.xy/4.0)*2.0-1.0;
@@ -21,5 +22,5 @@ void main()
                        count += 1.0;
                }
        }
-       frag_color = vec4(1.0-occlusion_sum/count, 0.0, 0.0, 1.0);
+       frag_out = 1.0-occlusion_sum/count;
 }