init
This commit is contained in:
commit
b99855351d
434 changed files with 50357 additions and 0 deletions
11
scripts/shaders/dissolve.gdshader
Normal file
11
scripts/shaders/dissolve.gdshader
Normal file
|
@ -0,0 +1,11 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform sampler2D dissolve_texture : hint_default_transparent;
|
||||
uniform float dissolve_value : hint_range(0,1);
|
||||
|
||||
void fragment(){
|
||||
vec4 main_texture = texture(TEXTURE, UV);
|
||||
vec4 noise_texture = texture(dissolve_texture, UV);
|
||||
main_texture.a *= floor(dissolve_value + min(1, noise_texture.x));
|
||||
COLOR = main_texture;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue