mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
2f524481c1
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
17 lines
362 B
Plaintext
17 lines
362 B
Plaintext
texture framebuffer
|
|
float offset
|
|
|
|
effect
|
|
{
|
|
vec2 offx = vec2(offset, 0.0);
|
|
vec2 offy = vec2(0.0, offset);
|
|
|
|
vec4 c0 = framebuffer(_in);
|
|
vec4 c1 = framebuffer(_in - offy);
|
|
vec4 c2 = framebuffer(_in + offy);
|
|
vec4 c3 = framebuffer(_in - offx);
|
|
vec4 c4 = framebuffer(_in + offx);
|
|
|
|
_out = c0 * 0.2 + c1 * 0.2 + c2 * 0.2 + c3 * 0.2 + c4 * 0.2;
|
|
}
|