mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-10 07:32:43 +00:00
a50683c84e
basically starting over... this is gonna be fun!
19 lines
504 B
GLSL
19 lines
504 B
GLSL
#version 150
|
|
|
|
uniform sampler2D DiffuseSampler;
|
|
|
|
in vec2 texCoord;
|
|
in vec2 oneTexel;
|
|
|
|
uniform vec2 InSize;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main() {
|
|
vec3 Texel0 = texture(DiffuseSampler, texCoord).rgb;
|
|
vec3 Texel1 = texture(DiffuseSampler, texCoord + vec2(oneTexel.x, 0.0)).rgb;
|
|
vec3 Texel2 = texture(DiffuseSampler, texCoord + vec2(0.0, oneTexel.y)).rgb;
|
|
vec3 Texel3 = texture(DiffuseSampler, texCoord + oneTexel).rgb;
|
|
|
|
fragColor = vec4((Texel0 + Texel1 + Texel2 + Texel3) * 0.25, 1.0);
|
|
}
|