2d unlit sprite shader - Fragment only has color3 option, how can i convert to color 4?

I am subtracting, multiplying, and adding colors to a shader but all the final output options are in color4, but the Vertex – Fragment of the sprite only has Color3 and Alpha. Is there a way in which i can add a color4 to the fragment or a module that will allow me to add the color4 input and then from there transfer RGB to color3 and the alpha to alpha?

1 Like

Gosh, if its as simple as this I am going to smack myself. Will the editor convert the RGBA from Out(4) to just RGB for the Color3? I assume so, it appears to work fine this way.

Yes. It’ll lop off the fourth component (the alpha) of the Out(4) so it’s just the RGB values.