dancer-godot/src/level/tiles.gdshader
2026-06-19 00:35:46 +02:00

19 lines
544 B
Text

shader_type canvas_item;
uniform sampler2D emissive :
hint_default_transparent, source_color, filter_nearest;
void vertex() {}
void fragment() {
COLOR.rgb = vec3(texture_sdf(screen_uv_to_sdf(SCREEN_UV))/10.0);
}
void light() {
// Called for every pixel for every light affecting the CanvasItem.
// Uncomment to replace the default light processing function with this one.
LIGHT = vec4(LIGHT_COLOR.rgb * COLOR.rgb * LIGHT_ENERGY, LIGHT_COLOR.a);
LIGHT = vec4(0.1);
//LIGHT = vec4(1, 1, 1, 1);
//SHADOW_MODULATE = vec4(1, 1, 1, 1);
}