if (channelCount == 1)
return values;
for (var i = 1; i < channelCount; i++)
values += ", " + value[i];
values += ", " + NodeUtils.FloatToShaderValue(value[i]);
return string.Format("{0}{1}({2})", precision, channelCount, values);
}
return "NAN";
else
{
decimal amount;
if( decimal.TryParse(value.ToString(), NumberStyles.Any, CultureInfo.InvariantCulture, out amount) )
return amount.ToString();
return value.ToString();
return value.ToString(CultureInfo.InvariantCulture);