Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform sampler2D main_texture;
|
||||
uniform float granularity;
|
||||
uniform float granularity : hint_range(5, 30) = 15.0;
|
||||
uniform float opacity_limit;
|
||||
|
||||
float random (vec2 uv) {
|
||||
@@ -17,15 +17,17 @@ void vertex() {
|
||||
void fragment() {
|
||||
// Called for every pixel the material is visible on.
|
||||
vec2 uv = UV;
|
||||
uv.y = TIME * uv.y + TIME * 0.5;
|
||||
uv.x = 2.0 * TIME * uv.x + TIME * 1.0;
|
||||
float g = ( pow(granularity, 2));
|
||||
uv = round((uv * g)) / g;
|
||||
uv.y = TIME * uv.y + TIME * .05;
|
||||
uv.x = 10.0 * TIME * uv.x + TIME * 1.0;
|
||||
float val = random(uv);
|
||||
float op = random(-uv) / val;
|
||||
float alpha = 1.0;
|
||||
if(op < opacity_limit){
|
||||
alpha = 0.0;
|
||||
}
|
||||
vec4 color = vec4(val, val, val, alpha);
|
||||
vec4 color = vec4(val, val, val, alpha * COLOR.a);
|
||||
COLOR = color;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user