How to use a shader to color a 2D polygon as a gradient?

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

I may be wrong as I’m not familiar with visual scripting in Godot but should rgb be linked to Output>Color and alpha be linked to Output>Alpha?

Magso | 2020-02-17 23:08

This just leads to the object being black

cv4va | 2020-02-17 23:59

:bust_in_silhouette: Reply From: cv4va

Solved; I just had to feed the gradient a UV