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

game.codecraft-graphics_2.11.0.7.0.source-code.rgba_gaussian_fs.glsl Maven / Gradle / Ivy

The newest version!
#version 400

in vec4 fragmentCol;

out vec4 outputCol;


void main() {
    float x = 1 - fragmentCol.w;
    float alpha = exp(-5 * x * x);
    outputCol = vec4(fragmentCol.x, fragmentCol.y, fragmentCol.z, alpha);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy