X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=builtin_data%2F_ambientocclusion_occlude.glsl;h=260f1efa770a89a04679dfc39c7c5de3277d7cc7;hp=e1900323a6cc9a66432f4d70e29312dcaa5a92c0;hb=d4312ccb1a73acecc57394b2c5230083b1f8b6a1;hpb=02918a66cd589e3f73810a51f8cd62e7441e310d diff --git a/builtin_data/_ambientocclusion_occlude.glsl b/builtin_data/_ambientocclusion_occlude.glsl index e1900323..260f1efa 100644 --- a/builtin_data/_ambientocclusion_occlude.glsl +++ b/builtin_data/_ambientocclusion_occlude.glsl @@ -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; }