initial setup
This commit is contained in:
11
shaders/dissolve.gdshader
Normal file
11
shaders/dissolve.gdshader
Normal file
@@ -0,0 +1,11 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform sampler2D sim_texture;
|
||||
|
||||
uniform float decay_factor;
|
||||
|
||||
void fragment() {
|
||||
float c = texture(sim_texture, UV).r;
|
||||
c = c * decay_factor;
|
||||
COLOR = vec4(c, c, c, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user