cakefoot/src/shaders/gl/shader.frag
Cocktail Frank bacf711cd7 - added coin bank to HUD
- save coin status per level instead of just a total count of coins
- bug fix: removed flashing effect from all non-coin projectiles
- bug fix: don't collect coins when resting
2024-05-08 16:45:24 -04:00

32 lines
793 B
GLSL

#version 150
/*~~~~.
|\~~~~: [ C A K E F O O T ] presented by dank.game
|\\~~~|
|#\\~~: source code and license at https://open.shampoo.ooo/shampoo/cakefoot
\\#\\~|
\\#\\: created using the SPACE🪐BOX engine https://open.shampoo.ooo/shampoo/spacebox
\\#\'
\\#|
`-' */
/* The precision declaration is required by OpenGL ES */
precision mediump float;
in vec2 fragment_uv;
in vec4 ex_color;
uniform sampler2D model_texture;
uniform int uv_transformation;
uniform float coordinate_bound;
uniform bool texture_enabled;
uniform vec4 color_addition;
out vec4 output_color;
void main()
{
output_color = float(texture_enabled) * (texture(model_texture, fragment_uv) + color_addition);
output_color += (1.0 - float(texture_enabled)) * (ex_color + color_addition);
}