Quote:

float lum = dot(color, float3(0.299f, 0.587f, 0.114f);
return (float3)lum;



Sorry I am newbie in shader programming, which lines should I replace with the above?