Massive work on level, UI, sound, and player functionality, small progress on netcode. Renamed project to Net Gunner.

This commit is contained in:
2025-12-22 09:04:22 -05:00
parent 9a8f06437d
commit 3b6407d6e5
566 changed files with 42735 additions and 183 deletions

View File

@@ -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;
}