I thinks you will have to perform shading in frag shader and there you have to look up the texture value for each fragment.Thanks kizi.