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).
…which is the easiest way to reset the texture coordinates (on a four vertex quad in this case)… though maybe not the most efficient if you do it every frame.
You can do it with in the shader also… but that requires some knowledge of how to work on shaders even if you just fork lighting.j3md or unshaded.j3md and start from there. It is the most efficient way to do this, though… and I can tell you that knowledge of shaders will pay huge dividends later.
Material mat = new Material(assetManager, "Shader/Misc/Scroll.j3md");
mat.setFloat("Speed", 1.0f);
// set texture
Texture tex = assetManager.loadTexture("Textures/Water/water_diff.png");
mat.setTexture("ColorMap", tex);