Create/Update assets for version 19w37a

This commit is contained in:
InventiveBot
2019-09-14 12:34:49 +00:00
parent 8742080b63
commit c6d7b05e2d
1293 changed files with 165160 additions and 21145 deletions

View File

@@ -1,4 +1,4 @@
#version 120
#version 110
uniform sampler2D DiffuseSampler;
@@ -16,16 +16,16 @@ void main() {
float totalAlpha = 0.0;
float totalSamples = 0.0;
for(float r = -Radius; r <= Radius; r += 1.0) {
vec4 sample = texture2D(DiffuseSampler, texCoord + oneTexel * r * BlurDir);
vec4 sampleValue = texture2D(DiffuseSampler, texCoord + oneTexel * r * BlurDir);
// Accumulate average alpha
totalAlpha = totalAlpha + sample.a;
totalAlpha = totalAlpha + sampleValue.a;
totalSamples = totalSamples + 1.0;
// Accumulate smoothed blur
float strength = 1.0 - abs(r / Radius);
totalStrength = totalStrength + strength;
blurred = blurred + sample;
blurred = blurred + sampleValue;
}
gl_FragColor = vec4(blurred.rgb / (Radius * 2.0 + 1.0), totalAlpha);
}