Accessing texCoord2


I’ve noticed there is a texCoord2 buffer in meshes, and i’ve come up with a need for them. I haven’t been able to access it in my shader, however.

Is it possible to do somehow?


Just define an attribute like:

[java]attribute vec2 inTexCoord2;[/java]

And you can access it.

I already used it for several things so I know it works.

1 Like

Indeed, thanks!

It was actually the first thing i tried, but i muse have messed something else up because the shader compilation crashed. Works this time though.

Time to make HS look good.