Fixed platform shader

This commit is contained in:
2026-06-12 01:20:45 +03:00
parent 0c7e0f7c74
commit e72e17f7ca
12 changed files with 92 additions and 84 deletions
-3
View File
@@ -1,7 +1,5 @@
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;
@@ -37,5 +35,4 @@ 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);
}