i want to texture a video on a trapezoid quad.
I generate the quad with jit.gl.sketch.
My problem is the way of texturing the video on the quad : 2 triangles !!!
So when a distort the quad by changing the position of one point, only the concerned half part of video is distorted.
I want my whole video distorted when i change one point of the quad…
I think you might have to specify texture coordinates per vertex, for example: gltexcoords 0 0,
gltexcoords 0 1,
glvertex (vertex coordinates)
See the complete list of glcommands in the jit.gl.sketch help file.
You should take into account the order of the vertices (I think it is usually counter-clockwise). Please post a patch so that we can have more information about what you want to do