Sun, Shovel, Fastforward, GUI Improvements
This commit is contained in:
parent
26c3aeb7e9
commit
63935d5978
28 changed files with 546 additions and 45 deletions
23
assets/shaders/shared_outline.gdshader
Normal file
23
assets/shaders/shared_outline.gdshader
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform vec3 line_colour: source_color = vec3(1.0);
|
||||
uniform int line_thickness: hint_range(0, 50) = 1;
|
||||
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
|
||||
|
||||
void fragment() {
|
||||
vec2 size = SCREEN_PIXEL_SIZE * float(line_thickness);
|
||||
float line_alpha = 0.0;
|
||||
for (float i = -size.x; i <= size.x; i += SCREEN_PIXEL_SIZE.x) {
|
||||
for (float j = -size.y; j <= size.y; j += SCREEN_PIXEL_SIZE.y) {
|
||||
line_alpha += texture(screen_texture, SCREEN_UV + vec2(i, j)).a;
|
||||
}
|
||||
}
|
||||
vec4 colour = textureLod(screen_texture, SCREEN_UV,0.0);
|
||||
|
||||
if (colour.a > 0.0001) {
|
||||
colour.rgb /= colour.a;
|
||||
}
|
||||
|
||||
vec4 outline = vec4(line_colour, min(line_alpha, 1.0));
|
||||
COLOR *= mix(outline, colour, colour.a);
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 14 KiB |
BIN
assets/sprites/atlases/sun_atlas.png
Normal file
BIN
assets/sprites/atlases/sun_atlas.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 890 B |
34
assets/sprites/atlases/sun_atlas.png.import
Normal file
34
assets/sprites/atlases/sun_atlas.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bkmphus5wjadi"
|
||||
path="res://.godot/imported/sun_atlas.png-b9a6b053b94a7c890cd3dc831a1947ed.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sprites/atlases/sun_atlas.png"
|
||||
dest_files=["res://.godot/imported/sun_atlas.png-b9a6b053b94a7c890cd3dc831a1947ed.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
7
assets/sprites/cone.tres
Normal file
7
assets/sprites/cone.tres
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://ceqvdmude7cgg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://brj0buevfwv21" path="res://assets/sprites/atlases/zombies/basic.png" id="1_yijc6"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_yijc6")
|
||||
region = Rect2(0, 0, 31, 33)
|
||||
BIN
assets/sprites/gui/DisabledEmptyCard.png
Normal file
BIN
assets/sprites/gui/DisabledEmptyCard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 558 B |
34
assets/sprites/gui/DisabledEmptyCard.png.import
Normal file
34
assets/sprites/gui/DisabledEmptyCard.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cxlr34yh0bqch"
|
||||
path="res://.godot/imported/DisabledEmptyCard.png-7f5482b96bf2d482bb3d5df447102c95.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sprites/gui/DisabledEmptyCard.png"
|
||||
dest_files=["res://.godot/imported/DisabledEmptyCard.png-7f5482b96bf2d482bb3d5df447102c95.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
7
assets/sprites/gui/EmptyShovel.tres
Normal file
7
assets/sprites/gui/EmptyShovel.tres
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://fd6drk2su0df"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="1_i8m7w"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_i8m7w")
|
||||
region = Rect2(355, 68, 51, 47)
|
||||
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
[resource]
|
||||
atlas = ExtResource("1_cq0f1")
|
||||
region = Rect2(36, 264, 36, 36)
|
||||
region = Rect2(72, 264, 36, 36)
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
[resource]
|
||||
atlas = ExtResource("1_s2rs0")
|
||||
region = Rect2(14, 145, 51, 47)
|
||||
region = Rect2(0, 145, 51, 47)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue