Apply a shader on pixels from _draw() functions

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

Hello,

I would like my shader script to also apply on pixel resulting from the draw_rect() function, however the following code doesn’t work : it only applies on the pixel from the sprite.

void fragment() {
  vec4 color= texture(TEXTUIRE, UV);
  COLOR = color;
}