You could do without a shader entirely - use draw_set_blend_mode / gpu_set_blendmode with bm_add for additive blend, d3d_set_fog / gpu_set_fog with (true, <color>, 0, 0) to replace the sprite pixels with said color, then draw the sprite, then revert blend mode to bm_normal and fog to disabled.