This commit is contained in:
2025-04-29 05:55:53 -05:00
parent 7dd814453e
commit b98fdd0f29
137 changed files with 0 additions and 2021 deletions

View File

@@ -1,16 +0,0 @@
shader_type spatial;
render_mode cull_disabled;
uniform sampler2D tileset : filter_nearest;
void vertex() {
}
void fragment() {
vec4 textureColor = texture(tileset, UV) * COLOR;
if(textureColor.a == 0.0)
discard;
ALBEDO = textureColor.rgb;
}

View File

@@ -1 +0,0 @@
uid://67hsyo0qqlfm

View File

@@ -1,39 +0,0 @@
shader_type spatial;
render_mode cull_disabled;
uniform sampler2D npcTexture : filter_nearest;
uniform int frame;
uniform int direction;
const int FRAMES = 3;
const int DIRECTIONS = 4;
void vertex() {
vec2 tileSize = vec2(1.0 / float(FRAMES), 1.0 / float(DIRECTIONS));
vec2 topLeft = tileSize * vec2(float(frame % FRAMES), float(direction % DIRECTIONS));
vec2 bottomRight = topLeft + tileSize;
if(VERTEX_ID == 3) {
UV = topLeft;
} else if(VERTEX_ID == 2) {
UV = vec2(bottomRight.x, topLeft.y);
} else if(VERTEX_ID == 1) {
UV = vec2(topLeft.x, bottomRight.y);
} else if(VERTEX_ID == 0) {
UV = bottomRight;
}
}
void fragment() {
vec4 npcColor = texture(npcTexture, UV);
// Remove PINK background
if(npcColor.r == 1.0 && npcColor.g == 0.0 && npcColor.b == 1.0)
discard;
// Remove GREEN borders
if(npcColor.r == 0.00392156862745 && npcColor.g == 1.0 && npcColor.b == 0.0)
discard;
ALBEDO.rgb = npcColor.rgb;
}

View File

@@ -1 +0,0 @@
uid://7h2axb2tsh17