I am working on a custom shader but I have one issue. I want to use two sets of texture coordinates, but I am unsure how to access the second set in my vertex shader.
The first set is defined using attribute vec2 inTexCoord;, but I am unsure how to define the second set, my guess was attribute vec2 inTexCoord2; but that does not seem to work…
I can assure you it works.
Does your mesh actually have a TexCoord2 VertexBuffer?
If you loaded it from the blender importer it may not work, because this feature was implemented recently. From the ogre pipeline it works.