This commit is contained in:
2025-05-05 10:55:45 -05:00
parent 65a3d49f55
commit 7106469bd1
8 changed files with 13 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ shader_type spatial;
render_mode cull_disabled;
uniform sampler2D npcTexture : filter_nearest;
uniform vec4 color : source_color;
uniform int frame;
uniform int direction;
@@ -35,5 +36,5 @@ void fragment() {
if(npcColor.r == 0.00392156862745 && npcColor.g == 1.0 && npcColor.b == 0.0)
discard;
ALBEDO.rgb = npcColor.rgb;
ALBEDO.rgb = npcColor.rgb * color.rgb;
}