Added abstract colored platform. Reworked platform sprite to viewport

This commit is contained in:
2026-06-11 23:35:47 +03:00
parent 1cd95eea6b
commit 0c7e0f7c74
10 changed files with 112 additions and 18 deletions
+3
View File
@@ -1,5 +1,7 @@
shader_type canvas_item;
#include "get_black_n_white.gdshaderinc"
uniform float tile_size = 8.0;
uniform float platform_width = 24.0;
uniform sampler2D atlas : filter_nearest;
@@ -35,4 +37,5 @@ void fragment() {
vec2 atlas_size = vec2(textureSize(atlas, 0));
vec2 atlas_uv = atlas_pixel / atlas_size;
COLOR = texture(atlas, atlas_uv);
COLOR = get_black_and_white(COLOR, UV, TIME);
}