   CG: float4 and colors
  Hello,it's not a non-API specific question, but I didn't know where to post..Anyway the problem is simple:// This doesn't workfloat4 fragment_shader(...) : COLOR{   float3 detailColor = tex2D(texture0, coords).rgb;   float4 colorFromLighting = (detailColor, 1.0);   return colorFromLighting;}// This do workfloat4 fragment_shader(...) : COLOR{   float3 detailColor = tex2D(texture0, coords).rgb;   return float4(detailColor, 1.0);}Aren't they the SAME code?They both compile, but the first gives a white color to each pixel.Any idea?Thanks!   
  Instead of:float4 colorFromLighting = (detailColor, 1.0);You probablr meantfloat4 colorFromLighting = float4(detailColor, 1.0);;)   ;Quote:Original post by StarfoxInstead of:float4 colorFromLighting = (detailColor, 1.0);You probablr meantfloat4 colorFromLighting = float4(detailColor, 1.0);;)Thanks! :D   