Shader on ninepatchrect

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By scottkunkel

The following simple passthrough shader on a ninepatchrect results in the texture being distorted in that the ninepatch is ignored:

shader_type canvas_item;

void fragment() {
	vec4 texColor = texture(TEXTURE, UV);
	vec4 finalColor = vec4(texColor.rgb, texColor.a); 
	COLOR = finalColor;

What am I missing?

:bust_in_silhouette: Reply From: scottkunkel

workaround is to render to viewporttexture and apply shader to that.

However, shaders directly on ninepatchrects are broken