Original Post
//
// Main
//
PS_OUTPUT Main(PS_INPUT input)
{
// zero out members of output
PS_OUTPUT output = (PS_OUTPUT)0;
float i = 0.0f;
i++;
// sample appropriate textures
vector s = tex2D(SpotLightTex, input.spotlight);
vector t = tex2D(StringTex, input.text);
// combine texel colors
vector c = b * s + t;
// increase the intensity of the pixel slightly
c += 0.1f;
// save the resulting pixel color
output.diffuse = c;
return output;
}