init
This commit is contained in:
commit
276d43613d
1687 changed files with 109059 additions and 0 deletions
23
prototype/resources/bird.gdshader
Normal file
23
prototype/resources/bird.gdshader
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
shader_type spatial;
|
||||
// Shared bird material (one MultiMesh batch). Wings (local |x|) flap in the vertex shader with
|
||||
// a per-bird phase from INSTANCE_CUSTOM.r, so the static OBJ reads as alive at no CPU cost.
|
||||
// Rim lighting keeps the near-black crow readable against the floor.
|
||||
render_mode cull_disabled;
|
||||
|
||||
uniform vec3 base_color : source_color = vec3(0.07, 0.07, 0.09);
|
||||
uniform float flap_speed = 11.0;
|
||||
uniform float flap_amount = 0.55;
|
||||
|
||||
void vertex() {
|
||||
float span = abs(VERTEX.x);
|
||||
float phase = INSTANCE_CUSTOM.r * 6.2831853;
|
||||
VERTEX.y += sin(TIME * flap_speed + phase) * span * flap_amount;
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = base_color;
|
||||
ROUGHNESS = 0.55;
|
||||
SPECULAR = 0.4;
|
||||
RIM = 0.8;
|
||||
RIM_TINT = 0.3;
|
||||
}
|
||||
1
prototype/resources/bird.gdshader.uid
Normal file
1
prototype/resources/bird.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://f7cq4lyrhtw3
|
||||
10
prototype/resources/default_config.tres
Normal file
10
prototype/resources/default_config.tres
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_resource type="Resource" script_class="PrototypeConfig" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://prototype/scripts/prototype_config.gd" id="1_cfg"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_cfg")
|
||||
round_seed = 20261002
|
||||
enemy_count = 50
|
||||
enemy_capacity = 64
|
||||
projectile_capacity = 64
|
||||
24
prototype/resources/floor.gdshader
Normal file
24
prototype/resources/floor.gdshader
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
shader_type spatial;
|
||||
// Arena floor: soft 2 m checker with 1 m grid lines in world space, so scale stays readable.
|
||||
|
||||
uniform vec3 color_a : source_color = vec3(0.80, 0.78, 0.70);
|
||||
uniform vec3 color_b : source_color = vec3(0.74, 0.72, 0.64);
|
||||
uniform vec3 line_color : source_color = vec3(0.62, 0.60, 0.53);
|
||||
uniform float line_width = 0.03;
|
||||
|
||||
varying vec3 world_pos;
|
||||
|
||||
void vertex() {
|
||||
world_pos = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xyz;
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec2 p = world_pos.xz;
|
||||
vec2 cell = floor(p * 0.5);
|
||||
float checker = mod(cell.x + cell.y, 2.0);
|
||||
vec3 base = mix(color_a, color_b, checker);
|
||||
vec2 g = abs(fract(p) - 0.5);
|
||||
float line = step(0.5 - line_width, max(g.x, g.y));
|
||||
ALBEDO = mix(base, line_color, line);
|
||||
ROUGHNESS = 0.95;
|
||||
}
|
||||
1
prototype/resources/floor.gdshader.uid
Normal file
1
prototype/resources/floor.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://xqfxx24bbmgi
|
||||
10
prototype/resources/hit_flash.gdshader
Normal file
10
prototype/resources/hit_flash.gdshader
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
shader_type spatial;
|
||||
// Overlay used as the player's inexpensive hit cue: blends a red tint over the base material.
|
||||
render_mode unshaded, blend_mix, depth_draw_never;
|
||||
|
||||
uniform float flash : hint_range(0.0, 1.0) = 0.0;
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = vec3(1.0, 0.15, 0.1);
|
||||
ALPHA = flash;
|
||||
}
|
||||
1
prototype/resources/hit_flash.gdshader.uid
Normal file
1
prototype/resources/hit_flash.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://blifixhesm3j3
|
||||
Loading…
Add table
Add a link
Reference in a new issue