mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 13:59:57 +00:00
I was a bit confused at first because I thought Enterbrain had actually implemented a full Gaussian blur, but nope, just dumb averaging.
19 lines
383 B
GLSL
19 lines
383 B
GLSL
|
|
uniform mat4 projMat;
|
|
|
|
uniform vec2 texSizeInv;
|
|
|
|
attribute vec2 position;
|
|
attribute vec2 texCoord;
|
|
|
|
varying vec2 v_texCoord;
|
|
varying vec2 v_blurCoord[2];
|
|
|
|
void main()
|
|
{
|
|
gl_Position = projMat * vec4(position, 0, 1);
|
|
|
|
v_texCoord = texCoord * texSizeInv;
|
|
v_blurCoord[0] = vec2(texCoord.x-1, texCoord.y) * texSizeInv;
|
|
v_blurCoord[1] = vec2(texCoord.x+1, texCoord.y) * texSizeInv;
|
|
}
|