Add unified inventory and animated menu backdrop
This commit is contained in:
parent
4985cc3374
commit
28ce6fedcb
16 changed files with 865 additions and 123 deletions
13
ui/player_menu_pattern.gdshader
Normal file
13
ui/player_menu_pattern.gdshader
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform sampler2D pattern_texture : source_color, repeat_enable, filter_nearest;
|
||||
uniform vec2 source_tile_size = vec2(128.0, 128.0);
|
||||
uniform float display_scale : hint_range(0.5, 2.0, 0.05) = 0.85;
|
||||
uniform vec2 scroll_velocity_pixels = vec2(-7.0, -5.0);
|
||||
|
||||
void fragment() {
|
||||
vec2 viewport_pixels = 1.0 / SCREEN_PIXEL_SIZE;
|
||||
vec2 display_tile_size = max(source_tile_size * display_scale, vec2(1.0));
|
||||
vec2 moving_pixels = UV * viewport_pixels + TIME * scroll_velocity_pixels;
|
||||
COLOR = texture(pattern_texture, moving_pixels / display_tile_size);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue