Sobel Outline
Sobel Outline
Sobel Outline
shader_type spatial;
//render_mode unshaded; // in case we want that
//Rendering Order://
//Ensure that objects with your shader are rendered after the objects
//they need to be visible through.
void fragment() {
vec2 uv2 = FRAGCOORD.xy;// Fragment coordinate, pixel adjusted.
vec2 uv = SCREEN_UV; // Screen UV coordinate for current pixel.
} else {
ALBEDO = screen_color;
}
}