I assume your vertex shader has the texture coordinate in defined as a vec3?