Hi all - I’ve been looking for the JME3 equivalent of what was possible in JME1/2, to translate a texture on a mesh, eg:
(TextureState) texture.getTranslation().x += TRANSLATION_STEP * time;
I can’t find any equivalent to this - is this not possible in JME3?
From the look of this thread I found:
The answer is ‘no’ and ‘do it with shaders’ - so anticipating that - has anyone created a shader that does this? The link from that thread wasn’t obvious what I should be looking for.
Or from that thread, advice to update the texture coordinates - presumably programmatically in the texture coordinate buffer of the mesh? Is that as hard as it sounds…?
(Use case is - I have an effectively infinite surface (sea) the player moves over, so as to avoid reaching an edge, the surface stays put under the player, and the texture is translated over it to give the sense of movement).