I am writing a game which contains meshes,
in which I have pits filled with lava.
The lava is simply a texture which I am applying to certain polygons in the mesh.
I wanted to create a cheap effect, in which the lava appeared to flow down a channel,
and thought I could use the texture matrix to achieve it.
Sadly it doesn’t appear to work.
The textured polys lie in the plane y=0;
And I thought I could translate the texture
a set amount each frame, wrapping the translation value back to 0.
if ( transX >1.0)
transX = 0.0;
// draw quads
But I am getting a strange effect, where a single line of the texture is stretched out
Is my theory sound?