OpenGL - Texture mapping in vertex or fragment shader?
问题 Is there texture of an object/triangles mapped in the fragment shader or the vertex shader? Whether if it is on the vertex or fragment shader, if you are programming shaders it's something that you have to code yourself right? Without shader you just assinged the tex coords and opengl mapps it without you knowing, but with shaders you have to do it yourself, right? 回答1: Usually the texturing happens in the fragment shader. This is the place where triangle's fragments gain a color. Usually in