Create/Update assets for version 21w10a

This commit is contained in:
InventiveBot
2021-03-10 17:02:25 +00:00
parent f94ae50f56
commit 818a18069d
13913 changed files with 909847 additions and 18 deletions

View File

@@ -0,0 +1,22 @@
#version 150
uniform sampler2D DiffuseSampler;
in vec2 texCoord;
in vec2 oneTexel;
out vec4 fragColor;
void main(){
vec4 center = texture(DiffuseSampler, texCoord);
vec4 left = texture(DiffuseSampler, texCoord - vec2(oneTexel.x, 0.0));
vec4 right = texture(DiffuseSampler, texCoord + vec2(oneTexel.x, 0.0));
vec4 up = texture(DiffuseSampler, texCoord - vec2(0.0, oneTexel.y));
vec4 down = texture(DiffuseSampler, texCoord + vec2(0.0, oneTexel.y));
vec4 leftDiff = center - left;
vec4 rightDiff = center - right;
vec4 upDiff = center - up;
vec4 downDiff = center - down;
vec4 total = clamp(leftDiff + rightDiff + upDiff + downDiff, 0.0, 1.0);
fragColor = vec4(total.rgb, 1.0);
}