mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-23 05:53:14 +00:00
14 lines
286 B
Text
14 lines
286 B
Text
|
shader_type canvas_item;
|
||
|
|
||
|
uniform vec4 silhouette_color: hint_color;
|
||
|
uniform bool show_silhouette;
|
||
|
|
||
|
void fragment() {
|
||
|
vec4 color = texture(TEXTURE, UV);
|
||
|
if (show_silhouette && color.a > 0.0) {
|
||
|
color.rgb = silhouette_color.rgb;
|
||
|
COLOR.rgb = color.rgb;
|
||
|
} else {
|
||
|
COLOR = color
|
||
|
}
|
||
|
}
|