game.codecraft-graphics_2.11.0.7.0.source-code.110_rgba_gaussian_pint_fs.glsl Maven / Gradle / Ivy
The newest version!
#version 110
varying vec4 fragmentCol;
uniform float intensity;
void main() {
float x = 1.0 - fragmentCol.w;
float alpha = exp(-5.0 * x * x);
gl_FragColor = vec4(fragmentCol.x * intensity, fragmentCol.y * intensity, fragmentCol.z * intensity, alpha);
}