I dont know what the hell is going on with my project. Every time I define a float2 or float3 or float4, and try to use an individual component of that variable it ALWAYS returns the last component? For example if I declare float4 test = (0.1f, 0.2f, 0.3f, 1.0f); and then return float4 out = (test.x, test.x, test.x, 1) it outputs a white color! If I change the last component of float4 test to a different value such as 0.5, then the output uses 0.5 for the r, g, and b values. WHAT THE HELL??
You are using the comma operator. You have to write float4 out = float4(0.1, 0.2, 0.3, 1.0).
See here
Thank you!