Post Game jam commit
This commit is contained in:
commit
6db2131520
164 changed files with 172524 additions and 0 deletions
21
shaders/selective_glow.gdshader
Normal file
21
shaders/selective_glow.gdshader
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform vec4 replace : source_color = vec4(0.0);
|
||||
uniform float intensity : hint_range(0.0, 5.0, 0.1);
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec4 tex_color = texture(TEXTURE, UV);
|
||||
|
||||
float color_diff = distance(tex_color.rgb, replace.rgb);
|
||||
|
||||
if (color_diff < 0.03) {
|
||||
COLOR = tex_color * intensity;
|
||||
} else
|
||||
{
|
||||
COLOR = tex_color;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue