Init the godot project

- Add a first-view controller and a bunch of things
- First shooting implementation
- Remove heavy models and clean the project up
This commit is contained in:
2025-01-16 15:20:04 +01:00
parent 927d6b560c
commit 2577e952d6
220 changed files with 16443 additions and 17 deletions

23
shaders/outline.gdshader Normal file
View File

@ -0,0 +1,23 @@
shader_type spatial;
render_mode cull_front, unshaded;
uniform vec4 outline_color : source_color;
uniform float outline_width = 1.0;
void vertex() {
vec4 clip_position = PROJECTION_MATRIX * (MODELVIEW_MATRIX * vec4(VERTEX, 1.0));
vec3 clip_normal = mat3(PROJECTION_MATRIX) * (mat3(MODELVIEW_MATRIX) * NORMAL);
vec2 offset = normalize(clip_normal.xy) / VIEWPORT_SIZE * clip_position.w * outline_width * 2.0;
clip_position.xy += offset;
POSITION = clip_position;
}
void fragment() {
ALBEDO = outline_color.rgb;
if (outline_color.a < 1.0) {
ALPHA = outline_color.a;
}
}