All Downloads are FREE. Search and download functionalities are using the official Maven repository.

game.codecraft-graphics_sjs0.6_2.11.0.7.0.source-code.rgba_gaussian_pint_fs.glsl Maven / Gradle / Ivy

The newest version!
precision mediump float;

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);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy